|
From: Carlos S. <zga...@gm...> - 2005-01-15 03:36:11
|
I followed the instructions on how to set up coefficient in JBOSS, but
I am still not able to get it going...
This is what I did.
1. Downloaded jboss-3.2.6RC1 and installed it. I ran it by itself and
connect to it via port 8080 just fine. Set up a db in phpMyadmin and
called coef with a user of jboss and pw of password.
2. Download coefficient jboss deploy. Removed the hibernate.jar from
both dirs mentioned in the install file. created a datasource called:
mysql-ds.xml which contained:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>CoefficientDS</jndi-name>
<connection-url>jdbc:mysql:///coef</connection-url>
<driver-class>org.gjt.mm.mysql.Driver</driver-class>
<user-name>jboss</user-name>
<password>password</password>
</local-tx-datasource>
</datasources>
3. Copied the files: mysql-connector-java-3.0.15-ga-bin.jar and
mysql-connector-java.jar to jboss-3.2.6RC1/server/default/lib and
jboss-3.2.6RC1/lib
4. Edited the hibernate.properties file with:
hibernate.connection.datasource java:/CoefficientDS
hibernate.connection.username jboss
hibernate.connection.password password
#hibernate.show_sql true
hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
#hibernate.dialect net.sf.hibernate.dialect.PostgreSQLDialect
#hibernate.dialect net.sf.hibernate.dialect.Oracle9Dialect
#hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
hibernate.session_factory_name net.sf.hibernate.SessionFactory
hibernate.transaction.factory_class
net.sf.hibernate.transaction.JTATransactionFactory
hibernate.connection.pool_size 0
5. Ran the .sh updater and copied the updated .ear file into the
default/deploy folder along with the other .ear files from the modules
folder.
6. Ran jboss, a lot files seemed to have been worked on as I saw jboss
load in the console...
7. Went into my.server:8080 and after 5-10 seconds I see the header
and footer of coefficient but in the body of the page I see a bunch of
red java code which I will paste at the end and the console I see
this:
22:31:50,745 ERROR [ExceptionInterceptor] at:
ExceptionInterceptor.java:50 | operation: unhandled system e
xception | exception type:
org.jboss.tm.JBossTransactionRolledbackException | exception message:
null; Cau
sedByException is:
null; nested exception is:
java.lang.NullPointerException; - nested throwable:
(java.lang.NullPointerException)
Any ideas will be much appreciated!
There has been a system exception
org.jboss.tm.JBossTransactionRolledbackException: null; CausedByException is:
null; nested exception is:
java.lang.NullPointerException; - nested throwable:
(java.lang.NullPointerException)
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:262)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:723)
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.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy235.invokeOpOnModule(Unknown Source)
at za.org.coefficient.interceptors.ConfigurationInterceptor.handleInvoke(ConfigurationInterceptor.java:45)
at za.org.coefficient.core.CoefficientInterceptor.invoke(CoefficientInterceptor.java:79)
at za.org.coefficient.core.CoefficientInterceptor.invoke_aroundBody0(CoefficientInterceptor.java:90)
at za.org.coefficient.core.CoefficientInterceptor$AjcClosure1.run(CoefficientInterceptor.java)
at za.org.coefficient.aspects.logging.CoefficientLoggingAspect.ajc$around$za_org_coefficient_aspects_logging_CoefficientLoggingAspect$ecbproceed(CoefficientLoggingAspect.java)
at za.org.coefficient.aspects.logging.CoefficientLoggingAspect.ajc$around$za_org_coefficient_aspects_logging_CoefficientLoggingAspect$ecb(CoefficientLoggingAspect.java:111)
at za.org.coefficient.core.CoefficientInterceptor.invoke(CoefficientInterceptor.java:90)
at za.org.coefficient.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:54)
at za.org.coefficient.servlet.CoefficientServlet.invoke_aroundBody0(CoefficientServlet.java:152)
at za.org.coefficient.servlet.CoefficientServlet$AjcClosure1.run(CoefficientServlet.java)
at za.org.coefficient.aspects.logging.CoefficientLoggingAspect.ajc$around$za_org_coefficient_aspects_logging_CoefficientLoggingAspect$ecbproceed(CoefficientLoggingAspect.java)
at za.org.coefficient.aspects.logging.CoefficientLoggingAspect.ajc$around$za_org_coefficient_aspects_logging_CoefficientLoggingAspect$ecb(CoefficientLoggingAspect.java:111)
at za.org.coefficient.servlet.CoefficientServlet.execute(CoefficientServlet.java:152)
at za.org.coefficient.servlet.CoefficientServlet.doGet(CoefficientServlet.java:118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:418)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at za.org.coefficient.modules.configuration.Configuration.canExecuteForRole(Configuration.java:68)
at za.org.coefficient.modules.configuration.beans.ConfigurationBean.canExecuteForRole(ConfigurationBean.java:64)
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.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:723)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:364)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy230.canExecuteForRole(Unknown Source)
at za.org.coefficient.invokers.base.BaseInvoker.invokeOpOnModule(BaseInvoker.java:177)
at za.org.coefficient.invokers.ejb.beans.EjbInvokerBean.invokeOpOnModule(EjbInvokerBean.java:82)
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.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
... 63 more
|