2.7 DB2 error

Topics related to the LSPS Engine and the management of running processes.
Forum rules
Make sure every topic contains information about your LSPS version and if relevant also your server OS, client OS, database name and version, and application server name and version.
eric.graham
 
Posts: 58
Joined: Tue May 13, 2014 12:20 pm

2.7 DB2 error

Thu Jun 05, 2014 7:42 pm

I am trying to run a local DB2 in 2.7 (as I have in 2.6). I have set the environment.properties the same in 2.7 as 2.6 for DB2, and set db.embedded=false. There is no issue in 2.6 with this, but I am getting the following error( s ) in 2.7 - could you kindly assist in this issue? Thank you.
Code: Select all
 org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver
   at org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:43)
   at org.apache.xbean.propertyeditor.AbstractConverter.toObject(AbstractConverter.java:86)
   at org.apache.xbean.propertyeditor.PropertyEditors.getValue(PropertyEditors.java:284)
   at org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:172)
   at org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:592)
   at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
   at org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:1499)
   at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:400)
   at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:325)
   at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
   at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:65)
   at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
   at org.apache.openejb.OpenEJB.init(OpenEJB.java:269)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
   at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:69)
   at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:51)
   at org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:40)
   at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
   at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
   at javax.naming.InitialContext.init(InitialContext.java:242)
   at javax.naming.InitialContext.<init>(InitialContext.java:216)
   at com.whitestein.lsps.launcher.openejb.OpenEjbLauncher.initOpenEJB(OpenEjbLauncher.java:138)
   at com.whitestein.lsps.launcher.openejb.OpenEjbLauncher.launch(OpenEjbLauncher.java:87)
   at com.whitestein.lsps.launcher.Launchers.launch(Launchers.java:60)
   at com.whitestein.lsps.launcher.Launcher.launch(Launcher.java:280)
   at com.whitestein.lsps.launcher.Launcher.launchAndWait(Launcher.java:353)
   at com.whitestein.lsps.launcher.Launcher.start(Launcher.java:382)
   at com.whitestein.lsps.launcher.Launcher.main(Launcher.java:101)
   at com.kenco.lite.embedded.jetty.LSPSLauncher.main(LSPSLauncher.java:37)
Caused by: java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:270)
   at org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:40)
   ... 35 more

2014-06-05 13:24:02,495 SEVERE  OpenEJB has encountered a fatal error and cannot be started: Assembler failed to build the container system.
org.apache.openejb.OpenEJBException: org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver
   at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:338)
   at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
   at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:65)
   at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
   at org.apache.openejb.OpenEJB.init(OpenEJB.java:269)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
   at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:69)
   at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:51)
   at org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:40)
   at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
   at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
   at javax.naming.InitialContext.init(InitialContext.java:242)
   at javax.naming.InitialContext.<init>(InitialContext.java:216)
   at com.whitestein.lsps.launcher.openejb.OpenEjbLauncher.initOpenEJB(OpenEjbLauncher.java:138)
   at com.whitestein.lsps.launcher.openejb.OpenEjbLauncher.launch(OpenEjbLauncher.java:87)
   at com.whitestein.lsps.launcher.Launchers.launch(Launchers.java:60)
   at com.whitestein.lsps.launcher.Launcher.launch(Launcher.java:280)
   at com.whitestein.lsps.launcher.Launcher.launchAndWait(Launcher.java:353)
   at com.whitestein.lsps.launcher.Launcher.start(Launcher.java:382)
   at com.whitestein.lsps.launcher.Launcher.main(Launcher.java:101)
   at com.kenco.lite.embedded.jetty.LSPSLauncher.main(LSPSLauncher.java:37)
Caused by: org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver
   at org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:43)
   at org.apache.xbean.propertyeditor.AbstractConverter.toObject(AbstractConverter.java:86)
   at org.apache.xbean.propertyeditor.PropertyEditors.getValue(PropertyEditors.java:284)
   at org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:172)
   at org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:592)
   at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
   at org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:1499)
   at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:400)
   at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:325)
   ... 24 more
Caused by: java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:270)
   at org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:40)
   ... 35 more
2014-06-05 13:24:02,496 SEVERE Launcher Uncaught exception in Launcher
com.whitestein.lsps.launcher.LauncherException: com.whitestein.lsps.launcher.LauncherException: javax.naming.NamingException: Attempted to load OpenEJB. org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver [Root exception is org.apache.openejb.OpenEJBException: org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver]
   at com.whitestein.lsps.launcher.Launchers.launch(Launchers.java:66)
   at com.whitestein.lsps.launcher.Launcher.launch(Launcher.java:280)
   at com.whitestein.lsps.launcher.Launcher.launchAndWait(Launcher.java:353)
   at com.whitestein.lsps.launcher.Launcher.start(Launcher.java:382)
   at com.whitestein.lsps.launcher.Launcher.main(Launcher.java:101)
   at com.kenco.lite.embedded.jetty.LSPSLauncher.main(LSPSLauncher.java:37)
Caused by: com.whitestein.lsps.launcher.LauncherException: javax.naming.NamingException: Attempted to load OpenEJB. org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver [Root exception is org.apache.openejb.OpenEJBException: org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver]
   at com.whitestein.lsps.launcher.openejb.OpenEjbLauncher.launch(OpenEjbLauncher.java:90)
   at com.whitestein.lsps.launcher.Launchers.launch(Launchers.java:60)
   ... 5 more
Caused by: javax.naming.NamingException: Attempted to load OpenEJB. org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver [Root exception is org.apache.openejb.OpenEJBException: org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver]
   at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
   at org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:40)
   at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
   at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
   at javax.naming.InitialContext.init(InitialContext.java:242)
   at javax.naming.InitialContext.<init>(InitialContext.java:216)
   at com.whitestein.lsps.launcher.openejb.OpenEjbLauncher.initOpenEJB(OpenEjbLauncher.java:138)
   at com.whitestein.lsps.launcher.openejb.OpenEjbLauncher.launch(OpenEjbLauncher.java:87)
   ... 6 more
Caused by: org.apache.openejb.OpenEJBException: org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver
   at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:338)
   at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
   at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:65)
   at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
   at org.apache.openejb.OpenEJB.init(OpenEJB.java:269)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
   at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:69)
   at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:51)
   ... 13 more
Caused by: org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve class com.ibm.as400.access.AS400JDBCDriver
   at org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:43)
   at org.apache.xbean.propertyeditor.AbstractConverter.toObject(AbstractConverter.java:86)
   at org.apache.xbean.propertyeditor.PropertyEditors.getValue(PropertyEditors.java:284)
   at org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:172)
   at org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:592)
   at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
   at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
   at org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:1499)
   at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:400)
   at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:325)
   ... 24 more
Caused by: java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:270)
   at org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:40)
   ... 35 more
2014-06-05 13:24:02,498 INFO Launcher Stopping servers
2014-06-05 13:24:02,498 SEVERE Launcher Failed to stop launcher
java.lang.IllegalStateException: Not yet started
   at com.whitestein.lsps.launcher.AbstractLauncher.checkRunning(AbstractLauncher.java:45)
   at com.whitestein.lsps.launcher.AbstractLauncher.stop(AbstractLauncher.java:60)
   at com.whitestein.lsps.launcher.Launcher.performStop(Launcher.java:309)
   at com.whitestein.lsps.launcher.Launcher.stop(Launcher.java:331)
   at com.whitestein.lsps.launcher.Launcher.main(Launcher.java:105)
   at com.kenco.lite.embedded.jetty.LSPSLauncher.main(LSPSLauncher.java:37)


Ondrej Danko
 
Posts: 31
Joined: Mon Feb 27, 2012 1:14 pm

Re: 2.7 DB2 error

Thu Jun 05, 2014 8:32 pm

Hi,

is the driver on the classpath?

If it is not, then add dependency below to <yourAppName>-embedded/pom.xml
Code: Select all
<dependency>
   <groupId>net.sf.jt400</groupId>
   <artifactId>jt400</artifactId>
   <version>6.7</version>
</dependency>


and rebuild the application. You can rebuild your application by Run Configuration from LSPS (<yourAppName> Maven Build). Or you can do it manually from command line by invoking command below from the root of the application.
Code: Select all
mvn clean eclipse:eclipse install
Next you need to refresh all your projects in the workspace.

Hope that helps.

eric.graham
 
Posts: 58
Joined: Tue May 13, 2014 12:20 pm

Re: 2.7 DB2 error

Thu Jun 05, 2014 10:30 pm

Thank you Ondrej! (yes forgot the dependency)

Return to Management

Who is online

Users browsing this forum: No registered users and 1 guest