[EJB/JBoss] - IIOP deployment problems
by jstelzer
I'm having a hard time getting an EJB to register with the ORB. Jacorb starts with the server. I can see the IOR for the naming service and the transaction service. However, when I attempt to use the iiop interceptor in jboss.xml to register a bean, I get an NPE.
I am using jboss 4.0.5.GA with java 1.5.0_11. The stacktrace seems to be indicating that Any codebase = orb.create_any(); is failing, but I don't know what this is symptomatic of.
Below is the ejb-jar.xml as well as the jboss.xml. This is just a simple class to learn how to get corba working. Eventually I plan on adding facades to various other beans so that we may integrate them with some C++ applications. Any insight is appreciated.
Below are the ejb-jar.xml, jboss.xml and the stack trace on deployment.
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jboss>
| <enterprise-beans>
| <session>
| <ejb-name>CorbaFriendlyExample</ejb-name>
| <jndi-name>examples/CorbaFriendlySession</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>
| </enterprise-beans>
| </jboss>
|
|
| <?xml version="1.0"?>
| <!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>
|
| <enterprise-beans>
|
| <session>
| <ejb-name>CorbaFriendlyExample</ejb-name>
| <home>examples.CorbaFriendlySessionHome</home>
| <remote>examples.CorbaFriendlySession</remote>
| <ejb-class>examples.CorbaFriendlySessionBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| </session>
|
| </enterprise-beans>
|
| <assembly-descriptor>
|
| <security-role>
| <description>
| This role represents everyone who is allowed full access to the bean.
| </description>
| <role-name>everyone</role-name>
| </security-role>
|
| <method-permission>
| <role-name>everyone</role-name>
| <method>
| <ejb-name>CorbaFriendlyExample</ejb-name>
| <method-name>*</method-name>
| </method>
| </method-permission>
|
| <container-transaction>
| <method>
| <ejb-name>CorbaFriendlyExample</ejb-name>
| <method-name>*</method-name>
| </method>
| <trans-attribute>Required</trans-attribute>
| </container-transaction>
|
| </assembly-descriptor>
|
| </ejb-jar>
|
|
|
|
| 11:32:13,946 WARN sys : [ServiceController] Problem creating service jboss.j2ee:jndiName=examples/CorbaFriendlySession,service=EJB
| java.lang.NullPointerException
| at org.jboss.proxy.ejb.IORFactory.create(IORFactory.java:379)
| 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.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.create(Unknown Source)
| at org.jboss.system.ServiceController.create(ServiceController.java:330)
| at sun.reflect.GeneratedMethodAccessor88.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 $Proxy188.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.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.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.GeneratedMethodAccessor4.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 $Proxy31.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 $Proxy32.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor21.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 $Proxy7.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| 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)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059663#4059663
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059663
17Â years, 6Â months
[JBoss Seam] - "No application context active" error in remoting request wi
by zdaler
I'm still stuck with my problem : being unable to access seam components from within a "remoting" request. All worked fine using seam 1.3* but since the 2.0.0B1 upgrade I get the error :
anonymous wrote : 17:31:19,595 ERROR [ExecutionHandler] Error unmarshalling calls from request
| java.lang.IllegalStateException: No application context active
| at org.jboss.seam.Component.forName(Component.java:1690)
| at org.jboss.seam.remoting.wrapper.BeanWrapper.setElement(BeanWrapper.java:40)
| at org.jboss.seam.remoting.CallContext.createWrapperFromElement(CallContext.java:45)
| at org.jboss.seam.remoting.ExecutionHandler.unmarshalCalls(ExecutionHandler.java:147)
| at org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:58)
| at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:113)
| at org.jboss.seam.servlet.SeamResourceServlet.doGet(SeamResourceServlet.java:69)
| at org.jboss.seam.servlet.SeamResourceServlet.doPost(SeamResourceServlet.java:78)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059653#4059653
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059653
17Â years, 6Â months
[JBoss Seam] - Malformed xhtml with facelet include
by robin.hultman
When I changed from Seam 1.2.1.GA to 2.0.0.BETA my menu won't render in Firefox due to malformed xhtml.
I have a template:
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| xmlns:s="http://jboss.com/products/seam/taglib">
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| <link rel="stylesheet" type="text/css" href="/cabin/stylesheet/menu.css" />
| <link rel="stylesheet" type="text/css" href="/cabin/stylesheet/omxlap.css" />
| <link rel="stylesheet" type="text/css" href="/cabin/stylesheet/calendar/date.css" />
| <script language="JavaScript" type="text/javascript" src="/cabin/javascripts/ie_menu_fix.js"></script>
| <ui:insert name="head"/>
| </head>
| <body style="text-align: center;background:#EFEFEF;">
| <div class="title" style="margin-left: auto;margin-right: auto;width: 800px;text-align: left; ">Fjällstugelottning - <ui:insert name="title"/></div>
| <div style="padding: 20px; padding-top: 0px; border: 1px solid #E5E5E5; margin-left: auto;margin-right: auto;width: 800px;text-align: left;background:#FFFFFF;">
|
| <div class="list-toolbar"><ui:include src="list-toolbar.xhtml"/></div>
| <ui:insert name="content"/>
| </div>
| </body>
| </html>
Which includes another xhtml file:
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| xmlns:s="http://jboss.com/products/seam/taglib">
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| <link rel="stylesheet" type="text/css" href="/cabin/stylesheet/menu.css" />
| <link rel="stylesheet" type="text/css" href="/cabin/stylesheet/omxlap.css" />
| <link rel="stylesheet" type="text/css" href="/cabin/stylesheet/calendar/date.css" />
| <script language="JavaScript" type="text/javascript" src="/cabin/javascripts/ie_menu_fix.js"></script>
| <ui:insert name="head"/>
| </head>
| <body style="text-align: center;background:#EFEFEF;">
| <div class="title" style="margin-left: auto;margin-right: auto;width: 800px;text-align: left; ">Fjällstugelottning - <ui:insert name="title"/></div>
| <div style="padding: 20px; padding-top: 0px; border: 1px solid #E5E5E5; margin-left: auto;margin-right: auto;width: 800px;text-align: left;background:#FFFFFF;">
|
| <div class="list-toolbar"><ui:include src="list-toolbar.xhtml"/></div>
| <ui:insert name="content"/>
| </div>
| </body>
| </html>
Which includes two different menus
| <span xmlns:h="http://java.sun.com/jsf/html"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich">
| <h:outputText rendered="#{s:hasRole('Admin')}">
| <rich:dropDownMenu value="Admin">
| <rich:menuItem value="Application settings" submitMode="none" onclick="document.location.href='admin/params.seam'"/>
| <rich:menuItem value="User admin" submitMode="none" onclick="document.location.href='admin/user.seam'"/>
| <rich:menuItem value="Key word admin" submitMode="none" onclick="document.location.href='admin/keywordList.seam'"/>
| </rich:dropDownMenu>
| </h:outputText>
| </span>
|
And:
| <span xmlns="http://www.w3.org/1999/xhtml"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich">
|
| <rich:dropDownMenu value="Vyer">
|
| <rich:menuGroup value="Bokbara objekt">
| <rich:menuItem value="Sorta på vecka" submitMode="none" onclick="document.location.href='/cabin/weekView.seam'"/>
| <rich:menuItem value="Sorta på objekt" submitMode="none" onclick="document.location.href='/cabin/bookableView.seam'"/>
| </rich:menuGroup>
|
| <rich:menuSeparator id="menuSeparator11"/>
|
| <!-- Use different lists wether the drawing is done or not -->
| <rich:menuItem value="Anmälningar" submitMode="none"
| onclick="document.location.href='/cabin/management/subscriptionView.seam'"
| rendered="#{curPeriod.status == 1}"/>
| <rich:menuItem value="Anmälningar" submitMode="none"
| onclick="document.location.href='/cabin/management/subscriptionView1.seam'"
| rendered="#{curPeriod.status == 2}"/>
|
| <rich:menuGroup value="Anmälningar enl. status">
| <rich:menuItem value="Accepterade" submitMode="server" action="#{subscriptionView.setListing('5')}"/>
| <rich:menuItem value="Avslagna" submitMode="server" action="#{subscriptionView.setListing('4')}"/>
| <rich:menuItem value="Vinnare" submitMode="server" action="#{subscriptionView.setListing('3')}"/>
| <rich:menuItem value="Reserver" submitMode="server" action="#{subscriptionView.setListing('2')}"/>
| <rich:menuItem value="Nya" submitMode="server" action="#{subscriptionView.setListing('1')}"/>
| <rich:menuItem value="Borttagna" submitMode="server" action="#{subscriptionView.setListing('0')}"/>
| </rich:menuGroup>
|
| <rich:menuItem value="Stugor" submitMode="none"
| onclick="document.location.href='/cabin/management/cabinView.seam'"/>
|
| </rich:dropDownMenu>
| </span>
|
As far as I can tell it stops rendering after the span tag in the first menu include and then tries to render the second menu include. I then get a malformed xml error in firefox stating that the span tag is not closed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059652#4059652
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059652
17Â years, 6Â months