portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott T Weaver (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-831) SerializationException: ClassNotFoundException: JdbcConnectionDescriptor when deploying Jetspeed 2.1 on Weblogic
Date Wed, 12 Dec 2007 21:37:43 GMT

    [ https://issues.apache.org/jira/browse/JS2-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551118
] 

Scott T Weaver commented on JS2-831:
------------------------------------

For WLS 9.2 I had to copy to db-ojb-1.0.3.jar  to the APP-INF/lib of my ear along with any
other jars that ojb depends on.  Try that and see if that fixes your issue.

> SerializationException: ClassNotFoundException: JdbcConnectionDescriptor when deploying
Jetspeed 2.1 on Weblogic
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: JS2-831
>                 URL: https://issues.apache.org/jira/browse/JS2-831
>             Project: Jetspeed 2
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Jetspeed 2.1, weblogic 10, MySql
>            Reporter: Mahesh Mohan
>            Priority: Blocker
>
> HI, 
> we have developed an application using Jetspeed portal. I am trying to deploy the portal
on Weblogic 10. The portal works perfectly fine on tomcat, but when I try deploying it on
Weblogic I am getting a strange ClassNotFoundException for JdbcConnectionDescriptor. The class
is a part of db-ojb-1.0.3.jar which is already present in the WEB-INF/lib driectory. I have
put the complete stack trace below. Can anyone please provide some insight on what the issue
might be.
> Thanks,
> Mahesh
> 2007-12-12 05:51:28,358 INFO    JetspeedEngine - Starting Jetspeed Engine (org.apache.jetspeed.engine.JetspeedEngine)
at 12/12/07 05:51
> 2007-12-12 05:51:30,698 ERROR   JetspeedEngine - org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'PlatformConfigurator' defined in ServletContext resource [/WEB-INF/assembly/boot/datasource.xml]:
Invocation of init method failed; nested exception is org.apache.commons.lang.SerializationException:
java.lang.ClassNotFoundException: org.apache.ojb.broker.metadata.JdbcConnectionDescriptor
> 2007-12-12 05:51:30,698 INFO    JetspeedEngine - Finished starting Jetspeed Engine (org.apache.jetspeed.engine.JetspeedEngine)
at 12/12/07 05:51.  Elapsed time: 2 seconds.
> 2007-12-12 05:51:30,698 FATAL   JetspeedServlet - Jetspeed: init() failed: 
> org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception!
> 	at org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:131)
> 	at org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:157)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown
Source)
> 	at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
> 	at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
> 	at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
> 	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
> 	at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1830)
> 	at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1807)
> 	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1727)
> 	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2890)
> 	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:948)
> 	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
> 	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
> 	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
> 	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
> 	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
> 	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
> 	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
> 	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
> 	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
> 	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
> 	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
> 	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
> 	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'PlatformConfigurator' defined in ServletContext resource [/WEB-INF/assembly/boot/datasource.xml]:
Invocation of init method failed; nested exception is org.apache.commons.lang.SerializationException:
java.lang.ClassNotFoundException: org.apache.ojb.broker.metadata.JdbcConnectionDescriptor
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1032)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
> 	at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
> 	at org.apache.jetspeed.components.SpringComponentManager.start(SpringComponentManager.java:237)
> 	at org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:114)
> 	at org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:157)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown
Source)
> 	at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
> 	at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
> 	at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
> 	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
> 	at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1830)
> 	at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1807)
> 	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1727)
> 	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2890)
> Caused by: org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException:
org.apache.ojb.broker.metadata.JdbcConnectionDescriptor
> 	at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:164)
> 	at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:191)
> 	at org.apache.commons.lang.SerializationUtils.clone(SerializationUtils.java:79)
> 	at org.apache.ojb.broker.metadata.ConnectionRepository.getAllDescriptor(ConnectionRepository.java:254)
> 	at org.apache.ojb.broker.metadata.MetadataManager.buildDefaultKey(MetadataManager.java:575)
> 	at org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:162)
> 	at org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:139)
> 	at org.apache.ojb.broker.metadata.MetadataManager.getInstance(MetadataManager.java:173)
> 	at org.apache.jetspeed.components.rdbms.ojb.DatabasePlatformConfigurator.init(DatabasePlatformConfigurator.java:59)
> 	at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
> 	at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1104)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1066)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
> 	at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
> 	at org.apache.jetspeed.components.SpringComponentManager.start(SpringComponentManager.java:237)
> 	at org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:114)
> 	at org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:157)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown
Source)
> 	at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
> Caused by: java.lang.ClassNotFoundException: org.apache.ojb.broker.metadata.JdbcConnectionDescriptor
> 	at java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lang.Class;(Unknown
Source)
> 	at java.io.ObjectInputStream.resolveClass(Ljava.io.ObjectStreamClass;)Ljava.lang.Class;(Unknown
Source)
> 	at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown
Source)
> 	at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
> 	at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
> 	at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
> 	at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
> 	at java.util.ArrayList.readObject(ArrayList.java:591)
> 	at java.lang.LangAccessImpl.readObject(Ljava.lang.Class;Ljava.lang.Object;Ljava.io.ObjectInputStream;)V(Unknown
Source)
> 	at java.io.ObjectStreamClass.invokeReadObject(Ljava.lang.Object;Ljava.io.ObjectInputStream;)V(Unknown
Source)
> 	at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown
Source)
> 	at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
> 	at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
> 	at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
> 	at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:161)
> 	at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:191)
> 	at org.apache.commons.lang.SerializationUtils.clone(SerializationUtils.java:79)
> 	at org.apache.ojb.broker.metadata.ConnectionRepository.getAllDescriptor(ConnectionRepository.java:254)
> 	at org.apache.ojb.broker.metadata.MetadataManager.buildDefaultKey(MetadataManager.java:575)
> 	at org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:162)
> 	at org.apache.ojb.broker.metadata.MetadataManager.(MetadataManager.java:139)
> 	at org.apache.ojb.broker.metadata.MetadataManager.getInstance(MetadataManager.java:173)
> 	at org.apache.jetspeed.components.rdbms.ojb.DatabasePlatformConfigurator.init(DatabasePlatformConfigurator.java:59)
> 	at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
> 	at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1104)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1066)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message