Link to home
Start Free TrialLog in
Avatar of pkipkipki
pkipkipki

asked on

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

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
Phil
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))

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of pkipkipki
pkipkipki

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial