• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Attn.Kyle Problem with WSAD5.0

 
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Folks,
I had deployed my application in WSAD 5.0 Integrated Edition,iam getting the
following error
Exception data follows:
java.lang.Exception: Invalid EJB component: Cannot use an EJB module with
version 1.1, CMP version 1.x using The Relational Resource Adapter
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.validBean(ConnectionFactoryBuil
derImpl.java:1925)
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getCMConfigData(ConnectionFacto
ryBuilderImpl.java:1460)
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFac
toryBuilderImpl.java:1244)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java
:884)
at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.
java:1674)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1537)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at
com.ibm.ws.cpi.JDBCPersisterFactoryImpl.create(JDBCPersisterFactoryImpl.java
:97)
at
com.ibm.ejs.container.BeanMetaData.completeInitialization(BeanMetaData.java:
1169)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContaine
rImpl.java:929)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createModuleMetaData(EJBContai
nerImpl.java:755)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImp
l.java:1465)
at
com.ibm.ws.runtime.component.MetaDataMgrImpl.createFactoryMetaData(MetaDataM
grImpl.java:115)
at
com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.
java:159)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.jav
a:333)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicati
onImpl.java:531)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Application
MgrImpl.java:254)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav
a:232)
at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at
com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerIm
pl.java:117)
at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at
com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV
5.java:105)
[3/11/03 10:27:40:875 CET] 66a7fdc1 Helpers W NMSV0610I: A NamingException
is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl
Context method: lookup
Context name: localhost/nodes/localhost/servers/server1
Target name: jdbc/Budget
Other data:
Exception stack trace:
com.ibm.websphere.naming.CannotInstantiateObjectException: Exception
occurred while the JNDI NamingManager was processing a
javax.naming.Reference object. Root exception is java.lang.Exception:
Invalid EJB component: Cannot use an EJB module with version 1.1, CMP
version 1.x using The Relational Resource Adapter
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.validBean(ConnectionFactoryBuil
derImpl.java:1925)
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getCMConfigData(ConnectionFacto
ryBuilderImpl.java:1460)
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFac
toryBuilderImpl.java:1244)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java
:884)
at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.
java:1674)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1537)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at
com.ibm.ws.cpi.JDBCPersisterFactoryImpl.create(JDBCPersisterFactoryImpl.java
:97)
at
com.ibm.ejs.container.BeanMetaData.completeInitialization(BeanMetaData.java:
1169)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContaine
rImpl.java:929)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createModuleMetaData(EJBContai
nerImpl.java:755)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImp
l.java:1465)
at
com.ibm.ws.runtime.component.MetaDataMgrImpl.createFactoryMetaData(MetaDataM
grImpl.java:115)
at
com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.
java:159)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.jav
a:333)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicati
onImpl.java:531)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Application
MgrImpl.java:254)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav
a:232)
at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at
com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerIm
pl.java:117)
at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at
com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV
5.java:105)
[3/11/03 10:27:40:891 CET] 66a7fdc1 JDBCPersister W CNTR0031W: Error
starting CMP bean Arena#Budget.jar#Mbudgetevent:
com.ibm.websphere.naming.CannotInstantiateObjectException: Exception
occurred while the JNDI NamingManager was processing a
javax.naming.Reference object. Root exception is java.lang.Exception:
Invalid EJB component: Cannot use an EJB module with version 1.1, CMP
version 1.x using The Relational Resource Adapter
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.validBean(ConnectionFactoryBuil
derImpl.java:1925)
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getCMConfigData(ConnectionFacto
ryBuilderImpl.java:1460)
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFac
toryBuilderImpl.java:1244)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java
:884)
at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.
java:1674)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1537)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at
com.ibm.ws.cpi.JDBCPersisterFactoryImpl.create(JDBCPersisterFactoryImpl.java
:97)
at
com.ibm.ejs.container.BeanMetaData.completeInitialization(BeanMetaData.java:
1169)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContaine
rImpl.java:929)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createModuleMetaData(EJBContai
nerImpl.java:755)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImp
l.java:1465)
at
com.ibm.ws.runtime.component.MetaDataMgrImpl.createFactoryMetaData(MetaDataM
grImpl.java:115)
at
com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.
java:159)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.jav
a:333)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicati
onImpl.java:531)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Application
MgrImpl.java:254)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav
a:232)
at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at
com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerIm
pl.java:117)
at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at
com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV
5.java:105)
----- Begin backtrace for rootCause
java.lang.Exception: Invalid EJB component: Cannot use an EJB module with
version 1.1, CMP version 1.x using The Relational Resource Adapter
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.validBean(ConnectionFactoryBuil
derImpl.java:1925)
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getCMConfigData(ConnectionFacto
ryBuilderImpl.java:1460)
at
com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFac
toryBuilderImpl.java:1244)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java
:884)
at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.
java:1674)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1537)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at
com.ibm.ws.cpi.JDBCPersisterFactoryImpl.create(JDBCPersisterFactoryImpl.java
:97)
at
com.ibm.ejs.container.BeanMetaData.completeInitialization(BeanMetaData.java:
1169)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContaine
rImpl.java:929)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createModuleMetaData(EJBContai
nerImpl.java:755)
at
com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImp
l.java:1465)
at
com.ibm.ws.runtime.component.MetaDataMgrImpl.createFactoryMetaData(MetaDataM
grImpl.java:115)
at
com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.
java:159)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.jav
a:333)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicati
onImpl.java:531)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Application
MgrImpl.java:254)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.jav
a:232)
at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at
com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerIm
pl.java:117)
at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.jav
a:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at
com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV
5.java:105)
And one more thing,while creating the DataSource,i didn't find the username
and password fields of the database to connect.Please help me out.
Ravi
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like you're trying to use an EJB 1.1 bean with a WebSphere 5.0 DataSource -- you have to use a WebSphere 4.0 datasource instead. There are configuration options for building both -- make sure you're using the right one.
Kyle
 
Ravi Kumar Ravuru
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kyle,
Thanks for your response.I was using Websphere 5.0 DataSource,that was the problem.Now i changed to Websphere 4.0 Datasource,the problem was solved.
Regards,
Ravi
 
Ravi Kumar Ravuru
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kyle,
Thanks for the response.That problem is solved.In my application,iam using JspException class to throw the exception,it is running fine in WSAD4.0.3 but in WSAD 5.0 when iam running my application it is giving the package conflict error since the JspException class exists in two packages such as javax.servlet.jsp and org.apache.jasper,is there any configuration in WSAD 5.0 where i can specify the package name,otherwise i have give the package
name whereever i used the JspException class.Awaiting ur response.
Regards,
Ravi
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ravi Kumar R.S:
Hello Kyle,
Thanks for the response.That problem is solved.In my application,iam using JspException class to throw the exception,it is running fine in WSAD4.0.3 but in WSAD 5.0 when iam running my application it is giving the package conflict error since the JspException class exists in two packages such as javax.servlet.jsp and org.apache.jasper,is there any configuration in WSAD 5.0 where i can specify the package name,otherwise i have give the package
name whereever i used the JspException class.Awaiting ur response.
Regards,
Ravi


Unfortunately no, I think you're going to always have to use the fully qualified classname.
Kyle
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic