I am Using version 1.4.3.2 , Tomcat 5.5.25 and the jre from dk1.5.0_12 I get the following exception when I try to create a new account.
I am sure I am missing something but I have no idea what it might be
thanks in advance for any help
Julian
2007-10-12 13:31:30,891 [Thread-1] INFO org.apache.catalina.realm.JAASRealm - S
etting useContextClassLoader = false
2007-10-12 13:31:35,516 [Thread-1] INFO org.apache.coyote.http11.Http11AprProto
col - Starting Coyote HTTP/1.1 on http-8080
2007-10-12 13:31:35,563 [Thread-1] INFO org.apache.coyote.ajp.AjpAprProtocol -
Starting Coyote AJP/1.3 on ajp-8009
2007-10-12 13:31:35,578 [Thread-1] INFO org.apache.catalina.storeconfig.StoreLo
ader - Find registry server-registry.xml at classpath resource
2007-10-12 13:31:35,625 [Thread-1] INFO org.apache.catalina.startup.Catalina -
Server startup in 4969 ms
2007-10-12 13:32:00,736 [http-8080-1] ERROR com.fddtool.ui.faces.bean.Refreshabl
eManagedBean - javax.naming.NamingException: Cannot create resource instance
com.fddtool.exception.TransactionException: javax.naming.NamingException: Cannot
create resource instance
at com.fddtool.util.J2EETransaction.<init>(J2EETransaction.java:73)
at com.fddtool.ui.view.login.NewAccountBean.createAccountAction(NewAccou
ntBean.java:42)
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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java
:132)
at org.apache.myfaces.application.ActionListenerImpl.processAction(Actio
nListenerImpl.java:61)
at javax.faces.component.UICommand.broadcast(UICommand.java:109)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:9
7)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1
71)
at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(Invoke
ApplicationExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl
.java:95)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extensions
Filter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at com.planetj.servlet.filter.compression.CompressingFilter.doFilter(Com
pressingFilter.java:222)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:151)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso
r.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr
ocess(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:12
86)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.NamingException: Cannot create resource instance
at org.apache.naming.factory.TransactionFactory.getObjectInstance(Transa
ctionFactory.java:113)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
04)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.fddtool.util.J2EETransaction.<init>(J2EETransaction.java:68)
... 33 more
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am Using version 1.4.3.2 , Tomcat 5.5.25 and the jre from dk1.5.0_12 I get the following exception when I try to create a new account.
I am sure I am missing something but I have no idea what it might be
thanks in advance for any help
Julian
2007-10-12 13:31:30,891 [Thread-1] INFO org.apache.catalina.realm.JAASRealm - S
etting useContextClassLoader = false
2007-10-12 13:31:35,516 [Thread-1] INFO org.apache.coyote.http11.Http11AprProto
col - Starting Coyote HTTP/1.1 on http-8080
2007-10-12 13:31:35,563 [Thread-1] INFO org.apache.coyote.ajp.AjpAprProtocol -
Starting Coyote AJP/1.3 on ajp-8009
2007-10-12 13:31:35,578 [Thread-1] INFO org.apache.catalina.storeconfig.StoreLo
ader - Find registry server-registry.xml at classpath resource
2007-10-12 13:31:35,625 [Thread-1] INFO org.apache.catalina.startup.Catalina -
Server startup in 4969 ms
2007-10-12 13:32:00,736 [http-8080-1] ERROR com.fddtool.ui.faces.bean.Refreshabl
eManagedBean - javax.naming.NamingException: Cannot create resource instance
com.fddtool.exception.TransactionException: javax.naming.NamingException: Cannot
create resource instance
at com.fddtool.util.J2EETransaction.<init>(J2EETransaction.java:73)
at com.fddtool.ui.view.login.NewAccountBean.createAccountAction(NewAccou
ntBean.java:42)
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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java
:132)
at org.apache.myfaces.application.ActionListenerImpl.processAction(Actio
nListenerImpl.java:61)
at javax.faces.component.UICommand.broadcast(UICommand.java:109)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:9
7)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1
71)
at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(Invoke
ApplicationExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl
.java:95)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extensions
Filter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at com.planetj.servlet.filter.compression.CompressingFilter.doFilter(Com
pressingFilter.java:222)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:151)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso
r.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr
ocess(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:12
86)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.NamingException: Cannot create resource instance
at org.apache.naming.factory.TransactionFactory.getObjectInstance(Transa
ctionFactory.java:113)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
04)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.fddtool.util.J2EETransaction.<init>(J2EETransaction.java:68)
... 33 more
There must be someone with an idea how to fix this we have see it before.
any hints .... Please
Julina
Make sure you have have configured server.xml file for the Tomcat server. Namely, verify that the transactions are configured like this:
<Transaction name="UserTransaction" auth="Container"
type="javax.transaction.UserTransaction"
factory="org.objectweb.jotm.UserTransactionFactory"
jotm.timeout="60"/>
For more information please read the FDDPMA_Installation_Guide.doc, section "Tomcat Configuration".
Serguei,
Many thanks, you information plus compiling against my version of tomcat fixed my problems
Julian