Its been a while since I had done a struts project, so I thought I would re-acclimate myself by doing the myeclipse StrutsLoginDemo. I needed to do this with Struts 1.1 so I used the quick tutorial available here. The tutorial is a good one and finished it quickly.. the problem came when I tried deploying it [...]
You can’t do an ANT build inside eclipse if your chosen jdk is 1.3. Here is a the error message you get…
BUILD FAILEDjava.lang.NoClassDefFoundError: org/xml/sax/SAXExceptionat org.apache.tools.ant.ProjectHelper.getProjectHelper(ProjectHelper.java:228)at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.parseBuildFile(InternalAntRunner.java:189)at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:400)at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
nice little trick to fix that…Inside Eclipse Go to Window->Preferences…->Ant->Runtime
In the classpath tab, add a new entry to the Ant Home Entries to the xerces jar file [...]
This is a neat trick. At least it works in tomcat-4.1.24.
The first part to this trick is to know you can deploy a war file to the webapps in tomcat without adding the context in the server.xml of your tomcat installation. Suppose the name of your war file is HelloWorld.war, create an xml file called [...]
Recent Comments