Re: Organizing WEB-INF/lib
Pid-2 wrote: > > > Actually, I disagree. I have deployed the Axis and support jars in a > shared classloader (shared/lib for TC5.5) and then deployed a .war for > each webapp. > > In your case you could do: > > /app1/axis/services/ > /app2/axis/services/ > > You're both correct. There's no technical problem with Axis, but Rashmi > is right in that you may find suggestions and assistance on the Axis > mailing list - which may help improve your deployment methodology and > avoid this type of problem. > > This would avoid you having to try and subvert the Tomcat classloader(s). > > Hi Thanks for your message. Well, I've been working with Axis on the last two years and never hear about such kind of configuration, but if it works, it could be a good solution. I' ll try to test it. (and I' ll ask in axis list too). Thank you very much. J -- View this message in context: http://www.nabble.com/Organizing-WEB-INF-lib-tf3643789.html#a10196388 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Organizing WEB-INF/lib
JavierL wrote: Rashmi Rubdi-2 wrote: Javier, I don't know much about Webservices and Axis in particular, but at one time I did download the Axis distribution. In the lib folder of the Axis distribution there are a few JAR files axis.jar, wsdl4j-1.5.1.jar etc. Normally, when I write multiple projects that use JAR files from different applications like say for example JSTL, Saxon etc, I just copy the JAR files into the relevant project's lib folder. With the limited knowledge on Axis I have, I don't think you need the entire Axis WAR file to enable webservices in other projects, you'll only need the JAR files. You could also check with the Axis User Mailing List for alternatives ways to configure multiple projects to use web services. Rashmi Thanks for your reply. To clarify concepts. Axis is a webapp that offer webservices. Each application that want to offer himself as a webservice should make a deployment inside the axis webapp. What it means ? It means that you should place your application jar file inside axis/WEB-INF/lib folder and all the jar your webservices application depende on, too and the deployment axis utils will generate a descriptor that axis will read at start up to know wich webservices applications its serving. So, if I have my app called , user will access them calling the url http://myserver.com/axis/services/ and if other person has another app called could access it calling http://myserver.com/axis/services/. As you can see, a webservices application is not an independent module inside Apache Tomcat. It is just a jar inside a webapp container called axis and depends on it to work. Axis is the webapp that offer the access to webservices application and webservices application can't work alone or be deployed outside the axis war. Actually, I disagree. I have deployed the Axis and support jars in a shared classloader (shared/lib for TC5.5) and then deployed a .war for each webapp. In your case you could do: /app1/axis/services/ /app2/axis/services/ So, if your axis webapp is used for a lot of people with many different webservices applications you will have a caos of jars in axis/WEB-INF/lib. Nevertheless, the problem could not be solved at axis user list. Why ? Because is not an axis problem !! Axis is a webapp that respect the way servlet containers as Tomcat works. The way jar are deployed inside WEB-INF is not an Axis idea, it's an specification of servlet containers. You're both correct. There's no technical problem with Axis, but Rashmi is right in that you may find suggestions and assistance on the Axis mailing list - which may help improve your deployment methodology and avoid this type of problem. This would avoid you having to try and subvert the Tomcat classloader(s). rgds p So, forget about axis and everything else, my question is: I have a war application, could I place some jar files inside different folders inside WEB-INF/lib ? Can Tomcat classloader load those classes ? Thanks in advance J smime.p7s Description: S/MIME Cryptographic Signature
Re: Organizing WEB-INF/lib
Rashmi Rubdi-2 wrote: > > Javier, > > I don't know much about Webservices and Axis in particular, but at one > time I did download the Axis distribution. > > In the lib folder of the Axis distribution there are a few JAR files > axis.jar, wsdl4j-1.5.1.jar etc. > > Normally, when I write multiple projects that use JAR files from > different applications like say for example JSTL, Saxon etc, I just > copy the JAR files into the relevant project's lib folder. > > With the limited knowledge on Axis I have, I don't think you need the > entire Axis WAR file to enable webservices in other projects, you'll > only need the JAR files. > > You could also check with the Axis User Mailing List for alternatives > ways to configure multiple projects to use web services. > > Rashmi Thanks for your reply. To clarify concepts. Axis is a webapp that offer webservices. Each application that want to offer himself as a webservice should make a deployment inside the axis webapp. What it means ? It means that you should place your application jar file inside axis/WEB-INF/lib folder and all the jar your webservices application depende on, too and the deployment axis utils will generate a descriptor that axis will read at start up to know wich webservices applications its serving. So, if I have my app called , user will access them calling the url http://myserver.com/axis/services/ and if other person has another app called could access it calling http://myserver.com/axis/services/. As you can see, a webservices application is not an independent module inside Apache Tomcat. It is just a jar inside a webapp container called axis and depends on it to work. Axis is the webapp that offer the access to webservices application and webservices application can't work alone or be deployed outside the axis war. So, if your axis webapp is used for a lot of people with many different webservices applications you will have a caos of jars in axis/WEB-INF/lib. Nevertheless, the problem could not be solved at axis user list. Why ? Because is not an axis problem !! Axis is a webapp that respect the way servlet containers as Tomcat works. The way jar are deployed inside WEB-INF is not an Axis idea, it's an specification of servlet containers. So, forget about axis and everything else, my question is: I have a war application, could I place some jar files inside different folders inside WEB-INF/lib ? Can Tomcat classloader load those classes ? Thanks in advance J -- View this message in context: http://www.nabble.com/Organizing-WEB-INF-lib-tf3643789.html#a10195511 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Organizing WEB-INF/lib
Javier, I don't know much about Webservices and Axis in particular, but at one time I did download the Axis distribution. In the lib folder of the Axis distribution there are a few JAR files axis.jar, wsdl4j-1.5.1.jar etc. Normally, when I write multiple projects that use JAR files from different applications like say for example JSTL, Saxon etc, I just copy the JAR files into the relevant project's lib folder. With the limited knowledge on Axis I have, I don't think you need the entire Axis WAR file to enable webservices in other projects, you'll only need the JAR files. You could also check with the Axis User Mailing List for alternatives ways to configure multiple projects to use web services. -Regards Rashmi On 4/25/07, JavierL <[EMAIL PROTECTED]> wrote: Rashmi Rubdi-2 wrote: > > > From my experience, adding Jars for different apps in the same lib > folder will cause conflicts and duplicates, especially if one person > is using a JAR for one version and another is using a different > version. > > However, you can have different projects with each project having it's > own WEB-INF/lib folder and it's own JAR files. > Thanks for your reply. I understand what you said and it's what I want to avoid. Axis works as I said. It is a war application where you place the applications you want to offer as web services so everybody can deploy his/her application with its jar dependencies in WEB-INF/lib. What I want is to make a folder inside WEB-INF/lib for each application where to place its jars. If the application use the same jar as another, move the installed and the new one to lib folder. Is the only way I can imagine to keep this caos in some order. Your recommendation to place one war for application is ok for common web application, but to place one axis war instance for each webservice is totally unusable. J - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Organizing WEB-INF/lib
Rashmi Rubdi-2 wrote: > > > From my experience, adding Jars for different apps in the same lib > folder will cause conflicts and duplicates, especially if one person > is using a JAR for one version and another is using a different > version. > > However, you can have different projects with each project having it's > own WEB-INF/lib folder and it's own JAR files. > Thanks for your reply. I understand what you said and it's what I want to avoid. Axis works as I said. It is a war application where you place the applications you want to offer as web services so everybody can deploy his/her application with its jar dependencies in WEB-INF/lib. What I want is to make a folder inside WEB-INF/lib for each application where to place its jars. If the application use the same jar as another, move the installed and the new one to lib folder. Is the only way I can imagine to keep this caos in some order. Your recommendation to place one war for application is ok for common web application, but to place one axis war instance for each webservice is totally unusable. J -- View this message in context: http://www.nabble.com/Organizing-WEB-INF-lib-tf3643789.html#a10188375 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Organizing WEB-INF/lib
On 4/25/07, JavierL <[EMAIL PROTECTED]> wrote: Hi I've a an Axis war where a lot of people publish applications and then, lib directory is caotic with a lot of jar files. Each time somebody delete your webservice application, he/she can't delete related jar files because ignores if somebody else is using it. I want to arrange and organize and then I wonder if there is a way to make subfolders inside WEB-INF/lib to allow each application to place its own related jars and keep root WEB-INF/lib just as a "commons" folder where place only shared jars. Is this possible ? From my experience, adding Jars for different apps in the same lib folder will cause conflicts and duplicates, especially if one person is using a JAR for one version and another is using a different version. However, you can have different projects with each project having it's own WEB-INF/lib folder and it's own JAR files. Any idea/clue welcome... Thanks in advance J Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Organizing WEB-INF/lib
Hi I've a an Axis war where a lot of people publish applications and then, lib directory is caotic with a lot of jar files. Each time somebody delete your webservice application, he/she can't delete related jar files because ignores if somebody else is using it. I want to arrange and organize and then I wonder if there is a way to make subfolders inside WEB-INF/lib to allow each application to place its own related jars and keep root WEB-INF/lib just as a "commons" folder where place only shared jars. Is this possible ? Any idea/clue welcome... Thanks in advance J -- View this message in context: http://www.nabble.com/Organizing-WEB-INF-lib-tf3643789.html#a10176181 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]