[JBoss Cache: Core Edition] - Error occurs during start of JBoss Server because of the JT
by aliaslan
Hi,
I am new to JBoss and have a problem with the configuration of JTA.
In my components.xml I have the following information:
<core:init debug="true" jndi-pattern="@jndiPattern@" transaction-management-enabled="true" user-transaction-name="jta/UserTransaction"/>
But the following error occurs starting the server:
java.lang.RuntimeException: Could not create Component: org.jboss.seam.core.init
at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1178)
at org.jboss.seam.init.Initialization.init(Initialization.java:696)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.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:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
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.doInstallParentFirst(DeployersImpl.java:1210)
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:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
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:698)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: no such field: org.jboss.seam.core.Init.userTransactionName
at org.jboss.seam.util.Reflections.getField(Reflections.java:316)
at org.jboss.seam.Component.initInitializers(Component.java:490)
at org.jboss.seam.Component.(Component.java:255)
at org.jboss.seam.Component.(Component.java:206)
at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1162)
... 61 more
Can anyone help me?
Thanks
Ali
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221698#4221698
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221698
15 years, 6 months
[Clustering/JBoss] - Re: login problems on cluster
by sureshrk19
Hmmm... something strange
Cookie: JSESSIONID=Z-6e9dtO7J4l3N0HREZOpA**.node2
"node2" is weird; I have node1 and node4 setup in workers.properties and the same for jvmRoute.
Following is the http header data (on first login submit)... and the second request is fine (i.e., if I refresh the page and login then, I could login with-out any issues)
-------------------------------------------------------
http://localhost/snap/student/j_security_check
POST /snap/student/j_security_check HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost/snap/student/snapdashboard.htm
Cookie: JSESSIONID=Z-6e9dtO7J4l3N0HREZOpA**.node2
Content-Type: application/x-www-form-urlencoded
Content-Length: 117
j_dummy_username=suresh%40regent.com&j_username=suresh%40regent.com%7C%7CSTUDENT&j_password=regent&j_usertype=STUDENT
HTTP/1.x 400 Invalid direct reference to form login page
Date: Fri, 27 Mar 2009 20:20:05 GMT
Server: Apache/2.2.11 (Win32) mod_jk/1.2.27
Content-Length: 1094
Connection: close
Content-Type: text/html;charset=utf-8
----------------------------------------------------------
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221692#4221692
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221692
15 years, 6 months
[Beginners Corner] - NameNotFoundException 'employeePerks' not bound
by jnl1
hi all...
i'm porting an application that works fine in Tomcat 6.6 to JBoss 4.2.3.GA. Using jdk 1.6.
Here's my context.xml:
|
| <Context path="/employeePerks"
| debug="0"
| reloadable="true">
|
| <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
| connectionURL="xxx"
| alternateURL="xxx"
| roleBase="xxx"
| roleSubtree="false"
| roleName="xxx"
| roleSearch="uniqueMember={0}"
| userBase="xxx"
| userSubtree="true"
| userSearch="uid={0}" />
|
| <Resource
| name="jdbc/employeePerks"
| auth="Container"
| type="javax.sql.DataSource"
| maxActive="100"
| maxIdle="30"
| maxWait="10000"
| username="xxxx"
| password="xxxx"
| defaultAutoCommit="false"
| removeAbandoned="true"
| removeAbandonedTimeout="60"
| logAbandoned="true"
| validationQuery="xxxx"
| driverClassName="xxxx"
| url="xxxx"/>
|
|
| </Context>
|
|
My web.xml:
|
| <resource-ref>
| <description>DB Connection</description>
| <res-ref-name>jdbc/employeePerks</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
|
|
My datasource fiile:
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>employeePerks</jndi-name>
| <connection-url>xxxx</connection-url>
| <driver-class>xxxx</driver-class>
| <user-name>xxxx</user-name>
| <password>xxxx</password>
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
| </local-tx-datasource>
|
| </datasources>
|
|
|
My jboss-web.xml:
|
| <?xml version="1.0" encoding="UTF-8" ?>
|
| <jboss-web>
| <security-domain>/employeePerks</security-domain>
| <resource-ref>
| <res-ref-name>jdbc/employeePerks</res-ref-name>
| <jndi-name>java:/employeePerks</jndi-name>
| </resource-ref>
|
| </jboss-web>
|
|
The application deploys fine, but when trying to login, I get this error:
|
| 13:57:44,619 ERROR [JBossSecurityMgrRealm] Error during authenticate
| javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: employeePerks not bound]
| at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1215)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:758)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:488)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
| 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:619)
| Caused by: javax.naming.NameNotFoundException: employeePerks 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:296)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:392)
| at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1209)
| ... 15 more
| 13:57:49,493 INFO [Server] Runtime shutdown hook called, forceHalt: true
|
can anyone help out? thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221689#4221689
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221689
15 years, 6 months