java.lang.VerifyError while deploying in Websphere 6.1.0.17 - Websphere

This is a discussion on java.lang.VerifyError while deploying in Websphere 6.1.0.17 - Websphere ; HI, I tried with JDK1.5.06 and also IBM installed JDK. I have created commons-logging.properties file under websphere folder. Does any one know whtat the issue could be? thanks S 6/13/08 9:46:55:206 PDT 00000020 WebApp E Servlet Error - Failed to ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: java.lang.VerifyError while deploying in Websphere 6.1.0.17

  1. java.lang.VerifyError while deploying in Websphere 6.1.0.17

    HI,



    I tried with JDK1.5.06 and also IBM installed JDK.

    I have created commons-logging.properties file under websphere folder.



    Does any one know whtat the issue could be?



    thanks

    S



    6/13/08 9:46:55:206 PDT 00000020 WebApp E Servlet Error - Failed to load listener: com.sari.BPSWebapp : java.lang.VerifyError: javax/xml/parsers/DocumentBuilder.setErrorHandler(Lorg/xml/sax/ErrorHandlerV
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(D OMConfigurator.java:658)

    at org.apache.log4j.xml.DOMConfigurator.doConfigure(D OMConfigurator.java:616)

    at org.apache.log4j.xml.DOMConfigurator.doConfigure(D OMConfigurator.java:602)

    at org.apache.log4j.helpers.OptionConverter.selectAnd Configure(OptionConverter.jav a:460)

    at org.apache.log4j.LogManager. (LogManager.java:113)

    at java.lang.J9VMInternals.initializeImpl(Native Method)

    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:177)

    at org.apache.log4j.Logger.getLogger(Logger.java:94)

    at com.callidus.BPSWebapp. (BPSWebapp.java:11)

    at java.lang.J9VMInternals.initializeImpl(Native Method)

    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:177)

    at java.lang.Class.newInstanceImpl(Native Method)

    at java.lang.Class.newInstance(Class.java:1263)

    at java.beans.Beans.instantiate(Beans.java:219)

    at java.beans.Beans.instantiate(Beans.java:63)

    at com.ibm.ws.webcontainer.webapp.WebApp.loadListener (WebApp.java:1417)

    at com.ibm.ws.webcontainer.webapp.WebApp.loadLifecycl eListeners(WebApp.java:1341)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitia lizationStart(WebApp.java:375 )

    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize (WebApp.java:247)

    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebAp plication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplic ation(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(W ebContainer.java:665)

    at com.ibm.ws.wswebcontainer.WebContainer.addWebAppli cation(WebContainer.java:618)

    at com.ibm.ws.webcontainer.component.WebContainerImpl .install(WebContainerImpl.jav a:335)

    at com.ibm.ws.webcontainer.component.WebContainerImpl .start(WebContainerImpl.java: 551)

    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:1 303)

    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(De ployedApplicationImpl.java:1138)

    at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:5 69)

    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationI mpl.java:817)

    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgr Impl.java:949)

    at com.ibm.ws.runtime.component.ApplicationMgrImpl$1. run(ApplicationMgrImpl.java:1 486)

    at com.ibm.ws.security.auth.ContextManagerImpl.runAs( ContextManagerImpl.java:4042)

    at com.ibm.ws.security.auth.ContextManagerImpl.runAsS ystem(ContextManagerImpl.java :4139)

    at com.ibm.ws.security.core.SecurityContext.runAsSyst em(SecurityContext.java:245)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgr Impl.java:1491)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.ja va:43)

    at java.lang.reflect.Method.invoke(Method.java:615)

    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java :62)

    at sun.reflect.GeneratedMethodAccessor16.invoke(Unkno wn Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.ja va:43)

    at java.lang.reflect.Method.invoke(Method.java:615)

    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java :265)

    at javax.management.modelmbean.RequiredModelMBean.inv okeMethod(RequiredModelMBean. java:1089)

    at javax.management.modelmbean.RequiredModelMBean.inv oke(RequiredModelMBean.java:9 71)

    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke (DynamicMetaDataImpl.java:231 )

    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDa taImpl.java:238)

    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServer Interceptor.java:833)

    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:802)

    at com.ibm.ws.management.AdminServiceImpl$1.run(Admin ServiceImpl.java:1081)

    at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:11 8)

    at com.ibm.ws.management.AdminServiceImpl.invoke(Admi nServiceImpl.java:974)

    at com.ibm.ws.management.commands.AdminServiceCommand s$InvokeCmd.execute(AdminServ iceCommands.java:251)

    at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(M BeanHelper.java:239)

    at com.ibm.ws.console.appdeployment.ApplicationDeploy mentCollectionAction.execute( ApplicationDeploymentCollectionAction.java:537)

    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor .java:484)

    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274)

    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1486)

    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.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.ser vice(ServletWrapper.java:1075 )

    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1016 )

    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.jav a:118)

    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.ja va:87)

    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager .java:771)

    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager .java:679)

    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.jav a:546)

    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.j ava:478)

    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDis patcher.java:321)

    at org.apache.struts.action.RequestProcessor.doForwar d(RequestProcessor.java:1070)

    at org.apache.struts.tiles.TilesRequestProcessor.doFo rward(TilesRequestProcessor.j ava:273)

    at org.apache.struts.action.RequestProcessor.processF orwardConfig(RequestProcessor .java:455)

    at org.apache.struts.tiles.TilesRequestProcessor.proc essForwardConfig(TilesRequest Processor.java:319)

    at com.ibm.isclite.container.controller.InformationCo ntroller.processForwardConfig (InformationController.java:206)

    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:279)

    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1486)

    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.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.ser vice(ServletWrapper.java:1075 )

    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1016 )

    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.jav a:145)

    at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUp CommandAssistence(WSCUrlFilte r.java:792)

    at com.ibm.ws.console.core.servlet.WSCUrlFilter.conti nueStoringTaskState(WSCUrlFil ter.java:363)

    at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFil ter(WSCUrlFilter.java:229)

    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWra pper.java:190)

    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.jav a:130)

    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._ doFilter(WebAppFilterChain.ja va:87)

    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager .java:771)

    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager .java:679)

    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.jav a:546)

    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.j ava:478)

    at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletW rapper.java:90)

    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:744)

    at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1455)

    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:115)

    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpI nboundLink.java:458)

    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpI nboundLink.java:387)

    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCa llback.java:102)

    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$ SSLReadCompletedCallback.comp lete(SSLReadServiceContext.java:1818)

    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCo mpletionListener.java:165)

    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:21 7)

    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.ja va:161)

    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)

    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)

    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)

    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)

  2. Re: java.lang.VerifyError while deploying in Websphere 6.1.0.17

    Hi, what do you mean you tried with JDK 1.5.06 and also install the IBM JDK? WebSphere has its own JDK. Adding your own classes or another JDK could cause problems. WebSphere also has its own Apache Commons.



    According to the Java Docs a VerifyError is :

    Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem.




    It sounds like something is corrupt or maybe getting picked up from a wrong class.



    Regards,

    Brian

  3. Re: java.lang.VerifyError while deploying in Websphere 6.1.0.17

    Brian,



    Thanks for the response. Yes, I tried with JDK that comes with Websphere 6.1.0.17 installation.

    Still I am seeing the same issue. Also, tried with Sun JDK 1.5_06.



    Are there any known issues with apache commons logging.



    I had to copy the .jars file to the classpath to make it work, otherwise I am getting ClassDefNotFoundError.



    Is this VerifyError related to that?



    thanks for your response.

    S

  4. Re: java.lang.VerifyError while deploying in Websphere 6.1.0.17

    Hi, you cannot use classes from both JDKs. This will definitely not work and I am not sure what errors will occur. Please see the following link to configure commons under WebSphere AS:

    http: //publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/ttrb_classload_jcl.html




    Regards,

    Brian

+ Reply to Thread