-
1. Re: Scoped Deployment settings cuase LinkageError
jaikiran Sep 5, 2008 2:46 AM (in response to martinator)Do you include jar files containing javax.servlet.* classes in your application packaging? If yes, then remove them from your application package as they are already available in the %JBOSS_HOME%\server\< serverName>\lib folder.
-
2. Re: Scoped Deployment settings cuase LinkageError
martinator Sep 5, 2008 11:26 AM (in response to martinator)Hi Jaikiran, thanks for your reply/
No, we do not deploy another copy of servlet.jar. We put all of our jars into the jboss lib folder to keep the size of our deployments down.
Any other ideas? -
3. Re: Scoped Deployment settings cuase LinkageError
martinator Sep 8, 2008 10:29 AM (in response to martinator)Hi again Jaikiran, I did notice that the problem class:
javax/servlet/ServletOutputStream.class
resides within servlet.jar which I need for my servlet classes and also within servlet-api.jar which is deployed within the jbossweb-tomcat50.sar folder.
Do you think that would cause this problem? -
4. Re: Scoped Deployment settings cuase LinkageError
jaikiran Sep 8, 2008 10:36 AM (in response to martinator)"Martinator" wrote:
Hi again Jaikiran, I did notice that the problem class:
javax/servlet/ServletOutputStream.class
resides within servlet.jar which I need for my servlet classes and also within servlet-api.jar which is deployed within the jbossweb-tomcat50.sar folder.
Do you think that would cause this problem?
Yes that's the problem. Remove the servlet.jar from your application packaging.
Remember that you can include this jar in the build path for compiling your application. But when you package the application for deployment, dont include this jar file. JBoss already has these classes (as you saw in the servlet-api.jar), so you will not run into any runtime dependency issues even if you remove the servlet.jar from your packaging. -
5. Re: Scoped Deployment settings cuase LinkageError
martinator Sep 8, 2008 11:41 AM (in response to martinator)Hi again Jaikiran, removing the servlet.jar from the jboss/server/default/lib folder resolved the issue.
Thank you so much for your help.
Cheers. -
6. Re: Scoped Deployment settings cuase LinkageError
jaikiran Sep 8, 2008 11:49 AM (in response to martinator)"Martinator" wrote:
Hi again Jaikiran, removing the servlet.jar from the jboss/server/default/lib folder resolved the issue.
Good to know that the issue is fixed."Martinator" wrote:
We put all of our jars into the jboss lib folder to keep the size of our deployments down.
Just a note of caution - Its not recommended to mess with the jar files in the JBoss server lib folder(s). Ideally, you will package the necessary jar files with your application. The jars in the lib folder of JBoss are used by all the applications deployed on that server (including the ones which are shipped by default by JBoss). So replacing/adding jars in the lib folder of JBoss is always risky.
-
7. Re: Scoped Deployment settings cuase LinkageError
martinator Sep 8, 2008 3:37 PM (in response to martinator)Thank you for the caution.
We distribute a lot of releases to a number of clients and want to avoid shipping 10+ meg or more with each distribution.
Is there another place to deploy our jar files permanently without interferring with JBoss?