[Security & JAAS/JBoss] - Jboss is always using UserRolesLoginModule instead of Client
by ssiebel
Hi,
i'm currently trying to use the ClientLoginModule in Jboss 4.2.1 in a JSF based WebApp.
I'm passing -Djava.security.auth.login.config==C:/auth.conf to the VM when starting the jboss app server.
auth.conf looks like this:
| mylogin {
| org.jboss.security.ClientLoginModule required;
| };
|
In my login Bean i'm creating a new login context like this:
| final CallbackHandler cbHandler = new MyCallBackHandler(username, password.toCharArray(), clientId);
| LoginContext loginContext = new LoginContext("mylogin", cbHandler);
| loginContext.login();
|
The last line produces this error output on the console:
| 10:04:18,466 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
| java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
| at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at javax.security.auth.login.LoginContext.invoke(Unknown Source)
| at javax.security.auth.login.LoginContext.access$000(Unknown Source)
| at javax.security.auth.login.LoginContext$4.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
| at javax.security.auth.login.LoginContext.login(Unknown Source)
|
| (...)
|
Can somebody help me with this? I read quite a lot of documentation and tutorials about that topic since yesterday but somehow don't get the point...
br,
Stefan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129027#4129027
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129027
18 years, 2 months
[JBossWS] - Web service hosted but client program cannot access it ERROR
by ronyjoy
hi, pls help me,
my problem is
i have hosted the WEb services successfully, i can that in the below URL
http://localhost/jbossws/services
Environment is
Jboss 4.2.2,
jdk jdk1.5.0_12
web service end point is EJB3
But i when i am trying to access it through a Client i am getting some
exceptions from JBOSS Side
14:03:31,234 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception
javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://test.main.i9check.source/}GreeterPort does not contain operation meta
data for: sayhello
at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.exceptionToFaultMessage(SOAPFaultHelperJAXRPC.java:189)
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:157)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:430)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
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.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.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
and in the client Side Exception is
com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
my client code is
package source.web.user;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.encoding.XMLType;
import javax.xml.rpc.soap.SOAPFaultException;
public class HelloClient
{
static String WSDLLoc="http://127.0.0.1/i9check/TestWebServicesBean";
static String serviceName="http://test.main.i9check.source/";
static String portType="TestWebServicesBean";
static String serviceEndPointAddress=WSDLLoc;
static String nameSpace="http://test.main.i9check.source";
public static void main(String[] args)
{
try {
URL wsUrl = new URL(WSDLLoc+"?wsdl");
/*QName operationName = new QName(nameSpace,serviceName);
Service service = Service.create(wsUrl,operationName);
Call call = service.createCall(portName, operationName);*/
/* Service lookup */
ServiceFactory serviceFactory = ServiceFactory.newInstance();
//Service service = serviceFactory.createService(wsUrl, new QName(serviceName));
Service service = serviceFactory.createService(wsUrl, new QName(serviceName,"Greeter"));
/* Service access */
Call call = (Call) service.createCall();
call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, "http://schemas.xmlsoap.org/soap/encoding/");
call.setProperty(Call.OPERATION_STYLE_PROPERTY, "rpc");
call.setTargetEndpointAddress(serviceEndPointAddress);
call.removeAllParameters();
call.setPortTypeName(new QName(portType));
call.setOperationName(new QName("sayhello"));
//if (call.isParameterAndReturnSpecRequired(call.getOperationName())){
call.addParameter("in0", XMLType.XSD_STRING,ParameterMode.IN);
call.setReturnType(XMLType.XSD_STRING);
//}
/* Service invocation */
call.invoke(new Object[] {"Rony"});
}
catch (SOAPFaultException sfe){
System.out.println("Detail "+sfe.getDetail());
System.out.println("getFaultCode "+sfe.getFaultCode());
System.out.println("getFaultString "+sfe.getFaultString());
System.out.println("getFaultActor "+sfe.getFaultActor());
}
catch (javax.xml.ws.soap.SOAPFaultException sfe){
System.out.println("getCause "+sfe.getCause());
System.out.println("getStackTrace "+sfe.getStackTrace());
System.out.println("getFaultCode "+sfe.getFault());
}
catch(Exception ex) {System.out.println("Exception "+ex.getMessage());}
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129018#4129018
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129018
18 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Cannot bind transaction factory in CORBA naming service
by argonist
Hello,
I installed again new JBoss 4.0.5 with SDK6 and configured nothings. But it is still error at corba transaction On the server there are two Jboss and both server have the same problem. I am been tried only one Jboss and it is still problem. I don`t know, what ist problem.
anonymous wrote :
|
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /home/jboss/JBoss-4.0.5.GA
|
| JAVA: /usr/lib64/jvm/java/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=360000
| 0
|
| CLASSPATH: /home/jboss/JBoss-4.0.5.GA/bin/run.jar:/usr/lib64/jvm/java/lib/tools.jar
|
| =========================================================================
|
| 22:38:11,293 INFO [Server] Starting JBoss (MX MicroKernel)...
| 22:38:11,294 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
| 22:38:11,295 INFO [Server] Home Dir: /home/jboss/JBoss-4.0.5.GA
| 22:38:11,295 INFO [Server] Home URL: file:/home/jboss/JBoss-4.0.5.GA/
| 22:38:11,296 INFO [Server] Patch URL: null
| 22:38:11,297 INFO [Server] Server Name: production
| 22:38:11,297 INFO [Server] Server Home Dir: /home/jboss/JBoss-4.0.5.GA/server/production
| 22:38:11,297 INFO [Server] Server Home URL: file:/home/jboss/JBoss-4.0.5.GA/server/production/
| 22:38:11,297 INFO [Server] Server Log Dir: /home/jboss/JBoss-4.0.5.GA/server/production/log
| 22:38:11,297 INFO [Server] Server Temp Dir: /home/jboss/JBoss-4.0.5.GA/server/production/tmp
| 22:38:11,298 INFO [Server] Root Deployment Filename: jboss-service.xml
| 22:38:11,610 INFO [ServerInfo] Java version: 1.5.0_13,Sun Microsystems Inc.
| 22:38:11,610 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_13-b05,Sun Microsystems Inc.
| 22:38:11,610 INFO [ServerInfo] OS-System: Linux 2.6.20.21-071108a,amd64
| 22:38:12,201 INFO [Server] Core system initialized
| 22:38:15,191 INFO [WebService] Using RMI server codebase: http://ponte-net.de:8083/
| 22:38:15,213 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 22:38:18,477 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://87.106.25.52:3873/]
| 22:38:25,282 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
| 22:38:26,013 INFO [SnmpAgentService] SNMP agent going active
| 22:38:26,987 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E74657874
| 4578743A312E3000000000000200000000000000E8000102000000000D38372E3130362E32352E353200000DC8000000114A426F73732F4E616D696E672F726F6F740000000
| 00000050000000000000008000000004A414300000000010000001C000000000001000100000001050100010001010900000001050100010000002100000060000000000000
| 00010000000000000024000000200000007E00000000000000010000000D38372E3130362E32352E353200000DC900400000000000000000001004010008060667810201010
| 100000000000000000000000000000000000000000000002000000004000000000000001F000000040000000300000001000000200000000000000002000000200000000400
| 0000000000001F0000000400000003]
| 22:57:23,646 ERROR [CorbaTransactionService] Cannot bind transaction factory in CORBA naming service:
| org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 87.106.25.52:3528 vmcid: 0x0 minor code: 0 completed: No
| at org.jacorb.orb.iiop.ClientIIOPConnection.connect(ClientIIOPConnection.java:219)
| at org.jacorb.orb.giop.GIOPConnection.sendMessage(GIOPConnection.java:839)
| at org.jacorb.orb.giop.GIOPConnection.sendRequest(GIOPConnection.java:809)
| at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:309)
| at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:289)
| at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:919)
| at org.jacorb.orb.Delegate.invoke(Delegate.java:868)
| at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
| at org.omg.CosNaming._NamingContextExtStub.to_name(_NamingContextExtStub.java:79)
| at org.jboss.tm.iiop.CorbaTransactionService.startService(CorbaTransactionService.java:143)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.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.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at sun.reflect.GeneratedMethodAccessor9.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 $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor19.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.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.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.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.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 $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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.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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:595)
| 22:57:23,653 WARN [ServiceController] Problem starting service jboss:service=CorbaTransaction
| java.lang.Exception: Cannot bind transaction factory in CORBA naming service:
| org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 87.106.25.52:3528 vmcid: 0x0 minor code: 0 completed: No
| at org.jboss.tm.iiop.CorbaTransactionService.startService(CorbaTransactionService.java:156)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.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.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at sun.reflect.GeneratedMethodAccessor9.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 $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor19.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.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.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.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.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 $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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.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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:595)
| 22:57:24,745 INFO [Embedded] Catalina naming disabled
| 22:57:24,806 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 22:57:24,808 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 22:57:25,303 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 22:57:25,305 INFO [Catalina] Initialization processed in 497 ms
| 22:57:25,305 INFO [StandardService] Starting service jboss.web
| 22:57:25,310 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
| 22:57:25,380 INFO [StandardHost] XML validation disabled
| 22:57:25,766 INFO [Catalina] Server startup in 461 ms
| 22:57:25,907 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 22:57:26,215 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
| 22:57:26,969 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
| 22:57:27,163 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp31679jbossws-context-exp.war/
| 22:57:27,381 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
| 22:57:29,192 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
| 22:57:30,049 INFO [MailService] Mail Service bound to java:/Mail
| 22:57:30,208 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
| 22:57:30,299 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 22:57:30,393 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
| 22:57:30,421 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 22:57:30,491 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
| 22:57:30,520 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 22:57:30,561 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
| 22:57:30,571 INFO [QuartzResourceAdapter] start quartz!!!
| 22:57:30,638 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 22:57:30,664 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 22:57:30,667 INFO [RAMJobStore] RAMJobStore initialized.
| 22:57:30,667 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package
| : 'quartz.properties'
| 22:57:30,668 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 22:57:30,668 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| 22:57:31,901 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'ja
| va:DefaultDS'
| 22:57:32,219 INFO [A] Bound to JNDI name: queue/A
| 22:57:32,221 INFO [B] Bound to JNDI name: queue/B
| 22:57:32,223 INFO [C] Bound to JNDI name: queue/C
| 22:57:32,225 INFO [D] Bound to JNDI name: queue/D
| 22:57:32,227 INFO [ex] Bound to JNDI name: queue/ex
| 22:57:32,247 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 22:57:32,250 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 22:57:32,252 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
| 22:57:32,256 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 22:57:32,308 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
| 22:57:32,347 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 22:57:32,534 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JND
| I name 'java:JmsXA'
| 22:57:32,639 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS' to JNDI name 'java
| :MySqlDS'
| 22:57:32,719 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
| 22:57:32,957 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss:service=CorbaTransaction
| State: FAILED
| Reason: java.lang.Exception: Cannot bind transaction factory in CORBA naming service:
| org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 87.106.25.52:3528 vmcid: 0x0 minor code: 0 completed: No
| I Depend On:
| jboss:service=TransactionManager
| jboss:service=CorbaORB
| jboss:service=CorbaNaming
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss:service=CorbaTransaction
| State: FAILED
| Reason: java.lang.Exception: Cannot bind transaction factory in CORBA naming service:
| org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 87.106.25.52:3528 vmcid: 0x0 minor code: 0 completed: No
| I Depend On:
| jboss:service=TransactionManager
| jboss:service=CorbaORB
| jboss:service=CorbaNaming
|
| 22:57:33,029 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 22:57:33,101 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 22:57:33,176 INFO [JkMain] Jk running ID=0 time=0/93 config=null
| 22:57:33,203 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 19m:21s:903ms
|
Have you any idea to solve that problem?
Manu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129016#4129016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129016
18 years, 2 months
[JBoss Seam] - Re: EntityManager not injected in onMessage method
by rmcalderero
As a workaround, we have brought our code reading from the queue out of the onMessage method, an put it inside another asynchronous method periodically executed (quartz).
And now the entity manager is correctly being injected and we can merge our object.
@Asynchronous
| public void receiveMessage(@Expiration Date begin,
| @IntervalDuration Long interval) {
|
| log.debug("Se ejecuta el Servicio de Resultados......");
|
| try {
|
| Message message = consumer.receiveNoWait();
|
| if (message!=null) {
|
| AnalisisCerrado ac = (AnalisisCerrado) ((ObjectMessage) message).getObject();
| ac = em.merge(ac);
| .....
|
| }
| }
|
| }
So it seems there are some kind of issue in the way seam manages injection in onMessage methods (or at least we havent found any solution; as i explained we have a tipical JPA-tomcat configuration). I think seam people should take a look on this.
If any other people can give some feedback on the topic it will be highly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129013#4129013
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129013
18 years, 2 months