You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Sean C <se...@gmail.com> on 2010/03/31 18:31:00 UTC

ServiceMix v3.3.1 on WebSphere AppServer v6.1.0.27

I have encountered some issues with deploying ServiceMix v3.3.1 onto
WebSphere v6.1.0.27.

I have deployed this exact same ServiceMix war onto Geronimo-Tomcat without
any issues whatsoever, but now the requirements have changed to deploy it to
WebSphere since WebSphere is already configured for a clustered environment.


The exception I receive is (with file apache-servicemix-web-3.3.1.war) :

Error page exception The server cannot use the error page specified for your
application to handle the Original Exception printed below. Please see the
Error Page Exception below for a description of the problem with the
specified error page.
Original Exception: *Error Message: *JSPG0227E: Exception caught while
translating /index.jsp: /index.jsp(0,1) --> JSPG0005E: tld file could not be
found for uri[/WEB-INF/tags/form] prefix [form]
*Error Code: *500
*Target Servlet: */index.jsp
*Error Stack: *
com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception
caught while translating /index.jsp:
     /index.jsp(0,1) --> JSPG0005E: tld file could not be found for
uri[/WEB-INF/tags/form] prefix [form]
     at
com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitJspRootStart(ValidateVisitor.java:516)

     at
com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:138)

     at
com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:121)
     at
com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:127)

     at
com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:230)

     at
com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:114)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:501)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:428)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:290)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:145)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:287)

     at
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
     at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
     at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
     at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

     at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
     at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

     at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

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

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

     at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

     at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

     at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
     at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)



Error Page Exception: *Error Message: *JSPG0227E: Exception caught while
translating /error.jsp: /error.jsp(0,1) --> JSPG0005E: tld file could not be
found for uri[/WEB-INF/tags/form] prefix [form]
*Error Code: *500
*Target Servlet: */error.jsp
*Error Stack: *
com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception
caught while translating /error.jsp:
     /error.jsp(0,1) --> JSPG0005E: tld file could not be found for
uri[/WEB-INF/tags/form] prefix [form]
     at
com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitJspRootStart(ValidateVisitor.java:516)

     at
com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:138)

     at
com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:121)
     at
com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:127)

     at
com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:230)

     at
com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:114)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:501)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:428)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:290)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:145)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:287)

     at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)

     at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:3023)
     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:228)

     at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:287)

     at
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
     at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
     at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
     at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

     at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
     at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

     at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

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

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

     at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

     at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

     at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
     at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

*****************************************
So my initial reaction was that there is no /WEB-INF/tags/form directory
structure, so I created it, war'ed the file back up, deployed it, and I get
the same errors as above.

Next I read the following forum thread (
http://servicemix.apache.org/discussion-forums.html), which had some issues
(not sure if they were the same) on how WebSphere handles Expression
Language.  So I then added <el-ignored>false</el-ignored> to the web.xml,
but I again got the same exception as above.

Now I am extremely frustrated, and I try to fix the error itself listed
above by looking in the /WEB-INF/jspf/headertags.jspf and removed the "form"
taglib declaration. This update allows the content to be displayed, but I
then get the following Spring exception when I click on the "Component" link
from the menu.  This error is surrounded by all of the appropriate content.

Also, I tried to deploy the .war file with both the flag set to both true &
false to "Create MBeans" from the WebSphere isntallation process (not sure
if that matters, but just FYI):

org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'components' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Instantiation of bean
failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public java.util.List
org.apache.servicemix.web.model.Registry.getComponents()] threw
exception; nested exception is
org.springframework.jmx.access.MBeanInfoRetrievalException: Unable to
obtain MBean info for bean
[org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=Registry]:
it is likely that this bean was unregistered during the proxy creation
process; nested exception is
javax.management.InstanceNotFoundException:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=Registry
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(AccessController.java:215)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
	at org.apache.servicemix.web.filter.ApplicationContextFilter$2.get(ApplicationContextFilter.java:157)
	at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:218)
	at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
	at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
	at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
	at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:754)
	at com.ibm._jsp._components._jspx_meth_c_forEach_0(_components.java:295)
	at com.ibm._jsp._components._jspService(_components.java:95)
	at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
	at org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
	at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
	at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
	at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:837)
	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:680)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)
	at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)
	at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
	at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)
	at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:287)
	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
	at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
	at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1037)
	at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:644)
	at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public java.util.List
org.apache.servicemix.web.model.Registry.getComponents()] threw
exception; nested exception is
org.springframework.jmx.access.MBeanInfoRetrievalException: Unable to
obtain MBean info for bean
[org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=Registry]:
it is likely that this bean was unregistered during the proxy creation
process; nested exception is
javax.management.InstanceNotFoundException:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=Registry
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
	... 57 more
Caused by: org.springframework.jmx.access.MBeanInfoRetrievalException:
Unable to obtain MBean info for bean
[org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=Registry]:
it is likely that this bean was unregistered during the proxy creation
process; nested exception is
javax.management.InstanceNotFoundException:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=Registry
	at org.springframework.jmx.access.MBeanClientInterceptor.retrieveMBeanInfo(MBeanClientInterceptor.java:312)
	at org.springframework.jmx.access.MBeanClientInterceptor.prepare(MBeanClientInterceptor.java:277)
	at org.springframework.jmx.access.MBeanClientInterceptor.invoke(MBeanClientInterceptor.java:349)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at $Proxy12.getComponentNames(Unknown Source)
	at org.apache.servicemix.web.model.Registry.getComponents(Registry.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
	... 58 more
Caused by: javax.management.InstanceNotFoundException:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=Registry
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1028)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo(DefaultMBeanServerInterceptor.java:1321)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo(JmxMBeanServer.java:921)
	at com.ibm.ws.management.AdminServiceImpl.getMBeanInfo(AdminServiceImpl.java:1319)
	at com.ibm.ws.management.PlatformMBeanServer.getMBeanInfo(PlatformMBeanServer.java:750)
	at org.springframework.jmx.access.MBeanClientInterceptor.retrieveMBeanInfo(MBeanClientInterceptor.java:288)
	... 69 more


******************************************************************
Hopefully this is enough detail (and not too much), but if you need any
other details of my config, I will promptly respond.

Thanks in advance!

- Sean