Advertisement

03.06.2008 at 02:46PM PST, ID: 23221417
[x]
Attachment Details

Deployment Failed While Trying to implement Spring Web Services on Websphere 6.0

Asked by pkipkipki in IBM Websphere Application Server, Apache Tomcat Application Server, J2EE

Tags: IBM, Websphere Application Server, 6.0.2.23, J2EE, java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker

According to http://static.springframework.org/spring-ws/site/faq.html#java-1.4 I need to override some of the java lib endorsed jar files to enable Spring Web Services to work on JDK 1.4. I don't want to do for all instances of Websphere server running on this machine so I alter the system classpath of the via JVM command line arguments. This is done via the console "Servers -> Application Servers -> <<server name>> ->Java and Process Management -> Process Definition -> Java Virtual Machine -> Generic JVM arguments" and I add "-Djava.endorsed.dirs=<< path to folder containing the jars as outlined in the faq link above>>".

If I deploy my application and then change the endorsed dirs then everything works fine, however, once I have altered this I cannot deploy my application, either via the console or via a script. In both cases I get the Exception as outlined below.

I understand the endorsed Xalan jar has removed this class and has an empty org.apache.xml.serializer package in it, so my questions are:

1. Has anyone got Spring Web Services working on Websphere 6.0?
2. Is there a work around for this deployment issue?

Thanks for your help
PhilStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:389)
	at com.ibm.wtp.internal.emf.xml.EMF2DOMRenderer.serializeDocument(EMF2DOMRenderer.java:180)
	at com.ibm.wtp.internal.emf.xml.EMF2DOMRenderer.doSave(EMF2DOMRenderer.java:84)
	at com.ibm.wtp.emf.xml.TranslatorResourceImpl.doSave(TranslatorResourceImpl.java:216)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:802)
	at com.ibm.etools.j2ee.commonarchivecore.strategy.SaveStrategyImpl.saveMofResource(SaveStrategyImpl.java:160)
	at com.ibm.etools.j2ee.commonarchivecore.strategy.ZipStreamSaveStrategyImpl.saveMofResource(ZipStreamSaveStrategyImpl.java:78)
	at com.ibm.etools.j2ee.commonarchivecore.strategy.SaveStrategyImpl.saveMofResource(SaveStrategyImpl.java:150)
	at com.ibm.etools.j2ee.commonarchivecore.strategy.SaveStrategyImpl.basicSaveMofResources(SaveStrategyImpl.java:194)
	at com.ibm.etools.j2ee.commonarchivecore.strategy.SaveStrategyImpl.saveMofResources(SaveStrategyImpl.java:187)
	at com.ibm.etools.j2ee.commonarchivecore.strategy.SaveStrategyImpl.save(SaveStrategyImpl.java:84)
	at com.ibm.etools.j2ee.commonarchivecore.impl.ArchiveImpl.save(ArchiveImpl.java:1240)
	at com.ibm.etools.j2ee.commonarchivecore.impl.ModuleFileImpl.save(ModuleFileImpl.java:345)
	at com.ibm.ws.management.application.client.AppInstallHelper.createEarWrapper(AppInstallHelper.java:479)
	at com.ibm.ws.management.application.client.AppInstallHelper.createEarWrapper(AppInstallHelper.java:315)
	at com.ibm.ws.management.application.client.AppInstallHelper.createEarWrapper(AppInstallHelper.java:295)
	at com.ibm.ws.console.appmanagement.action.UploadAction.formUpload(UploadAction.java:415)
	at com.ibm.ws.console.appmanagement.action.UploadAction.execute(UploadAction.java:129)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:275)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
	at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:311)
	at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:185)
	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3177)
	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
	at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
	at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
[+][-]03.07.2008 at 08:39AM PST, ID: 21071870

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]03.16.2008 at 09:38AM PDT, ID: 21137401

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 05:32AM PDT, ID: 21141525

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: IBM Websphere Application Server, Apache Tomcat Application Server, J2EE
Tags: IBM, Websphere Application Server, 6.0.2.23, J2EE, java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
Sign Up Now!
Solution Provided By: pkipkipki
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628