This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I have a web application (a portlet developed with IceFaces 1.8.2) deplyed through liferay 5.2.3 into tomcat 6.0,which deal with several web services.
To decouple presentation logic from the webservices domain objects I have created four different projects in eclipse:
1. ExampleWEB: is the Dynamic web projectm
2. ExampleFacade: is the 'middle tier' which interfaces with the web services client
3. ExampleDTO: data transfer object
4. ExampleWSClient: web services client
Ok,let's go to the problem .....
For business internal rules I have to externalize all libs from .war (so,I can't create ExampleFacade.jar,ExampleDTO.jar,ExampleWSClient.jar and put them into WEB-INF/lib):
If I put these jar into Tomcat lib directory,app deploy and start with success,but when i try to click on button to call a web service method nothing seems to happens. No Exceptions,No Errors,No output....nothing....
That would cause problems if you expected a class in one of those jars to be able to load a class from your web application. The Tomcat system library is served by a class-loader which doesn't have access to any of the classes in any of the web applications running in the server.
Paul Clapham wrote:That would cause problems if you expected a class in one of those jars to be able to load a class from your web application. The Tomcat system library is served by a class-loader which doesn't have access to any of the classes in any of the web applications running in the server.
Also, it's extremely dangerous to dump jars into the Tomcat system library directory unless they were specifically designed to be usable there (like JDBC driver jars, for example). Not only are there classpath issues, but there are thread-safety considerations.
Customer surveys are for companies who didn't pay proper attention to begin with.