Re: Null pointer exception when deploying Apache Jackrabbit JCA resource adapter
Hi Gary, The geronimo-ra plan does not contain a link to WorkManager and hence an exception is thrown. I was able to deploy the RA by adding a WorkManager ger:resourceadapter ger:resourceadapter-instance ger:resourceadapter-nameJACKRABBITRA/ger:resourceadapter-name ger:workmanager ger:gbean-linkDefaultWorkManager/ger:gbean-link /ger:workmanager /ger:resourceadapter-instance ger:outbound-resourceadapter ... Regards Krish On 11/15/06, Gary [EMAIL PROTECTED] wrote: I'm trying to deploy the Apache Jackrabbit JCA resource adapter that is available at the jackrabbit site: http://jackrabbit.apache.org/downloads.cgi . I get a null pointer exception when I deploy the rar. Is there something wrong with my deployment plan ? Output from the console, ra.xml and deployment plan below. java.lang.NullPointerException org.apache.geronimo.common.DeploymentException: java.lang.NullPointerException at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:383) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124) at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:852) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:106) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException at org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.addConnectorGBeans(ConnectorModuleBuilder.java:408) at org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.initContext(ConnectorModuleBuilder.java:383) at org.apache.geronimo.connector.deployment.ConnectorModuleBuilder$$FastClassByCGLIB$$a535b6aa.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$58fec5b0.initContext(generated) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:500) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$bd93291f.buildConfiguration(generated) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302) ... 10 more connector xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd; version=1.5 display-nameJackrabbit JCR Adapter/display-name vendor-nameApache.org/vendor-name eis-typeJCR Adapter/eis-type resourceadapter-version1.0/resourceadapter-version resourceadapter resourceadapter-classorg.apache.jackrabbit.jca.JCAResourceAdapter/resourceadapter-class outbound-resourceadapter connection-definition managedconnectionfactory-classorg.apache.jackrabbit.jca.JCAManagedConnectionFactory/managedconnectionfactory-class config-property config-property-nameHomeDir/config-property-name config-property-typejava.lang.String/config-property-type /config-property
Custom Login Modules and Spring
Hi all, I am workign in geronimo 1.0. Because of the known problem with Logim Modules not available in the War, I created a dummy ejb project and put my login modules in there. My login module internally uses Spring to talk to the delegate. Now the login modules are identified, but at the poitn where I try to cast the class returned by the getBean method of ClassPathXmlApplicationContext, I get a BeanNotofrequiredTypeException like this: com.test.testdelegate is not of type [com.test.testdelegate] This delegate class is within another jar file which is added as part of the manifest classpath of the EJB project. I am able to do the same thing from within say an action class,but from login module I get this exception. Your input will be appreciated. Thanks, Priya Sponsored Link Rates near historic lows - $200,000 mortgage for $660/ month - http://yahoo.ratemarketplace.com
Re: Custom Login Modules and Spring
Probably there are two classes with the same name loaded from different class loaders -- can you print Foo.class.getClassLoader() and then the instance of foo.getClass().getClassLoader() and see what you get for the two? Thanks, Aaron On 11/15/06, sreepriya ramakrishnan [EMAIL PROTECTED] wrote: Hi all, I am workign in geronimo 1.0. Because of the known problem with Logim Modules not available in the War, I created a dummy ejb project and put my login modules in there. My login module internally uses Spring to talk to the delegate. Now the login modules are identified, but at the poitn where I try to cast the class returned by the getBean method of ClassPathXmlApplicationContext, I get a BeanNotofrequiredTypeException like this: com.test.testdelegate is not of type [com.test.testdelegate] This delegate class is within another jar file which is added as part of the manifest classpath of the EJB project. I am able to do the same thing from within say an action class,but from login module I get this exception. Your input will be appreciated. Thanks, Priya Sponsored Link Rates near historic lows - $200,000 mortgage for $660/ month - http://yahoo.ratemarketplace.com
Weekly: Geronimo 1.2-r475585
Geronimo 1.2-r475585 - Nov 1, 2006 http://people.apache.org/dist/geronimo/unstable/1.2-r475585/ geronimo-1.2-r475585-src.tar.gz geronimo-1.2-r475585-src.zip geronimo-framework-1.2-r475585.tar.gz geronimo-framework-1.2-r475585.zip geronimo-jetty-j2ee-1.2-r475585.tar.gz geronimo-jetty-j2ee-1.2-r475585.zip geronimo-jetty-minimal-1.2-r475585.tar.gz geronimo-jetty-minimal-1.2-r475585.zip geronimo-tomcat-j2ee-1.2-r475585.tar.gz geronimo-tomcat-j2ee-1.2-r475585.zip geronimo-tomcat-minimal-1.2-r475585.tar.gz geronimo-tomcat-minimal-1.2-r475585.zip Changelog: http://people.apache.org/dist/geronimo/unstable/1.2-r475585/CHANGELOG.txt NOTE: This build is not an official release, nor tested, and should be considered unstable.