- This topic has 12 replies, 3 voices, and was last updated 19 years, 9 months ago by Riyad Kalla.
-
AuthorPosts
-
RonaldvdhMemberWhen using Struts 1.2 the dtd will be pulled from the internet. When i’m using a proxy and i do not have a direct connection, i gen a connection timeout form Xerxes.
When i look at my pc i see a SYN_SENT for the url of the dtd, but Struts should have the dtd in its jar file.
The Jar file deployed with myEclipse does not have the DTD and i cannot add the dtd to the jar file so i can assume that the AcitonServlet is from a older version.
Is it possible to update the Struts.jar files so that the DTD will be included within myEclipse? In the resent build on struts.apache.org the dtd files are included in the jar file.
thanks for the info
Riyad KallaMemberWhen i’m using a proxy and i do not have a direct connection, i gen a connection timeout form Xerxes.
Have you tried setting up the Internet Proxy under the Internet Tools area of MyEclipse preferences?
When i look at my pc i see a SYN_SENT for the url of the dtd, but Struts should have the dtd in its jar file.
The DTD *is* in the JAR but will not be resolved from the JAR. I’m assuming you use the default struts DOCTYPE which gives the location of the DTD on the struts.apache.org website, in which case 1) the XML catalog will be used or 2) the DTD will be downloaded for you. If you decided to copy the DTD to your WEB-INF folder, and remove the path entirely for the struts-config_1_2.dtd, then the local copy would be used.
The Jar file deployed with myEclipse does not have the DTD and i cannot add the dtd to the jar file so i can assume that the AcitonServlet is from a older version.
It is exactly the same Struts 1.2.4 Jar that you download from Struts site. The DTDs are in the resources package.
Is it possible to update the Struts.jar files so that the DTD will be included within myEclipse? In the resent build on struts.apache.org the dtd files are included in the jar file.
These are the same files that ship with MyEclipse 3.8.3 and 3.8.4.
Scott AndersonParticipantTo avoid a DTD being pulled from the internet, you can add a User entry in the XML Catalog at Window > Preferences > MyEclipse > Editors > XML > XML Catalog
RonaldvdhMemberOk. I do not agree on some points.
First of all. the settings in my eclipse do not influence the tomcat jvm, so this is not an option. Also when you do this you cannot make web applications on local servers because all is transferred thru the proxy.
Also the XML Catalog function wil, not work because it is a problem within the JAR file you deploy with my eclipse.
After i got your reply i went debugging again. When i use the wizard to add Struts capabilities the war file deployed in my project is 486 KB (498.051 bytes) which is exactly the same size as the 1.1 jar file. The 1.2 jar is 514 KB (526.578 bytes). I am sure i ticked the 1.2 struts radio box so that is not the case. Also i see some legacy jar files when using 1.2 that correspondent to 1.1 and in the file deployed with the 1.2 option checked does NOT contain the 1.2 dtd.
it is not necessary to change the doctype because it is translated in the Struts Action Servlet to the local one. See the source of the ActionServlet for more details.
The wrong jar files are being deployed via the wizard.
Riyad KallaMemberFirst of all. the settings in my eclipse do not influence the tomcat jvm, so this is not an option. Also when you do this you cannot make web applications on local servers because all is transferred thru the proxy.
Understood, you never mentioned in your initial post that the problem was occuring during Tomcat’s parsing of the file; being a MyEclipse forum I assumed you were asking about the MyEclipse editor.
Also the XML Catalog function wil, not work because it is a problem within the JAR file you deploy with my eclipse.
Correct, again this needed to be clarified.
I am sure i ticked the 1.2 struts radio box so that is not the case.
Hmm, strange. Ok can you switch to the navigator view and open your .mystrutsdata file, between the <version> tags, what is the version that is shown?
the file deployed with the 1.2 option checked does NOT contain the 1.2 dtd.
What portion of the JAR are you looking in? I have just opened a clean 3.8.3 install, and checked the contents of the 1.1 struts.jar file and 1.2 struts.jar file, both contain the DTDs under the org\apache\struts\resources package as I mentioned before. This is exactly consistent with the Struts 1.1 and 1.2.4 downloads from Struts’s site (verified this again).
Also i see some legacy jar files when using 1.2
I am convinced that you either a) have a misconfigured setup or b) checked Struts 1.1, There is no struts-legacy.jar file distributed with MyEclipse’s version of Struts 1.2, we basically unzip the Struts 1.2.4 download and that’s it, you can double check this yourself, it is located at <myeclispe install dir>\eclipse\plugins\com.genuitec.eclipse.cross.easystruts.eclipse_3.8.3\data
Also I am wondering if you did any customization of the Project Capabilities setups, try and navigate to the Windows > Preferences > MyEclipse > Project Capbilities > Struts screen, then flip to the 1.1 and 1.2 tabs, they should all should resources from directories like %MYECLIPSE_HOME_DIR%\blahblah, do they all look like that? If not, try and hit “Restore Defaults” on each panel and then Apply. Then hit OK. Then try creating a test Web Project, and add Struts capabilities to it, make sure to tick the 1.2 version. Did that work? Double check the contents of the JAR, make sure no struts-legacy.jar file is included.
This will help us get to the bottom of this mystery…
RonaldvdhMemberIn mystrutsdata it shows the following
<strutsVersion>2</strutsVersion>So i think this means 1.2.x
I created a few project on differrent installations of myEclipse wich also are clean. And still when i add StrutsCapabilities it adds the wrong jar files to the project. The jar files added are the 1.1 jar files which are around the 480kb whitout the dtd for the 1.2 version. So i am realy sorry but it is a problem in the wizard of myEclipse and not on my System / systems and all the isntallations in our company of myEclipseIde.
The steps i took (all via wizard):
made a new project
added a source path
added web capabilities
added Struts capabilities checked 1.2 and checked /do/* the rest is default.Looked at the version always shows 2 and looked at the jar file always the 1.1 jar without the dtd of the 1.2 config file. The correct jar file is in the myEclipse folder i searched for that and that is the correct one, but it is not used when adding struts capabilities.
My appologies for not making it clear i was talking about the error when deploying the application in tomcat.
Riyad KallaMemberIn mystrutsdata it shows the following
<strutsVersion>2</strutsVersion>So i think this means 1.2.x
Yes
I created a few project on differrent installations of myEclipse wich also are clean. And still when i add StrutsCapabilities it adds the wrong jar files to the project. The jar files added are the 1.1 jar files which are around the 480kb whitout the dtd for the 1.2 version
Before we continue did you verify the Project Capabilities settings I asked you about above?
Also I cannot reproduce this locally, either creating a Web Project or a Java Project, adding a source folder, then web project caps with WebRoot of / (as default) and using the /do/* mapping for struts. The 515k 1.2.4 JAR is added every time.
I’m hoping an invalid Struts 1.2 Project Cpabilities setting is the problem here…
Also I realized that I never asked you for your system info, so can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
RonaldvdhMember@support-rkalla wrote:
In mystrutsdata it shows the following
<strutsVersion>2</strutsVersion>So i think this means 1.2.x
Yes
I created a few project on differrent installations of myEclipse wich also are clean. And still when i add StrutsCapabilities it adds the wrong jar files to the project. The jar files added are the 1.1 jar files which are around the 480kb whitout the dtd for the 1.2 version
Before we continue did you verify the Project Capabilities settings I asked you about above?
Also I cannot reproduce this locally, either creating a Web Project or a Java Project, adding a source folder, then web project caps with WebRoot of / (as default) and using the /do/* mapping for struts. The 515k 1.2.4 JAR is added every time.
I’m hoping an invalid Struts 1.2 Project Cpabilities setting is the problem here…
Also I realized that I never asked you for your system info, so can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
I checked the capabilities and the struts 1.2 tab is there and pointing to the right location. I tried it at another place (now at 4 different computer with clean installations).
I’m using windows xp pro EN sp2 fully patched on a pentium 4 system (tested on an amd to).
java version “1.4.2_01”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
myEclipse build 200412061200-3.8.3
eclipse 3.0.1 200409161125
Tomcat 5.0.28 same jvm(in all cases) When i go to the properties screen of the project and press the struts properties I get an error “The current displayed page contains invalid values” maybe this will help :S i realy do not understand this problem. I tested in on various systems and get the same result every time. All installed with seperate downloaded installers of both myeclipse and eclipse So i doubt that it is in the version.
🙁
Riyad KallaMemberCan you update to 3.8.4 (released this morning) and be sure to restart MyEclipse with the -clean option so it rebuilds its plugin cache, then try and create a new WEb Project, and add Struts caps to it?
RonaldvdhMemberI could try but in the download section I see that it is a beta version. At home i’ll so ok lets go, but in a development enviorment for professional use…. You did not stamp it Beta for nothing i guess…. Isn’t there another solution? I find it very strange that i (we at our company) am (are) the only one(s) having this problem.
Riyad KallaMemberI could try but in the download section I see that it is a beta version
It is only a beta for the Eclipse 3.1M4 compatible release, please use the stable 3.8.4 release for Eclipse 3.0.1.
RonaldvdhMemberI do not know what you changed but in 3.8.4 the bug is fixed. Thanks for the support
Riyad KallaMemberI do not know what you changed but in 3.8.4 the bug is fixed.
Hey, glad to hear it!
-
AuthorPosts