[JBoss Messaging] - Wrong target. class org.jboss.jms.client.delegate.ClientConn
by pierods
I get an error when trying to retrieve a remote connection:
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
prop.put(Context.PROVIDER_URL, "jnp://*****:64115");
prop.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
Context jndiContext = new InitialContext(prop);
ConnectionFactory factory = (ConnectionFactory)
jndiContext.lookup("java:/ConnectionFactory");
Queue queue = (Queue) jndiContext.lookup("java:/queue/A");
Connection connection = factory.createConnection();
On createConnection() I get:
Exception in thread "main" java.lang.IllegalArgumentException: Wrong target. class org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate for public org.jboss.jms.delegate.CreateConnectionResult org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(java.lang.String,java.lang.String,int) throws javax.jms.JMSException
at org.jboss.aop.joinpoint.MethodInvocation.handleErrors(MethodInvocation.java:141)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:116)
at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
at simple.JMSLauncher.(JMSLauncher.java:55)
at simple.JMSLauncher.main(JMSLauncher.java:65)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232235#4232235
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232235
16 years, 11 months
[EJB/JBoss] - unable to deploy .sar file in deploy folder..getting strange
by manishiitr2005
JBOSS_HOME: D:\sw\jboss-4.2.2.GA
JAVA: C:\Program Files\Java\jdk1.5.0_14\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\Program Files\Java\jdk1.5.0_14\lib\tools.jar;D:\sw\jboss-4.2.2.GA\bin\run.jar
=============================================================================
:33:35,512 INFO [Server] Starting JBoss (MX MicroKernel)...
:33:35,512 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
:33:35,512 INFO [Server] Home Dir: D:\sw\jboss-4.2.2.GA
:33:35,512 INFO [Server] Home URL: file:/D:/sw/jboss-4.2.2.GA/
:33:35,512 INFO [Server] Patch URL: null
:33:35,512 INFO [Server] Server Name: default
:33:35,512 INFO [Server] Server Home Dir: D:\sw\jboss-4.2.2.GA\server\default
:33:35,512 INFO [Server] Server Home URL: file:/D:/sw/jboss-4.2.2.GA/server/default/
:33:35,512 INFO [Server] Server Log Dir: D:\sw\jboss-4.2.2.GA\server\default\log
:33:35,512 INFO [Server] Server Temp Dir: D:\sw\jboss-4.2.2.GA\server\default\tmp
:33:35,512 INFO [Server] Root Deployment Filename: jboss-service.xml
:33:36,168 INFO [ServerInfo] Java version: 1.5.0_14,Sun Microsystems Inc.
:33:36,168 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_14-b03,Sun Microsystems Inc.
:33:36,168 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
:33:37,747 INFO [Server] Core system initialized
:33:43,076 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
:33:43,092 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
:33:44,358 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
:33:44,358 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
:33:44,608 INFO [TransactionManagerService] Starting recovery manager
:33:44,701 INFO [TransactionManagerService] Recovery manager started
:33:44,701 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
:33:50,421 INFO [EJB3Deployer] Starting java:comp multiplexer
:34:32,664 ERROR [MainDeployer] Could not initialise deployment: file:/D:/sw/jboss-4.2.2.GA/server/default/deploy/TokenCounterService.sar
g.jboss.deployment.DeploymentException: Connection timed out: connect; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:217)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
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 $Proxy9.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.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.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:508)
at java.lang.Thread.run(Thread.java:595)
used by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
at sun.net.www.http.HttpClient.(HttpClient.java:231)
at sun.net.www.http.HttpClient.New(HttpClient.java:304)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:622)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
... 68 more
:34:33,367 INFO [STDOUT] no object for null
:34:33,367 INFO [STDOUT] no object for null
:34:33,383 INFO [STDOUT] no object for null
:34:33,399 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
:34:33,414 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
:34:35,680 INFO [NativeServerConfig] JBoss Web Services - Native
:34:35,680 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
:34:37,540 INFO [Embedded] Catalina naming disabled
:34:37,743 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_14\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
iles\Avaya Modular Messaging\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\Java\jdk1.6.0_03\b
;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Windows Imaging\;C:\mysql\bin ;C:\Sun\SDK\bin;C:\Sun\SDK\lib\ant\bin;C:\Program Files\Java\jdk1.5.0_14\bin;D:\tool
:34:37,978 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
:34:37,993 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
:34:37,993 INFO [Catalina] Initialization processed in 448 ms
:34:37,993 INFO [StandardService] Starting service jboss.web
:34:37,993 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
:34:38,040 INFO [Catalina] Server startup in 53 ms
:34:38,493 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
:34:39,134 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
:34:39,447 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
:34:39,916 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
:34:41,932 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
:34:42,447 INFO [MailService] Mail Service bound to java:/Mail
:34:42,838 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
:34:42,885 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
:34:42,932 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
:34:42,963 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
:34:43,072 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
:34:43,213 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
:34:43,260 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
:34:43,276 INFO [QuartzResourceAdapter] start quartz!!!
:34:43,322 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
:34:43,338 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
:34:43,338 INFO [RAMJobStore] RAMJobStore initialized.
:34:43,338 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
:34:43,338 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
:34:43,338 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
:34:44,682 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
:34:44,901 INFO [A] Bound to JNDI name: queue/A
:34:44,901 INFO [B] Bound to JNDI name: queue/B
:34:44,901 INFO [C] Bound to JNDI name: queue/C
:34:44,901 INFO [D] Bound to JNDI name: queue/D
:34:44,901 INFO [ex] Bound to JNDI name: queue/ex
:34:44,916 INFO [testTopic] Bound to JNDI name: topic/testTopic
:34:44,916 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
:34:44,916 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
:34:44,916 INFO [testQueue] Bound to JNDI name: queue/testQueue
:34:44,948 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
:34:44,979 INFO [DLQ] Bound to JNDI name: queue/DLQ
:34:45,104 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
:34:45,182 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
:34:45,307 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
- Incompletely deployed packages ---
g.jboss.deployment.DeploymentInfo@5b604a49 { url=file:/D:/sw/jboss-4.2.2.GA/server/default/deploy/TokenCounterService.sar }
deployer: org.jboss.deployment.SARDeployer@50988
status: null
state: FAILED
watch: file:/D:/sw/jboss-4.2.2.GA/server/default/deploy/TokenCounterService.sar
altDD: null
lastDeployed: 1242821072664
lastModified: 1242821030671
mbeans:
:34:45,401 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
:34:45,432 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
:34:45,448 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 1m:9s:936ms
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232227#4232227
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232227
16 years, 11 months
[JBoss Portal] - Jboss portal on JBoss AS5
by hilmer
Ups, I accidentially posted this in the wrong forum, sorry.
Hi
I successfully deployed Jboss portal using the instructions on:
http://www.jboss.org/community/wiki/JBossPortalonAS5%3Bjsessionid=8BAD177...
But then I changed to JBoss AS 5.1.0CR1
and I get this at runtime.
21:17:08,408 ERROR [AbstractKernelController] Error installing to Start: name=portal:service=IdentityUIConfigurationService,type=IdentityUI state=Create mode=Manual requiredState=Installed
org.jboss.portal.core.identity.services.metadata.CoreIdentityConfigurationException: Could not parse configuration file.
at org.jboss.portal.core.identity.services.metadata.IdentityUIConfigurationServiceImpl.createConfiguration(IdentityUIConfigurationServiceImpl.java:340)
at org.jboss.portal.core.identity.services.metadata.IdentityUIConfigurationServiceImpl.startService(IdentityUIConfigurationServiceImpl.java:135)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
at org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJBossService.java:73)
at sun.reflect.GeneratedMethodAccessor316.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.execute(JBossServiceModelMBean.java:486)
at org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.startService(JBossServiceModelMBean.java:452)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
at org.jboss.portal.jems.as.system.JBossServiceModelMBean$6.invoke(JBossServiceModelMBean.java:374)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:216)
at org.jboss.Main$1.run(Main.java:546)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: overwrite-workflow cannot appear in this position. Expected content of identity-ui-configuration is choice: subscription-mode admin-subscription-mode overwrite-workflow email-domain email-from password-generation-characters default-roles ui-components
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)
at org.jboss.portal.core.identity.services.metadata.IdentityUIConfigurationServiceImpl.createConfiguration(IdentityUIConfigurationServiceImpl.java:332)
... 72 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: overwrite-workflow cannot appear in this position. Expected content of identity-ui-configuration is choice: subscription-mode admin-subscription-mode overwrite-workflow email-domain email-from password-generation-characters default-roles ui-components
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:449)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
... 75 more
Any clues?
Does anybody know here now the timeframe for migrating JBossPortal to JBAS 5.1?
Best regards
Soren
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232216#4232216
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232216
16 years, 11 months
[Microcontainer] - can't read resource from the classpath??
by jeff.yuchang
Hi all,
I've created a deployer for jboss identity, which is listening on the -jboss-idm.xml file.
It has two deployer classes, one is the deployer that IDMVFSParsingDeployer, which extends AbstractVFSParsingDeployer, the other is IDMSimpleVFSRealDeployer that extends AbstractSimpleVFSRealDeployer.
The work that deployer need to be done is simple.
1. IDMVFSParsingDeployer just need to listening on the -jboss-idm.xml, and then turn this xml file into javabean object(Metadata).
2. IDMSimpleVFSRealDeployer will get the config file from the javabean object(metadata), and then use the jboss identity API to start its service.
So in the jboss5.0.1.GA/server/default/deployer, it will have a idm-deployer.
in its deploy folder, it has idm folder that only contains three files.
| default-jboss-idm.xml
| jboss.idm.cfg.xml
| jboss.idm.hibernate.cfg.xml
|
In the IDMVFSParsingDeployer, I am using the vsfile.openStream to read the default-jboss-idm.xml, it works great..
the default-jboss-idm.xml is following
| <?xml version="1.0" encoding="UTF-8"?>
| <jboss-idm-deployer xmlns="urn:jboss:identity:idm:deployer:v1_0_alpha"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jboss:identity:idm:deployer:v1_0_alpha identity-deployer.xsd">
| <JNDIName>java:/identitySessionFactory</JNDIName>
| <idmConfigFile>jboss.idm.cfg.xml</idmConfigFile>
| <initializers>
| <hibernateInitializerType>
| <doChecking>true</doChecking>
| </hibernateInitializerType>
| </initializers>
| </jboss-idm-deployer>
so I can read the idmConfigFile property from here, but the question is, now I invoke the
| JAXB2IdentityConfiguration.createConfigurationMetaData("jboss.idm.cfg.xml")
It will tell me it can't find the jboss.idm.cfg.xml resource.
the code for the JAXB2IdentityConfiguration.createConfigurationMetaData is:
| ClassLoader classLoader = SecurityActions.getContextClassLoader();
| InputStream inputStream = classLoader.getResourceAsStream(configResource);
| if (inputStream == null)
| {
| throw new IllegalArgumentException("Resource "+configResource+" does not exist");
| }
| return createConfigurationMetaData(inputStream);
|
So I am wondering whether because the lib was in the deployer/idm-deployer folder, and then can't access the resources in the deploy/idm/ directory?
Or I did something wrong in other places?
Thoughts?
Thanks
Jeff
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232188#4232188
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232188
16 years, 11 months
[Security & JAAS/JBoss] - Does <method-permission> overwrite prevoius entry in ejb-jar
by DarekS
Hi
I'm trying to restrict EJB method "add" in remote interface, and leave the same method in local interface accessible freely. I tried to use <method-intf> tag to distinguish interfaces. I have following entries:
...
| <assembly-descriptor>
| <security-role>
| <description>Calculator guest</description>
| <role-name>guest</role-name>
| </security-role>
|
| <security-role>
| <description>Calculator external role</description>
| <role-name>externalUser</role-name>
| </security-role>
|
| <method-permission>
| <role-name>guest</role-name>
| <method>
| <ejb-name>CalculatorBean</ejb-name>
| <method-intf>Home</method-intf>
| <method-name>add</method-name>
| </method>
| </method-permission>
|
| <method-permission>
| <role-name>externalUser</role-name>
| <method>
| <ejb-name>CalculatorBean</ejb-name>
| <method-intf>Remote</method-intf>
| <method-name>add</method-name>
| </method>
| </method-permission>
| </assembly-descriptor>
| ...
During debugging I saw that only externaUser role is available for "add". It seems that previous <method-permission> is overwritten. My "guest" role is unknown. If I comment last entry, then the "guest" role is available.
I'm invoking EJB via local interface, from another stateless EJB (packed in other jar file, but delivered in the same EAR). Caller is recognized as "guest"
Do you know what is going on? Am I specifying permissions in incorrect way? Or did I miss something important? My login-config.xml is configured to accept "unauthenticatedIdentity"
JBoss: 4.2.0 GA
JDK: 1.6.0 u13
Thanks in advance!
Darek
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232186#4232186
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232186
16 years, 11 months