[JBoss Seam] - Hundreds of IllegalArgumentException: SessionFactory not fou
by baz
Hello,
i am experience hundreds of exceptions, see below. Nevertheless the component bazDatabase gets initialized sometimes. So the app could access the database. Any ideas what went wrong.
My app works with tomcat5.15
hibernate is set up in the microcontainer (configuration after the exception trace.
I use a version of seam from the CVS.
11:21:03,765 DEBUG org.jboss.seam.Component: instantiating Seam component: bazDatabase
| 11:21:03,765 DEBUG org.jboss.seam.Component: initializing new instance of: bazDatabase
| java.lang.IllegalArgumentException: SessionFactory not found
| at org.jboss.seam.core.ManagedHibernateSession.create(ManagedHibernateSession.java:61)
| at sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:45)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1475)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1452)
| at org.jboss.seam.Component.newInstance(Component.java:1442)
| at org.jboss.seam.Component.getInstance(Component.java:1346)
| at org.jboss.seam.Component.getInstance(Component.java:1320)
| at org.jboss.seam.Component.getInstanceToInject(Component.java:1512)
| at org.jboss.seam.Component.injectFields(Component.java:1099)
| at org.jboss.seam.Component.inject(Component.java:842)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:36)
| at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:125)
| at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:61)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:58)
| at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:125)
| at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:61)
| at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:58)
| at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:125)
| at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:61)
| at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:34)
| at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:125)
| at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:61)
| at org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:80)
| at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:125)
| at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:61)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
| at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:125)
| at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:61)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:40)
| at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:125)
| at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:61)
| at org.jboss.seam.ejb.SeamInterceptor.invokeInContexts(SeamInterceptor.java:134)
| at org.jboss.seam.ejb.SeamInterceptor.invoke(SeamInterceptor.java:116)
| at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:93)
| at org.jboss.seam.interceptors.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:58)
| at org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:46)
| at de.bafz.persistence.dao.PopulationDAO$$EnhancerByCGLIB$$1bb177b2.finalize(<generated>)
| at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
| at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
| at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
| at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
| Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.LocalOnlyContextFactory [Root exception is java.lang.ClassNotFoundException: org/jnp/interfaces/LocalOnlyContextFactory]
| 11:21:03,765 DEBUG org.hibernate.jdbc.ConnectionManager: aggressively releasing JDBC connection
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.init(InitialContext.java:223)
| at javax.naming.InitialContext.<init>(InitialContext.java:197)
| at org.jboss.seam.util.Naming.getInitialContext(Naming.java:35)
| at org.jboss.seam.util.Naming.getInitialContext(Naming.java:47)
| at org.jboss.seam.core.ManagedHibernateSession.getSessionFactory(ManagedHibernateSession.java:97)
| at org.jboss.seam.core.ManagedHibernateSession.create(ManagedHibernateSession.java:57)
| ... 72 more
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: After render response, destroying contexts
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: destroying event context
| Caused by: java.lang.ClassNotFoundException: org/jnp/interfaces/LocalOnlyContextFactory
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:242)
| at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: destroying conversation context
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
| ... 79 more
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: destroying event context
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: destroying conversation context
| 11:21:03,765 DEBUG org.jboss.seam.core.ManagedHibernateSession: destroying seam managed session for session factory: java:/bazDatabase
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: flushing server-side conversation context
| 11:21:03,765 DEBUG org.jboss.seam.core.ManagedHibernateSession: destroying seam managed session for session factory: java:/bazDatabase
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: <<< End web request
| java.lang.NullPointerException
| 11:21:03,765 DEBUG org.jboss.seam.jsf.AbstractSeamPhaseListener: No active conversation context
| at org.jboss.seam.core.ManagedHibernateSession.destroy(ManagedHibernateSession.java:91)
| 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.seam.util.Reflections.invoke(Reflections.java:16)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:45)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1472)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1460)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
| at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:311)
| at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:72)
| at org.jboss.seam.ejb.SeamInterceptor.invoke(SeamInterceptor.java:120)
| at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:93)
| at org.jboss.seam.interceptors.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:58)
| at org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:46)
| at de.bafz.persistence.dao.PopulationDAO$$EnhancerByCGLIB$$1bb177b2.finalize(<generated>)
| at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
| at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
| at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
| at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: flushing server-side conversation context
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: <<< End call
| 11:21:03,765 DEBUG org.jboss.seam.contexts.Lifecycle: >>> Begin call
| 11:21:03,765 DEBUG org.jboss.seam.Component: instantiating Seam component: org.jboss.seam.core.manager
| 11:21:03,781 DEBUG org.jboss.seam.Component: initializing new instance of: org.jboss.seam.core.manager
| 11:21:03,781 DEBUG org.jboss.seam.Component: instantiating Seam component: bazDatabase
| 11:21:03,781 DEBUG org.jboss.seam.Component: initializing new instance of: bazDatabase
| java.lang.IllegalArgumentException: SessionFactory not found
|
| jboss-beans.xml:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
| xmlns="urn:jboss:bean-deployer">
|
| <bean name="Naming" class="org.jnp.server.SingletonNamingServer"/>
|
| <bean name="TransactionManagerFactory" class="org.jboss.seam.microcontainer.TransactionManagerFactory"/>
| <bean name="TransactionManager" class="java.lang.Object">
| <constructor factoryMethod="getTransactionManager">
| <factory bean="TransactionManagerFactory"/>
| </constructor>
| </bean>
|
| <bean name="bazDatasourceFactory" class="org.jboss.seam.microcontainer.DataSourceFactory">
| <property name="driverClass">com.mysql.jdbc.Driver</property>
| <property name="connectionUrl">jdbc:mysql://localhost:3306/bazseam</property>
| <property name="userName">root</property>
| <property name="jndiName">java:/hibernateDatasource</property>
| <property name="minSize">0</property>
| <property name="maxSize">10</property>
| <property name="blockingTimeout">1000</property>
| <property name="idleTimeout">100000</property>
| <property name="transactionManager"><inject bean="TransactionManager"/></property>
| </bean>
| <bean name="bazDatasource" class="java.lang.Object">
| <constructor factoryMethod="getDataSource">
| <factory bean="bazDatasourceFactory"/>
| </constructor>
| </bean>
|
| <bean name="bazDatabaseFactory" class="org.jboss.seam.microcontainer.HibernateFactory"/>
| <bean name="bazDatabase" class="java.lang.Object">
| <constructor factoryMethod="getSessionFactory">
| <factory bean="bazDatabaseFactory"/>
| </constructor>
| <depends>bazDatasource</depends>
| </bean>
|
| </deployment>
<components>
| <component name="org.jboss.seam.core.init">
| <property name="myFacesLifecycleBug">false</property>
| <property name="debug">true</property>
| </component>
|
| <!-- 120 second conversation timeout -->
| <component name="org.jboss.seam.core.manager">
| <property name="conversationTimeout">120000</property>
| </component>
|
|
| <!-- Bootstrap Hibernate -->
| <component name="bazDatabase" class="org.jboss.seam.core.ManagedHibernateSession" />
| <component class="org.jboss.seam.core.Hibernate" />
| <component class="org.jboss.seam.core.Microcontainer" installed="true" />
|
| <!-- Setup application components -->
| <component name="bazProject" class="org.jboss.seam.core.ManagedHibernateEntity">
| <property name="entityClass">de.bafz.lims.model.Project</property>
| <property name="session">#{bazDatabase}</property>
| <property name="id">#{bazProjectID}</property>
| <property name="idClass">java.lang.String</property>
| </component>
| <component name="bazExperiment" class="org.jboss.seam.core.ManagedHibernateEntity">
| <property name="entityClass">de.bafz.lims.model.Experiment</property>
| <property name="session">#{bazDatabase}</property>
| <property name="id">#{bazExperimentID}</property>
| <property name="idClass">java.lang.Long</property>
| </component>
|
| </components>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964299#3964299
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964299
19 years, 9 months
[JBoss Seam] - Is there the limit of length for value binding?
by smajima
I use JBoss/Seam 1.0.0CR3.
When I wrote a long EL name for accessing JavaBean's property.
| javax.faces.FacesException: Value binding '#{chgWhereaboutsAction.groupSelectItems}'of UISelectItems
| with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /chgWhereabouts.jsp]
| [Class: javax.faces.component.html.HtmlForm,Id: _id0][Class: javax.faces.component.html.HtmlSelectOneMenu,Id:
| groupId][Class: javax.faces.component.UISelectItems,Id: _id218]} does not reference an Object of type SelectItem,
| SelectItem[], Collection or Map but of type : null
|
There was the error above. I changed JavaBean's @Name to chgWhereaboutsBB. It's a little bit shorter than before(chgWhereaboutsAction)
And I run again and no error ocured.
What happened ? Is there the limit of length for specifying componemt property ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964297#3964297
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964297
19 years, 9 months
[Persistence, JBoss/CMP, Hibernate, Database] - hypersonic (default.script)
by mlissolo
Hello, I have had a problem during a restart of the AS while JBOSS was trying to execute the commands in the default.script file.
The error was:
2006-08-09 18:52:03,571 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Starting
2006-08-09 18:52:03,583 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.p
lugins.JaasSecurityManager@152bdc7
2006-08-09 18:52:03,583 INFO [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCa
chePolicy@1296d1d
2006-08-09 18:52:03,583 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Added HsqlDbRealm, org.jboss.security.pl
ugins.SecurityDomainContext@baa31b to map
2006-08-09 18:52:03,590 INFO [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.DefaultDS] Bound connection
factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=DefaultDS to JNDI name 'java:/DefaultDS'
2006-08-09 18:52:03,590 INFO [org.jboss.resource.connectionmanager.TxConnectionManager] Started
2006-08-09 18:52:03,590 INFO [org.jboss.mq.pm.jdbc2.PersistenceManager] Starting
2006-08-09 18:52:07,147 INFO [STDOUT] Server.run/init: java.sql.SQLException: Unexpected token: Unexpected token: SET in stat
ement [SET AUTOCOMMIT /*C3*/SET AUTOCOMMIT FALSE]
2006-08-09 18:52:07,147 ERROR [STDERR] java.sql.SQLException: Unexpected token: Unexpected token: SET in statement [SET AUTOCO
MMIT /*C3*/SET AUTOCOMMIT FALSE]
2006-08-09 18:52:07,147 ERROR [STDERR] at org.hsqldb.Trace.getError(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.hsqldb.Log.runScript(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.hsqldb.Log.open(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.hsqldb.Database$Logger.openLog(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.hsqldb.Database.open(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.hsqldb.Database.(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.hsqldb.Server.openDB(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.hsqldb.Server.run(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.hsqldb.Server.main(Unknown Source)
2006-08-09 18:52:07,148 ERROR [STDERR] at org.jboss.jdbc.HypersonicDatabase$2.run(HypersonicDatabase.java:250)
2006-08-09 18:52:09,684 ERROR [org.jboss.mq.pm.jdbc2.PersistenceManager] Starting failed
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions. Message recovery may not be accurate; - nested throw
able: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Connection
is broken: Connection refused); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; -
nested throwable: (java.sql.SQLException: Connection is broken: Connection refused)))
at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:276)
at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1299)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
at $Proxy11.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:392)
at org.jboss.system.ServiceController.start(ServiceController.java:408)
at org.jboss.system.ServiceController.start(ServiceController.java:408)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:392)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:388)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Connect
ion is broken: Connection refused); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connectio
n; - nested throwable: (java.sql.SQLException: Connection is broken: Connection refused))
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:106)
at org.jboss.mq.pm.jdbc2.PersistenceManager.getConnection(PersistenceManager.java:1206)
at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:219)
I have detected the error and I have corrected it on the file default.script, but I cannot find any information why it could happen (it seems that when I shutdown the JBOSS process, the transactions written in the default.script file were not committed)
Can someone help me to find informations about the dialogue between hypersonic and JBOSS (when that files are written) ?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964295#3964295
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964295
19 years, 9 months
[Security & JAAS/JBoss] - JAAS multi-threaded=true causing SecurityException principal
by sdegenaar
We have setup a seperate tomcat installation (tried with both 5.5.9 and the latest 5.5.17) talking to jboss 4.0.2 (also tried 4.0.4). We are using JAAS authentication with a custom login module authenticating against Active Directory. We are chaining authentication using the org.jboss.security.ClientLoginModule required attribute in the tomcat login.conf. We also have the attributes set for password-stacking = "useFirstPass"; This all works perfect if we use multi-threaded=false. Pretty much single user access. If we set this to true we have very intermident results. Sometimes it works fine, then you will get SecurityExcpetion: Insufficient method permissions, principal=null. Refresh a few times and it seems to find the principal again. I have seemed to reproduce it failing everytime by calling a secured session bean method from a jsp page multiple times and doing a refresh halfway through. This will always cause it to get the Security exception. Hit the refresh a few more times and it seems to find it again. Very strange behaviour. This is possibly happening in our production system as we are using struts. Possibly it is failing a similar way in that it is calling an action and then redirecting...... I have tried many things but am lost for ideas. Has anyone seen anything like this or have any ideas...
Much appreciated,
cheers!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964294#3964294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964294
19 years, 9 months
[JNDI/Naming/Network] - No ejb-link in web.xml and jndi-name in jboss-web.xml
by vitalstrike82
hi guys, i have a qns hope some of you will reply me.
I have just deploy an ear file in jboss4.0.3 and it give these errors.
Caused by: javax.naming.NamingException: ejb-ref: ejb/MyMusicCart, No ejb-link in web.xml and jndi-name in jboss-web.xml.
I have check the web.xml and i do have state the ejb-ref-name of the specific bean. However i do not have the jboss-web.xml file cos i read that jboss will auto configure the jndi.
Can anyone of you help me please? i can put up more codes if u guys request to.
partial codes for web.xml
<ejb-ref>
| <ejb-ref-name>ejb/EJBMusic</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <home>asg.MusicEJB.MusicIteratorHome</home>
| <remote>asg.MusicEJB.MusicIterator</remote>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>ejb/MyMusicCart</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <home>asg.MusicCartEJB.MusicCartHome</home>
| <remote>asg.MusicCartEJB.MusicCart</remote>
| </ejb-ref>
| </web-app>
codes for ejb-jar for MusicCart
display-name>MusicCartBean</display-name>
| <ejb-name>MusicCartBean</ejb-name>
| <home>asg.MusicCartEJB.MusicCartHome</home>
| <remote>asg.MusicCartEJB.MusicCart</remote>
| <ejb-class>asg.MusicCartEJB.MusicCartBean</ejb-class>
| <session-type>Stateful</session-type>
| <transaction-type>Bean</transaction-type>
| <security-identity>
| <description></description>
| <use-caller-identity></use-caller-identity>
| </security-identity>
| </session>
| </enterprise-beans>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964292#3964292
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964292
19 years, 9 months