[JBossCache] - Still struggling to get configured (dependency problem now)
by nstoddar
Well, I think I've finally got JBossCache actually configured correctly. I can see it in the "jmx-console" just fine. At that point, my Hibernate HAR was freaking out because it was loading before my JBossCache configuration got loaded.
2007-03-14 17:36:28,360 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| jboss.har:service=Hibernate -> org.hibernate.cache.CacheException: Unable to locate TreeCache MBean under object name [jboss.cache:service=HibernateTreeCache]
|
So ... I put in a depends in the service.xml of my HAR. However, for some reason, JBoss pretends as if my JBossCache never has loaded. I can see it in "jmx-console", but JBoss can't deploy my HAR because it thinks the dependency hasn't been met.
2007-03-14 17:16:31,944 INFO [org.jboss.aop.microcontainer.aspects.jmx.JMXIntroduction] Registered MBean jboss.cache:service=HibernateTreeCache
2007-03-14 17:17:08,720 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
|
| jboss.har:service=Hibernate
| -> jboss.cache:service=HibernateTreeCache{Create:** NOT FOUND **}
| -> jboss.cache:service=HibernateTreeCache{Start:** NOT FOUND **}
|
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| jboss.cache:service=HibernateTreeCache -> ** NOT FOUND **
<depends>jboss.cache:service=HibernateTreeCache</depends>
By the way, this is on JBoss 5.0 Beta 1 -- if anybody has some good resources on how to configure this darn thing, it'd be great. I've already gone through every bit of JBoss and JBossCache documentation, but it just isn't coming together for me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028174#4028174
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028174
19Â years, 1Â month
[JBoss/Spring Integration] - Re: SpringDeployer EnhancedSuffixOrder
by alesj
anonymous wrote : Problem is that spring deployment happens before the har deployment (application.xml before jboss-app.xml) and so it fails .
| Is there any way I can force the har deployment before the spring ?
|
Edit org.jboss.deployment.MainDeployer-xmbean.xml file in [JBoss_home]\server\default\conf\xmdesc directory. You'll see which line to fix.
anonymous wrote :
| I played around with xmbean definition yesterday but 'EnhancedSuffixOrder' seems to not have been defined for SpringDeployer. As far as I can fathom , .spring and .har both have order of 350 . Is there anyway this can be changed ? Can I get the source code for SpringDeployer anywhere ?
Sure.
Look in the JBossAS SVN repo. Under spring-int module.
And I think you can change the suffix order number via MBean attribute.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028172#4028172
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028172
19Â years, 1Â month
[EJB 3.0] - JspTagException in links.jsp and $Proxy97 not found running
by cscs010
Hi everyone,
I am relatively new to JBOSS (4.0.5) and am trying to run the DukesBank example on a SUSE LINUX system (running on z/os).
i finally got the example working on WINDOWS after a few modifications, but I never encountered this particular problem on Windows and cannot
find anything about it as pertains to the DukesBank example, although i saw that there might be some type of jndi error.
the HSQL database looks okay on the Linux system and as I stated, all is working fine on Windows.
after i sign on with id=200, password=j2ee, i get the following error in the browser about links.jsp.
Your request cannot be completed. The server got the following error:
javax.servlet.jsp.JspTagException: Exception in JSP: /template/links.jsp:33 30: 31: 32: 33: 34: 35: 36: Stacktrace:
i did not change anything in links.jsp - these are the tags provided:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:useBean id="customerBean" class="com.sun.ebank.web.CustomerBean" scope="request"/>
<jsp:setProperty name="customerBean" property="customer" value="${pageContext.request.userPrincipal.name}"/>
<c:set var="accounts" value="${customerBean.accounts}" />
<c:forEach items="${accounts}" begin="0" end="0" var="ad">
<c:set var="accountId" value="${ad.accountId}" />
</c:forEach>
however, the log also shows that $PROXY97 cannot be found.
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlkerThread.java:112)
at java.lang.Thread.run(Thread.java:799)
15:04:24,022 ERROR [STDERR] Debug: Couldn't create transaction bean.Unexperror; nested exception is:
java.lang.NoClassDefFoundError: $Proxy97
15:04:24,022 ERROR [STDERR] Debug: hack - added customerBean to request
15:04:24,023 ERROR [STDERR] Debug: /main
15:04:24,023 ERROR [STDERR] Debug: Forwarding to template.
15:04:24,032 ERROR [[jsp]] Servlet.service() for servlet jsp threw excepti
java.lang.NullPointerException
at com.sun.ebank.web.CustomerBean.getAccounts(CustomerBean.java:11
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessojava:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethosorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:314
at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:1
at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressiuatorImpl.java:263)
at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressiuatorImpl.java:190)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PtextImpl.java:917)
at org.apache.jsp.template.links_jsp._jspx_meth_c_set_0(links_jsp.61)
at org.apache.jsp.template.links_jsp._jspService(links_jsp.java:84
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletW.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.14)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:26
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilteicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicilterChain.java:173)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028159#4028159
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028159
19Â years, 1Â month
[EJB/JBoss] - RMIIIOPViolationException in deploy time..
by brunoduarte
Hi,
I'm having a problem deploying an EJB with RMI-IIOP support that I can't understand. If I deploy it without RMI-IIOP support it works fine.
ejb-jar.xml<?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
|
| <ejb-jar >
|
| <description><![CDATA[No Description.]]></description>
| <display-name>Generated by XDoclet</display-name>
|
| <enterprise-beans>
|
| <!-- Session Beans -->
| <session >
| <description><![CDATA[Description for ConferenceFacade]]></description>
| <display-name>Name for ConferenceFacade</display-name>
|
| <ejb-name>ConferenceFacade</ejb-name>
|
| <home>pt.ptinovacao.xmas.app.conference.web.control.interfaces.ConferenceFacadeHome</home>
| <remote>pt.ptinovacao.xmas.app.conference.web.control.interfaces.ConferenceFacade</remote>
| <local-home>pt.ptinovacao.xmas.app.conference.web.control.interfaces.ConferenceFacadeLocalHome</local-home>
| <local>pt.ptinovacao.xmas.app.conference.web.control.interfaces.ConferenceFacadeLocal</local>
| <ejb-class>pt.ptinovacao.xmas.app.conference.web.control.ejb.ConferenceFacadeBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
|
| </session>
| </enterprise-beans>
|
| <assembly-descriptor >
| </assembly-descriptor>
|
| </ejb-jar>
jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss_2_4.dtd">
|
| <jboss>
|
| <enterprise-beans>
|
| <!--
| To add beans that you have deployment descriptor info for, add
| a file to your XDoclet merge directory called jboss-beans.xml that contains
| the <session></session>, <entity></entity> and <message-driven></message-driven>
| markup for those beans.
| -->
|
| <session>
| <ejb-name>ConferenceFacade</ejb-name>
| <jndi-name>ejb/ConferenceFacade</jndi-name>
| <!--local-jndi-name>ConferenceFacadeLocal</local-jndi-name-->
|
| <configuration-name>Standard Stateless SessionBean</configuration-name>
| <invoker-bindings>
| <invoker>
| <invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
| </invoker>
| </invoker-bindings>
|
| </session>
|
| <!--
| write a merge file jboss-webservices.ent for webservice-description
| -->
|
| </enterprise-beans>
|
| <resource-managers>
| </resource-managers>
|
| <!--
| | for container settings, you can merge in jboss-container.xml
| | this can contain <invoker-proxy-bindings/> and <container-configurations/>
| -->
|
| </jboss>
Exception:
20:29:03,345 INFO [EjbModule] Deploying ConferenceFacade
| 20:29:03,470 WARN [ServiceController] Problem creating service jboss.j2ee:jndiName=ejb/ConferenceFacade,service=EJB
| java.lang.RuntimeException: Cannot obtain exception repository id for java.lang.NullPointerException:
| org.jboss.iiop.rmi.RMIIIOPViolationException: Exception type java.lang.NullPointerException must be a checked exception class.
| at org.jboss.iiop.rmi.marshal.strategy.SkeletonStrategy$ExceptionWriter.<init>(SkeletonStrategy.java:246)
| at org.jboss.iiop.rmi.marshal.strategy.SkeletonStrategy.<init>(SkeletonStrategy.java:108)
| at org.jboss.proxy.ejb.IORFactory.create(IORFactory.java:327)
| at org.jboss.ejb.SessionContainer.createInvokers(SessionContainer.java:365)
| at org.jboss.ejb.SessionContainer.createService(SessionContainer.java:174)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.create(Unknown Source)
| at org.jboss.system.ServiceController.create(ServiceController.java:330)
| at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy147.create(Unknown Source)
| at org.jboss.ejb.EjbModule.createService(EjbModule.java:377)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.create(Unknown Source)
| at org.jboss.system.ServiceController.create(ServiceController.java:330)
| at org.jboss.system.ServiceController.create(ServiceController.java:273)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy25.create(Unknown Source)
| at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:641)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:74)
| at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy26.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 20:29:03,502 INFO [EJBDeployer] Deployed: file:/C:/jboss-4.0.5/server/all/deploy/ConferenceWebControlEJB.jar
| 20:29:03,548 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.j2ee:jndiName=ejb/ConferenceFacade,service=EJB
| State: FAILED
| Reason: java.lang.RuntimeException: Cannot obtain exception repository id for java.lang.NullPointerException:
| org.jboss.iiop.rmi.RMIIIOPViolationException: Exception type java.lang.NullPointerException must be a checked exception class.
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.j2ee:jndiName=ejb/ConferenceFacade,service=EJB
| State: FAILED
| Reason: java.lang.RuntimeException: Cannot obtain exception repository id for java.lang.NullPointerException:
| org.jboss.iiop.rmi.RMIIIOPViolationException: Exception type java.lang.NullPointerException must be a checked exception class.
I'm using XDoclet to generate interfaces and these descriptors. I'm working in windows with jboss-4.0.5.
I really appreciate your help.
Bruno
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028157#4028157
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028157
19Â years, 1Â month