And in temp? Le 16 août 2016 21:36, "KARR, DAVID" <[email protected]> a écrit :
> > -----Original Message----- > > From: Romain Manni-Bucau [mailto:[email protected]] > > Sent: Tuesday, August 16, 2016 12:20 PM > > To: [email protected] > > Subject: Re: Confused why other user is failing to find Oracle driver in > > classpath > > > > did you check in work directory? there should be a copy of that file > > there. > > You mean "$TOMEE_HOME/work"? There are several directories in there, > including nested directories, but only 4 plain files, none of which seem to > be relevant: > ------------------ > apache-tomee-webprofile-7.0.1/work/Catalina/localhost/ > manager/org/apache/jsp/WEB_002dINF/jsp/_401_jsp.class > apache-tomee-webprofile-7.0.1/work/Catalina/localhost/ > manager/org/apache/jsp/WEB_002dINF/jsp/_401_jsp.java > apache-tomee-webprofile-7.0.1/work/Catalina/localhost/ROOT/ > org/apache/jsp/index_jsp.class > apache-tomee-webprofile-7.0.1/work/Catalina/localhost/ROOT/ > org/apache/jsp/index_jsp.java > ----------------- > > > 2016-08-16 21:18 GMT+02:00 KARR, DAVID <[email protected]>: > > > > > > -----Original Message----- > > > > From: Romain Manni-Bucau [mailto:[email protected]] > > > > Sent: Tuesday, August 16, 2016 11:43 AM > > > > To: [email protected] > > > > Subject: Re: Confused why other user is failing to find Oracle > > > > driver in classpath > > > > > > > > Openejb.m2.home set up in ~/.openejb/system.properties? > > > > Corrupted jar in m2 etc... > > > > > > Very strange. Now I'm seeing the same error in my environment, but I > > > was able to hack around it temporarily. I've tested this with both > > > the original driver class name I used and the "non-deprecated" one > > > that Deepak refers to. No difference. > > > > > > I also deleted the subtree in my .m2/repo containing the oracle > > > driver, and reran my build, showing it downloading the jar again. I > > > also inspected the jar itself, showing that it has the class. > > > > > > I then copied the Oracle artifact jar out of my .m2/repo and copied it > > > to the "lib" directory of the tome distribution and restarted the > > > server. NO ERROR. > > > > > > That indicates to me that somehow the notation I'm using in the > > > resource definition, being the following: > > > ------------- > > > <Resource id="sus2" type="DataSource" classpath="mvn:oracle:ojdbc6: > > > 11.2.0.3"> > > > ------------- > > > > > > Is not working, even though it was working fine just earlier today. > > > > > > If it matters, following this is my entire server log file from start > > > to the start of the error message. > > > -------------------------- > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} > > > Setting property 'source' to > > > 'org.eclipse.jst.jee.server:ordersService' did not find a matching > > property. > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} > > > Setting property 'source' to 'org.eclipse.jst.jee.server:ordersGUI' > > > did not find a matching property. > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Server version: Apache Tomcat (TomEE)/8.0.8.5.3 (7.0.1) > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Server built: Jun 9 2016 11:16:29 UTC > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Server number: 8.5.3.0 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: OS Name: Windows 7 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: OS Version: 6.1 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Architecture: amd64 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Java Home: C:\Program Files\Java\jre1.8.0_102 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: JVM Version: 1.8.0_102-b14 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: JVM Vendor: Oracle Corporation > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: CATALINA_BASE: C:\Users\dk068x\workspace\. > > > metadata\.plugins\org.eclipse.wst.server.core\tmp0 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: CATALINA_HOME: C:\Users\dk068x\frameworks\ > > > apache-tomee-7.0.1-webprofile\apache-tomee-webprofile-7.0.1 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Command line argument: -Dcatalina.base=C:\Users\ > > > dk068x\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Command line argument: -Dcatalina.home=C:\Users\ > > > dk068x\frameworks\apache-tomee-7.0.1-webprofile\apache- > > > tomee-webprofile-7.0.1 > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Command line argument: -Dwtp.deploy=C:\Users\dk068x\ > > > workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebap > > > ps Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl > > > invoke > > > INFO: Command line argument: -Djava.endorsed.dirs=C:\Users\ > > > dk068x\frameworks\apache-tomee-7.0.1-webprofile\apache- > > > tomee-webprofile-7.0.1\endorsed > > > Aug 16, 2016 11:55:53 AM sun.reflect.NativeMethodAccessorImpl invoke > > > INFO: Command line argument: -Denv=dev Aug 16, 2016 11:55:53 AM > > > sun.reflect.DelegatingMethodAccessorImpl invoke > > > INFO: Command line argument: -Dfile.encoding=Cp1252 Aug 16, 2016 > > > 11:55:53 AM sun.reflect.DelegatingMethodAccessorImpl invoke > > > INFO: The APR based Apache Tomcat Native library which allows optimal > > > performance in production environments was not found on the > > > java.library.path: C:\Program Files\Java\jre1.8.0_102\bin;C: > > > \Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;c:/Program > > > Files/Java/jdk1.8.0_102/bin/../jre/bin/server;c:/Program > > > Files/Java/jdk1.8.0_102/bin/../jre/bin;c:/Program > > > Files/Java/jdk1.8.0_102/bin/../jre/lib/amd64;c:\Program > > > Files\Java\jdk1.8.0_102\bin;C:\Program Files (x86)\RSA SecurID Token > > > Common;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ > > > Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System > > > 32\ > > > WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C: > > > \Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files > > > (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program > > > Files\1E\NomadBranch\;C:\Program Files (x86)\Enterprise > > > Vault\EVClient\;c:\Program Files\Java\jdk1.8.0_102\bin;C:\Program > > > Files\nodejs\;c:\Users\dk068x\ > > > frameworks\gradle-2.14.1-all\gradle-2.14.1\bin;c:\Users\ > > > dk068x\frameworks\apache-groovy-sdk-2.4.7\groovy-2.4.7\bin;C:\Program > > > Files\Git\cmd;C:\Program Files\Oracle\VirtualBox;C:\ > > > Users\dk068x\AppData\Roaming\npm;C:\Users\dk068x\Desktop;;. > > > Aug 16, 2016 11:55:53 AM sun.reflect.DelegatingMethodAccessorImpl > > > invoke > > > INFO: Initializing ProtocolHandler ["http-nio-8080"] Aug 16, 2016 > > > 11:55:54 AM sun.reflect.DelegatingMethodAccessorImpl invoke > > > INFO: Using a shared selector for servlet write/read Aug 16, 2016 > > > 11:55:54 AM sun.reflect.DelegatingMethodAccessorImpl invoke > > > INFO: Initializing ProtocolHandler ["ajp-nio-8009"] Aug 16, 2016 > > > 11:55:54 AM sun.reflect.DelegatingMethodAccessorImpl invoke > > > INFO: Using a shared selector for servlet write/read Aug 16, 2016 > > > 11:55:54 AM org.apache.openejb.util.OptionsLog info > > > INFO: Using 'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc. > > > TomEEDataSourceCreator' > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.OpenEJB$Instance <init> > > > INFO: ************************************************************ > > > ******************** > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.OpenEJB$Instance <init> > > > INFO: OpenEJB http://tomee.apache.org/ Aug 16, 2016 11:55:54 AM > > > org.apache.openejb.OpenEJB$Instance <init> > > > INFO: Startup: Tue Aug 16 11:55:54 PDT 2016 Aug 16, 2016 11:55:54 AM > > > org.apache.openejb.OpenEJB$Instance <init> > > > INFO: Copyright 1999-2016 (C) Apache OpenEJB Project, All Rights > > Reserved. > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.OpenEJB$Instance <init> > > > INFO: Version: 7.0.1 > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.OpenEJB$Instance <init> > > > INFO: Build date: 20160623 > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.OpenEJB$Instance <init> > > > INFO: Build time: 12:04 > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.OpenEJB$Instance <init> > > > INFO: ************************************************************ > > > ******************** > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.OpenEJB$Instance <init> > > > INFO: openejb.home = C:\Users\dk068x\frameworks\ > > > apache-tomee-7.0.1-webprofile\apache-tomee-webprofile-7.0.1 > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.OpenEJB$Instance <init> > > > INFO: openejb.base = C:\Users\dk068x\workspace\. > > > metadata\.plugins\org.eclipse.wst.server.core\tmp0 > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.cdi.CdiBuilder > > > initializeOWB > > > INFO: Created new singletonService org.apache.openejb.cdi. > > > ThreadSingletonServiceImpl@37e547da > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.cdi.CdiBuilder > > > initializeOWB > > > INFO: Succeeded in installing singleton service Aug 16, 2016 11:55:54 > > > AM org.apache.openejb.config.ConfigurationFactory > > > init > > > INFO: TomEE configuration file is 'C:\Users\dk068x\workspace\. > > > metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\tomee.xml' > > > Aug 16, 2016 11:55:54 AM > > > org.apache.openejb.config.ConfigurationFactory > > > configureService > > > INFO: Configuring Service(id=Tomcat Security Service, > > > type=SecurityService, provider-id=Tomcat Security Service) Aug 16, > > > 2016 11:55:54 AM org.apache.openejb.config.ConfigurationFactory > > > configureService > > > INFO: Configuring Service(id=Default Transaction Manager, > > > type=TransactionManager, provider-id=Default Transaction Manager) Aug > > > 16, 2016 11:55:54 AM org.apache.openejb.config.ConfigurationFactory > > > configureService > > > INFO: Configuring Service(id=sus2, type=Resource, provider-id=Default > > > JDBC > > > Database) > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.util.OptionsLog info > > > INFO: Using 'openejb.deployments.classpath=false' > > > Aug 16, 2016 11:55:54 AM > > > org.apache.openejb.assembler.classic.Assembler > > > createRecipe > > > INFO: Creating TransactionManager(id=Default Transaction Manager) Aug > > > 16, 2016 11:55:54 AM org.apache.openejb.assembler.classic.Assembler > > > createRecipe > > > INFO: Creating SecurityService(id=Tomcat Security Service) Aug 16, > > > 2016 11:55:54 AM org.apache.openejb.assembler.classic.Assembler > > > createRecipe > > > INFO: Creating Resource(id=sus2) > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.util.OptionsLog info > > > INFO: Using 'openejb.classloader.forced-load=org.springframework,org. > > > apache.cxf' > > > Aug 16, 2016 11:55:54 AM org.apache.openejb.util.OpenEJBErrorHandler > > > handleUnknownError > > > SEVERE: FATAL ERROR: Unknown error in Assembler. Please send the > > > following stack trace and this message to [email protected] : > > > ---------------------- > > > > > > > > Le 16 août 2016 20:28, "KARR, DAVID" <[email protected]> a écrit : > > > > > > > > > My app is running fine on my laptop, using TomEE 7.0.1. I'm > > > > > trying to set up another person to run the same service on his > > > > > laptop. I had him install the same JDK, TomEE, and Eclipse. I > > > > > had him use the same server config files that I'm using. We > > > > > specify to load the Oracle driver with the 'classpath="mvn:..." > > > > > strategy in the DataSource > > > > definition. > > > > > > > > > > When he starts his server, he sees the following stacktrace: > > > > > ------------------- > > > > > Aug 16, 2016 11:21:28 AM > > > > > org.apache.openejb.util.OpenEJBErrorHandler > > > > > handleUnknownError > > > > > SEVERE: FATAL ERROR: Unknown error in Assembler. Please send the > > > > > following stack trace and this message to [email protected] : > > > > > org.apache.xbean.propertyeditor.PropertyEditorException: Unable to > > > > > resolve class oracle.jdbc.driver.OracleDriver > > > > > 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:181) > > > > > 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.openejb.assembler.classic.Assembler. > > > > > doCreateResource(Assembler.java:2965) > > > > > at org.apache.openejb.assembler.classic.Assembler. > > > > > createResource(Assembler.java:2800) > > > > > at org.apache.openejb.assembler.classic.Assembler. > > > > > buildContainerSystem(Assembler.java:574) > > > > > at org.apache.openejb.assembler.classic.Assembler.build( > > > > > Assembler.java:483) > > > > > 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:247) > > > > > at org.apache.tomee.catalina.ServerListener.lifecycleEvent( > > > > > ServerListener.java:168) > > > > > at > > > > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent( > > > > > LifecycleBase.java:94) > > > > > at org.apache.catalina.util.LifecycleBase.setStateInternal( > > > > > LifecycleBase.java:401) > > > > > at org.apache.catalina.util.LifecycleBase.init( > > > > > LifecycleBase.java:115) > > > > > at > > org.apache.catalina.startup.Catalina.load(Catalina.java:606) > > > > > at > > org.apache.catalina.startup.Catalina.load(Catalina.java:629) > > > > > 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.load(Bootstrap.java:311) > > > > > at > > > > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494) > > > > > Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver. > > > > > OracleDriver > > > > > at org.apache.openejb.util.classloader. > > > > > URLClassLoaderFirst.loadClass(URLClassLoaderFirst.java:140) > > > > > 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 > > > > > ------------------------- > > > > > > > > > > I've looked at his .m2/repository, and the correct jar file is > > > > > there, and it has the specified class. What could he possibly > > > > > have done differently in his setup compared to mine? > > > > > > > > >
