tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis Monteiro <jlmonte...@tomitribe.com>
Subject Fwd: unable to remove default hsqldb driver connection
Date Wed, 27 Feb 2019 14:08:43 GMT
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


---------- Forwarded message ---------
From: Jean-Louis Monteiro <jlmonteiro@tomitribe.com>
Date: Wed, Feb 27, 2019 at 3:08 PM
Subject: Re: unable to remove default hsqldb driver connection
To: <ganga.java7@gmail.com>


Hi,

First, adding TomEE Users mailing list so others can also assist.

A couple of questions there.

1/ Did you added the Oracle jars in the TomEE/lib directory?
By default we don't cheap anything but HSQL Driver jars.

2/ What was the error (if any) without removing the HSQL jar from TomEE/lib?

3/ The formatting is kinda broken in the email but looks like there is 2
spaces between JdbcDriver and the class name.
Maybe try to use the equals character as the separator instead of the space.

Hope it helps


--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Wed, Feb 27, 2019 at 1:58 PM <ganga.java7@gmail.com> wrote:

> Hi Jean-Louis,
>
> I  was configured resource in tomee.xml
>
> <Resource id="jdbc/FAQuery" type="DataSource"  >
>                 JdbcDriver   oracle.jdbc.xa.client.OracleXADataSource
>             JdbcUrl  jdbc:oracle:thin:@******:***:ORCL12
>             password  ****
>             userName  ****
>                 </Resource>
>
> but  by default it is connecting to hsqldb.
> i have removed hsqldb.jars in tomee/lib folder.
> same error i am getting.
> could u suggest me.. how to resolve this problem.
>
>
> org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve
> class org.hsqldb.jdbcDriver
>         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.PropertyEditorRegistry.getValue(PropertyEditorRegistry.java:212)
>         at
> org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:165)
>         at
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:599)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:278)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.openejb.assembler.classic.Assembler.doCreateResource(Assembler.java:3171)
>         at
> org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:3006)
>         at
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:590)
>         at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:491)
>         at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
>         at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
>         at
> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:249)
>         at
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:168)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
>         at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
>         at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:137)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:670)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
> Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:348)
>         at
> org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:40)
>         ... 26 more
>
> 27-Feb-2019 18:23:21.752 SEVERE [main]
> org.apache.openejb.OpenEJB$Instance.<init> 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 org.hsqldb.jdbcDriver: Unable to resolve class org.hsqldb.jdbcDriver
>         at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:504)
>         at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
>         at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
>         at
> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:249)
>         at
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:168)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
>         at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
>         at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:137)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:670)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
> Caused by: org.apache.xbean.propertyeditor.PropertyEditorException: Unable
> to resolve class org.hsqldb.jdbcDriver
>         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.PropertyEditorRegistry.getValue(PropertyEditorRegistry.java:212)
>         at
> org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:165)
>         at
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:599)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:278)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.openejb.assembler.classic.Assembler.doCreateResource(Assembler.java:3171)
>         at
> org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:3006)
>         at
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:590)
>         at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:491)
>         ... 15 more
> Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:348)
>         at
> org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:40)
>         ... 26 more
>
> 27-Feb-2019 18:23:21.752 SEVERE [main]
> org.apache.tomee.catalina.ServerListener.lifecycleEvent TomEE Listener
> can't start OpenEJB
>  org.apache.openejb.OpenEJBException:
> org.apache.xbean.propertyeditor.PropertyEditorException: Unable to resolve
> class org.hsqldb.jdbcDriver: Unable to resolve class org.hsqldb.jdbcDriver
>         at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:504)
>         at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
>         at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
>         at
> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:249)
>         at
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:168)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
>         at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
>         at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:137)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:670)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
> Caused by: org.apache.xbean.propertyeditor.PropertyEditorException: Unable
> to resolve class org.hsqldb.jdbcDriver
>         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.PropertyEditorRegistry.getValue(PropertyEditorRegistry.java:212)
>         at
> org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:165)
>         at
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:599)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:278)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.openejb.assembler.classic.Assembler.doCreateResource(Assembler.java:3171)
>         at
> org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:3006)
>         at
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:590)
>         at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:491)
>         ... 15 more
> Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:348)
>         at
> org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:40)
>         ... 26 more
>
>
> _____________________________________
> Sent from http://tomee-openejb.979440.n4.nabble.com
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message