-
1. Re: basic 4.2 deploy and missing javax.servlet files
schmaggis May 17, 2007 6:33 PM (in response to wiggy)when you created a new server-runtime in eclipse did you select JBoss 4.2.0 or JBoss v4.0? i had a problem lately that JBoss 4.2.0 und JBoss 5.0.0 weren't displayed so i selected JBoss v4.0 and a message appeared there were some files missing, same files you mentioned.
I don't know if it's the same Problem, but I learned after some searching that the server description files for the new JBoss-server versions were missing. I found some here: www.informatik.fh-wiesbaden.de/~knauf/public/
If you selected JBoss 4.2.0 when creating a server please ignore this post :) -
2. Re: basic 4.2 deploy and missing javax.servlet files
wiggy May 18, 2007 7:36 PM (in response to wiggy)so nearly there.
went to site mentioned at download the org.eclipse.jst.server.jboss.ejb3_1.5.0.v200705171400.jar file which turns out to be a zip file. Heigh ho, i went into my eclipse plugins and created a dir with the same name as the zip file. I then extracted the zip file into the directory just created and restart eclipse - clean.
brilliant now i get the extra server defns. I created a new 4.2 server and start it - it comes up clean. wonderful.
Then i have a problem. I create a new dynamic web project and point it at the new server. it fails to compile with errors
Severity and Description Path Resource Location Creation Time Id
Project my is missing required library: 'E:\jboss\jboss-4.2.0.GA\client\javax.servlet.jar' my Build path 1179529310630 2006
Project my is missing required library: 'E:\jboss\jboss-4.2.0.GA\server\default\lib\javax.servlet.jsp.jar' my Build path 1179529310630 2005
the libraries are pointed to the wrong named files.
when i open the project and look at the build library paths i get the following
jboss runtimes (wst:2.4) which if you open it shows the javax.servlet.jsp.jar, and javax.servlet.jar - which are not the latest names in the 4.2 files list.
I dont know where this bit of config is to change it. If you try and edit the runtimes section it shows
org.jboss.ide.eclipse.as.core.runtime.ProjectInitializer/JBOSS 4.2 EJB3/jst.web/2.4
where is this?
very close but not quite there. I thought it might be in the serverdef file in the plugins dir however that correctly shows
<classpath id="jboss.project" >
<archive path="${serverRootDirectory}/client/jboss-j2ee.jar" />
<archive path="${serverRootDirectory}/client/jbossall-client.jar" />
<archive path="${serverRootDirectory}/server/default/deploy/ejb3.deployer/jboss-ejb3.jar" />
<archive path="${serverRootDirectory}/server/default/lib/jboss-ejb3x.jar" />
<!--JBoss specific annotations like "SecurityDomain". -->
<archive path="${serverRootDirectory}/server/default/deploy/ejb3.deployer/jboss-annotations-ejb3.jar" />
<archive path="${serverRootDirectory}/client/ejb3-persistence.jar" />
<!--The J2EE5 AppClient needs more JARs for startup-->
<!-- <archive path="${serverRootDirectory}/client/jboss-ejb3-client.jar" /> -->
<archive path="${serverRootDirectory}/server/default/deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar" />
<archive path="${serverRootDirectory}/server/default/deploy/jboss-aop-jdk50.deployer/jboss-aspect-library-jdk50.jar" />
<!--Hibernate Exceptions might come into the application client. For catching them we need this jar.
<archive path="${serverRootDirectory}/client/hibernate-client.jar" />-->
<!--For usage of Hibernate those JARs might be required -->
<archive path="${serverRootDirectory}/server/default/lib/hibernate3.jar" />
<archive path="${serverRootDirectory}/server/default/lib/hibernate-annotations.jar" />
<archive path="${serverRootDirectory}/server/default/lib/hibernate-entitymanager.jar" />
<archive path="${serverRootDirectory}/server/default/lib/servlet-api.jar" />
<archive path="${serverRootDirectory}/server/default/lib/jsp-api.jar" />
<archive path="${serverRootDirectory}/server/default/lib/activation.jar" />
<archive path="${serverRootDirectory}/server/default/lib/mail.jar" />
</classpath>
with the new files correct
any ideas???