[Clustering/JBoss] - Re: ClusteredSingleSignOn problem
by roberto
This are my configuration steps for both node:
Step #1: Download Apache2 Web Server version 2.0.58 and installed as default
Step #2: Download mod_jk-apache-2.0.55.so
Step #3: Setup Apache
Add this line at the very bottom in APACHE_HOME/conf/httpd.conf :
| Include conf/mod-jk.conf
|
create a new mod-jk.conf like this:
| # Load mod_jk module
| # Specify the filename of the mod_jk lib
| LoadModule jk_module modules/mod_jk.so
|
| # Where to find workers.properties
| JkWorkersFile conf/workers.properties
|
| # Where to put jk logs
| JkLogFile logs/mod_jk.log
|
| # Set the jk log level [debug/error/info]
| JkLogLevel info
|
| # Select the log format
| JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
|
| # JkOptions indicates to send SSK KEY SIZE
| JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
|
| # JkRequestLogFormat
| JkRequestLogFormat "%w %V %T"
|
| # Mount your applications. /* means All application
| JkMount /* loadbalancer
|
| # You can use external file for mount points.
| # It will be checked for updates each 60 seconds.
| # The format of the file is: /url=worker
| # /examples/*=loadbalancer
| #JkMountFile conf/uriworkermap.properties
|
| # Add shared memory.
| # This directive is present with 1.2.10 and
| # later versions of mod_jk, and is needed for
| # for load balancing to work properly
| JkShmFile logs/jk.shm
|
| # Add jkstatus for managing runtime data
| <Location /jkstatus/>
| JkMount jkstatus
| Order deny,allow
| Deny from all
| Allow from 127.0.0.1
| </Location>
|
Configure workers.properties using Sticky Session
(i'm creating a cluster on the same machine)
| # Define list of workers that will be used
| # for mapping requests
| worker.list=loadbalancer,status
| # Define Cluster1
| worker.node1.port=8009
| worker.node1.host=127.0.0.1
| worker.node1.type=ajp13
| worker.node1.lbfactor=1
| #worker.node1.local_worker=1 (1)
| worker.node1.cachesize=10
|
| # Define Cluster2
| worker.node2.port=8309
| worker.node2.host=127.0.0.1
| worker.node2.type=ajp13
| worker.node2.lbfactor=1
| #worker.node2.local_worker=1 (1)
| worker.node2.cachesize=10
|
| # Load-balancing behaviour
| worker.loadbalancer.type=lb
| worker.loadbalancer.balanced_workers=node1, node2
| worker.loadbalancer.sticky_session=1
| worker.loadbalancer.local_worker_only=1
| worker.list=loadbalancer
|
| # Status worker for managing load balancer
| worker.status.type=status
|
Step #4: Setup Tomcato inside JBoss
in JBOSS_HOME\server\<my node>\deploy\jbossweb-tomcat55.sar\server.xml
added jvmRoute to match workers (node1 and node2)
| <Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
| ....
| </Engine>
|
and uncomment ClusteredSingleSignOn valve
| ...
| <!-- Uncomment to enable single sign-on across web apps
| deployed to this host AND to all other hosts in the cluster.
|
| If this valve is used, do not use the standard Tomcat SingleSignOn
| valve shown above.
|
| Valve uses a JBossCache instance to support SSO credential
| caching and replication across the cluster. The JBossCache
| instance must be configured separately. By default, the valve
| shares a JBossCache with the service that supports HttpSession
| replication. See the "tc5-cluster-service.xml" file in the
| server/all/deploy directory for cache configuration details.
|
| Besides the attributes supported by the standard Tomcat
| SingleSignOn valve (see the Tomcat docs), this version also
| supports the following attributes:
|
| cookieDomain see above
|
| treeCacheName JMX ObjectName of the JBossCache MBean used to
| support credential caching and replication across
| the cluster. If not set, the default value is
| "jboss.cache:service=TomcatClusteringCache", the
| standard ObjectName of the JBossCache MBean used
| to support session replication.
| -->
| <!-- -->
| <Valve className="org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn" debug="2" />
| ....
|
|
Step #5: Setup Tomcato inside JBoss
in JBOSS_HOME\server\<my node>\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
Finally, I need to tell Tomcat to add the jvmRoute value to its session cookies so that mod_jk can route incoming requests.
So I change UseJK from false to true
| ...
| <attribute name="UseJK">true</attribute>
| ...
|
Step #6: Set loopback to true for UDP problem on windows machine
Step #7: in my web.xml
| ...
| <distributable></distributable>
| ...
|
and on my jboss-web.xml
| ...
| <replication-config>
| <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
| <replication-granularity>SESSION</replication-granularity>
| </replication-config>
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958524#3958524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958524
19 years, 9 months
[Beginners Corner] - IllegalAccessError on inner classes?
by bkyrlach
Occasionally when starting JBoss AS I get the following exception...
java.lang.IllegalAccessError: tried to access class org.apache.commons.collections.FastHashMap$KeySet from class org.apache.commons.collections.FastHashMap
at org.apache.commons.collections.FastHashMap.keySet(Unknown Source)
at org.apache.commons.validator.ValidatorResources.processForms(ValidatorResources.java:340)
at org.apache.commons.validator.ValidatorResources.process(ValidatorResources.java:327)
at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:237)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:161)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor143.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.GeneratedMethodAccessor5.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 $Proxy39.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
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.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
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 $Proxy40.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor13.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 $Proxy6.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.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.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
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.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:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
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:464)
at java.lang.Thread.run(Thread.java:595)
The very weird thing about this is that it doesn't happen all the time. I can't figure out any reason why it's unable to access the inner class? Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958522#3958522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958522
19 years, 9 months
[JBoss Seam] - Re: Seam reverse engineering tool
by gcowsar
I made some progress.
After re-installing JBoss using the JEMS installer and Seam using a build from CVS I was able to run the tool and get the find and create pages served up.
My table has just 2 cols:
+----------+--------------+------+-----+---------+-------+
| | Field | Type | Null | Key | Default | Extra |
| +----------+--------------+------+-----+---------+-------+
| | lastname | varchar(50) | NO | PRI | | |
| | email | varchar(255) | YES | | NULL | |
| +----------+--------------+------+-----+---------+-------+
|
When I try to do a find I get no results and JBoss says:
09:02:30,122 INFO [Pages] no pages.xml file found
09:02:30,906 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
09:02:30,906 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
09:02:30,906 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
09:02:30,907 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
09:02:30,910 WARN [HtmlLabelRenderer] Unable to find component 'lastname' (calling findComponent on component '_id2:_id9')
09:02:30,914 WARN [HtmlLabelRenderer] Unable to find component 'email' (calling findComponent on component '_id2:_id10')
09:02:30,915 WARN [HtmlLabelRenderer] Unable to find component 'pageSize' (calling findComponent on component '_id2:_id11')
No exceptions but no results.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958521#3958521
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958521
19 years, 9 months
[JBoss Portal] - Can't Make a Simple project work on JBoss Portal.
by jeonggoo
Hi,
I installed the JBoss Portlet Plug-in 1.1.2 on my eclipse 3.1.2.
I create a new portlet project with a test page.
Without adding anything, I used ant and made a .war file and copied it to <jboss-home>server\default\deploy.
The name of the project appeared in Page portlet. (nice)
However, when I clicked it (after logged in as admin), some error page came out saying
____________________________________________
HTTP Status 401-
This request requires HTTP authentication().
_____________________________________________
And I got some error message on the dos prompt winows too like below.
I've spent so many hours for this silly problem.
I wonder if someone help me with this.
Thanks,
Jack
10:41:59,508 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
10:41:59,508 INFO [SchemaExport] Running hbm2ddl schema export
10:41:59,508 INFO [SchemaExport] exporting generated schema to database
10:41:59,518 INFO [NamingHelper] JNDI InitialContext properties:{}
10:41:59,518 INFO [DatasourceConnectionProvider] Using datasource: java:PortalD
S
10:41:59,518 INFO [SchemaExport] schema export complete
10:41:59,558 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
loy/jmx-console.war/
10:41:59,718 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@829662b7 { url=file:/C:/portals/jboss-portal
-2.4.0-CR1/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/portal-wsrp.js
e }
deployer: org.jboss.ws.server.WebServiceDeployerNestedJSE@30a895
status: Deployment FAILED reason: Could not create deployment: file:/C:/portal
s/jboss-portal-2.4.0-CR1/server/default/tmp/deploy/portal-wsrp.war; - nested thr
owable: (org.jboss.ws.metadata.wsdl.WSDLException: WSDLException (at /wsdl:defin
itions/import/wsdl:definitions/import/wsdl:definitions/wsdl:types/schema/schema)
: faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced a
t 'http://www.w3.org/2001/xml.xsd', relative to 'file:/C:/portals/jboss-portal-2
.4.0-CR1/server/default/tmp/deploy/portal-wsrp-exp.war/WEB-INF/wsdl/wsrp_v1_type
s.xsd'.: Cannot access imported wsdl [http://www.w3.org/2001/xml.xsd], www.w3.or
g: java.lang.RuntimeException: Cannot access imported wsdl [http://www.w3.org/20
01/xml.xsd], www.w3.org
at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory$WSDLLocatorImpl.get
ImportInputSource(WSDLDefinitionsFactory.java:310)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:740)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:830)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:620)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:583)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:
302)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:450)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:
294)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:450)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:
294)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2125)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2150)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201)
at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitio
nsFactory.java:144)
at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaD
ata.java:273)
at org.jboss.ws.metadata.JSR109ServerMetaDataBuilder.buildMetaData(JSR10
9ServerMetaDataBuilder.java:111)
at org.jboss.ws.server.WebServiceDeployerJSE.createWebServicesMetaData(W
ebServiceDeployerJSE.java:189)
at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java
:103)
at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJS
E.java:66)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
ptor.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 $Proxy92.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.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 $Proxy94.deploy(Unknown Source)
at org.jboss.ws.server.WebServiceDeployerNestedJSE.create(WebServiceDepl
oyerNestedJSE.java:102)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:368)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.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 $Proxy97.addDeployer(Unknown Source)
at org.jboss.deployment.SubDeployerSupport.startService(SubDeployerSuppo
rt.java:124)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.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(ServiceControl
ler.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 sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.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:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.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(URLDeploymen
tScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
bstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.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(ServiceControl
ler.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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.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:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.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:464)
at java.lang.Thread.run(Thread.java:595)
)
state: FAILED
watch: file:/C:/portals/jboss-portal-2.4.0-CR1/server/default/deploy/jboss-por
tal.sar/portal-wsrp.sar/portal-wsrp.jse
altDD: null
lastDeployed: 1153147301322
lastModified: 1153147292199
mbeans:
10:41:59,809 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
10:41:59,919 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
10:41:59,969 INFO [JkMain] Jk running ID=0 time=0/70 config=null
10:41:59,969 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
s_4_0_4_GA date=200605151000)] Started in 33s:158ms
10:44:30,035 INFO [TomcatDeployer] deploy, ctxPath=/hithere, warUrl=.../tmp/dep
loy/tmp52034hithere-exp.war/
10:44:30,155 INFO [PortletAppDeployment] These instances have been found in -ob
ject.xml, you should put them in the file C:\portals\jboss-portal-2.4.0-CR1\serv
er\default\.\tmp\deploy\tmp52034hithere-exp.war\WEB-INF/portlet-instances.xml
10:44:30,155 INFO [PortletAppDeployment] <?xml version="1.0" encoding="utf-8" s
tandalone="yes"?>
<instance-id>HiThere</instance-id>
<portlet-ref>HiThere</portlet-ref>
10:53:36,711 ERROR [STDERR] Jul 17, 2006 10:53:36 AM com.sun.facelets.compiler.T
agLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/portals/jboss-portal-2.4.0-CR1/server/def
ault/tmp/deploy/tmp51949jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
10:53:36,741 ERROR [STDERR] Jul 17, 2006 10:53:36 AM com.sun.facelets.compiler.T
agLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/portals/jboss-portal-2.4.0-CR1/server/def
ault/tmp/deploy/tmp51949jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
10:53:36,781 ERROR [STDERR] Jul 17, 2006 10:53:36 AM com.sun.facelets.compiler.T
agLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/portals/jboss-portal-2.4.0-CR1/server/def
ault/tmp/deploy/tmp51949jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
10:53:36,821 ERROR [STDERR] Jul 17, 2006 10:53:36 AM com.sun.facelets.compiler.T
agLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/portals/jboss-portal-2.4.0-CR1/server/def
ault/tmp/deploy/tmp51949jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
10:53:36,841 ERROR [STDERR] Jul 17, 2006 10:53:36 AM com.sun.facelets.compiler.T
agLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/portals/jboss-portal-2.4.0-CR1/server/def
ault/tmp/deploy/tmp51949jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958520#3958520
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958520
19 years, 9 months
[JNDI/Naming/Network] - unable to lookup remote mbean when newly added server is sti
by amarsyed
We are facing an issue when trying to remotely connect to an MBeanServer of a node when it is added to a cluster. We try to look up jmx/invoker/RMIAdaptor but get an error stating that "jmx is not bound".
We have one Windows machine running three instances of JBoss4.0.4GA.PATCH1. I start one server up, called default, and once it has finished I start the second called Routing. Both servers know of each other as it shows the following message on Routing.
-------------------------------------------------------------------------------------------------------------
[DefaultPartition] Number of cluster members: 2
[DefaultPartition] Other members: 1
[DefaultPartition] Fetching state (will wait for 30000 milliseconds):
-------------------------------------------------------------------------------------------------------------
On the default server we have an object listening as an implementation of org.jboss.ha.framework.interfaces.HAPartition$HAMembershipListener. As it receives a membershipChanged event we have the following code invoked through a spawned thread. This fails with the exception shown further below. However, once we add a hard coded sleep within this new spawned thread of 2 minutes then it works successfully. It seems as though the remote server, Routing has not finished initialising and registered the RMIAdaptor even though an event has been received at the default server. Can anyone help.
static MBeanServer getRemoteMBeanServer(String node) throws JbossNodeManagerException
| {
| log.debug("->getRemoteMBeanServer( "+node+")");
|
| Properties jndiProperties = new Properties();
| jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
| jndiProperties.put(Context.PROVIDER_URL, "jnp://" + node);
| jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
| // p.put(Context.PROVIDER_URL, "jnp://" + node);
| try{
| InitialContext ctx = new InitialContext(jndiProperties);
| log.debug("looking up with initial context:" + ctx);
| Object obj = ctx.lookup(DEFAULT_JNDI_NAME);
| log.debug("looked up rmi adaptor object: " + obj);
| RMIAdaptor rmiAdaptor = (RMIAdaptor) obj;
| return new MBeanServerAdaptorDelegate(rmiAdaptor);
| }catch(NamingException e){
| throw new JbossNodeManagerException("Unable to lookup remote mbean server for node '"+node+"' using jndi name: " +
| DEFAULT_JNDI_NAME,e);
| }
| }
##############Exception StackTrace##########################################################################################################
xMP Engine: 2006-07-17 15:32:21,793 [com.vicorp.xmp.engine.management.nodemanager.jboss.JbossNodeManager$NewNodeHandlerThread] ERROR - Couldn't add new new node
com.vicorp.xmp.engine.management.nodemanager.jboss.JbossNodeManagerException: Unable to lookup remote mbean server for node '162.13.51.79:1299' using jndi name: jmx/invoker/RMIAdaptor
at com.vicorp.xmp.engine.management.nodemanager.jboss.JbossUtils.getRemoteMBeanServer(JbossUtils.java:110)
at com.vicorp.xmp.engine.management.nodemanager.jboss.JbossUtils.getRemoteNodeName(JbossUtils.java:126)
at com.vicorp.xmp.engine.management.nodemanager.jboss.JbossNodeManager.serverAdded(JbossNodeManager.java:257)
at com.vicorp.xmp.engine.management.nodemanager.jboss.JbossNodeManager$NewNodeHandlerThread.run(JbossNodeManager.java:709)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.naming.NameNotFoundException: jmx not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
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:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.vicorp.xmp.engine.management.nodemanager.jboss.JbossUtils.getRemoteMBeanServer(JbossUtils.java:54)
... 4 more
##############Exception StackTrace##########################################################################################################
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958518#3958518
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958518
19 years, 9 months