Romain Manni-Bucau wrote
>> Romain Manni-Bucau wrote
>> > Without tomee? Maybe tomcat scanning - in catalina.properties
>>
>> Doesn't help either, unfortunately.
>>
>> I tried to start the TomEE in IntelliJ to see if the problem occurs
>> there,
>> but I got this error and couldn't deploy:
>>
>> Application Server was not connected before run configuration stop,
>> reason:
>> javax.naming.NoInitialContextException: Cannot instantiate class:
>> org.apache.openejb.client.RemoteInitialContextFactory
>>
>> I then added openejb-client.jar to the classes in the Application Servers
>> settings, and now I'm getting this error:
>>
>> Application Server was not connected before run configuration stop,
>> reason:
>> javax.naming.NamingException: Cannot lookup
>> '/openejb/DeployerBusinessRemote'.
>>
>>
> has been fixed normally in late idea versions but in 2 words you need to
> setup tomee ejbd protocol (tomee.remote.support=true etc...)

Well, I just downloaded the newest IntelliJ version. The necessary command
line arguments are passed to the TomEE instance. This is the complete log on
startup:

C:\Tomcat\apache-tomee-plus-7.0.1\bin\catalina.bat run
[2016-11-14 03:18:38,970] Artifact Gradle : de.lhind.patris.poweb :
poweb-web-1.0.f32158_9a06e504-SNAPSHOT.war: Server is not connected. Deploy
is not available.
Using CATALINA_BASE:  
"C:\Users\U555413\.IntelliJIdea2016.2\system\tomcat\Unnamed_poweb_2"
Using CATALINA_HOME:   "C:\Tomcat\apache-tomee-plus-7.0.1"
Using CATALINA_TMPDIR: "C:\Tomcat\apache-tomee-plus-7.0.1\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_102"
Using CLASSPATH:      
"C:\Tomcat\apache-tomee-plus-7.0.1\bin\bootstrap.jar;C:\Tomcat\apache-tomee-plus-7.0.1\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:63534', transport: 'socket'
INFORMATION - Server version:        Apache Tomcat (TomEE)/8.5.3 (7.0.1)
INFORMATION - Server built:          Jun 9 2016 11:16:29 UTC
INFORMATION - Server number:         8.5.3.0
INFORMATION - OS Name:               Windows 7
INFORMATION - OS Version:            6.1
INFORMATION - Architecture:          amd64
INFORMATION - Java Home:             C:\Program Files\Java\jdk1.8.0_102\jre
INFORMATION - JVM Version:           1.8.0_102-b14
INFORMATION - JVM Vendor:            Oracle Corporation
INFORMATION - CATALINA_BASE:        
C:\Users\U555413\.IntelliJIdea2016.2\system\tomcat\Unnamed_poweb_2
INFORMATION - CATALINA_HOME:         C:\Tomcat\apache-tomee-plus-7.0.1
INFORMATION - Command line argument:
-javaagent:C:\Tomcat\apache-tomee-plus-7.0.1\lib\openejb-javaagent.jar
INFORMATION - Command line argument:
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63534,suspend=y,server=n
INFORMATION - Command line argument: -Dcom.sun.management.jmxremote=
INFORMATION - Command line argument:
-Dcom.sun.management.jmxremote.port=1099
INFORMATION - Command line argument:
-Dcom.sun.management.jmxremote.ssl=false
INFORMATION - Command line argument:
-Dcom.sun.management.jmxremote.authenticate=false
INFORMATION - Command line argument: -Djava.rmi.server.hostname=127.0.0.1
INFORMATION - Command line argument: -Dtomee.remote.support=true
INFORMATION - Command line argument: -Dopenejb.system.apps=true
INFORMATION - Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
INFORMATION - Command line argument:
-Djava.util.logging.config.file=C:\Users\U555413\.IntelliJIdea2016.2\system\tomcat\Unnamed_poweb_2\conf\logging.properties
INFORMATION - Command line argument:
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
INFORMATION - Command line argument:
-Dcatalina.base=C:\Users\U555413\.IntelliJIdea2016.2\system\tomcat\Unnamed_poweb_2
INFORMATION - Command line argument:
-Dcatalina.home=C:\Tomcat\apache-tomee-plus-7.0.1
INFORMATION - Command line argument:
-Djava.io.tmpdir=C:\Tomcat\apache-tomee-plus-7.0.1\temp
INFORMATION - 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\jdk1.8.0_102\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program
Files (x86)\Firefox Developer
Edition;C:\ProgramData\Oracle\Java\javapath;C:\Program
Files\Haskell\bin;C:\Program Files\Haskell
Platform\7.10.3\lib\extralibs\bin;C:\Program Files\Haskell
Platform\7.10.3\bin;C:\PatrisDev\spu\bin;C:\PatrisDev\spu\bin\unixtools;C:\Program
Files (x86)\Integrity\IntegrityClient10\bin;C:\Program Files
(x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCommon\;C:\Program Files (x86)\Common Files\Roxio
Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
Shared\10.0\DLLShared\;C:\Program Files\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\IPT;C:\PROGRA~2\INTEGR~1\Toolkit\mksnt;C:\Programme\Vagrant\bin;O:\OraNT112\bin;"C:\Program
Files (x86)\Araxis\Araxis Merge v6.5";C:\Program Files\Haskell
Platform\7.10.3\mingw\bin;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\MySQL\MySQL Utilities\;C:\Program Files (x86)\MySQL\MySQL
Utilities\Doctrine extensions for PHP\;C:\Program Files
(x86)\Skype\Phone\;C:\Program Files\nodejs\;C:\Program
Files\TortoiseGit\bin;C:\Users\U555413\AppData\Roaming\npm;C:\PatrisDev\spu\gradle-2.11\bin;C:\Cygwin\bin;C:\Users\U555413\AppData\Local\GitHub\PortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9\cmd;Z:.;Y:.;;.
INFORMATION - Initializing ProtocolHandler ["http-nio-8080"]
INFORMATION - Using a shared selector for servlet write/read
INFORMATION - Initializing ProtocolHandler ["ajp-nio-8009"]
INFORMATION - Using a shared selector for servlet write/read
INFORMATION - Using 'tomee.remote.support=true'
INFORMATION - Using
'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
INFORMATION -
********************************************************************************
INFORMATION - OpenEJB http://tomee.apache.org/
INFORMATION - Startup: Mon Nov 14 15:18:41 CET 2016
INFORMATION - Copyright 1999-2016 (C) Apache OpenEJB Project, All Rights
Reserved.
INFORMATION - Version: 7.0.1
INFORMATION - Build date: 20160623
INFORMATION - Build time: 12:04
INFORMATION -
********************************************************************************
INFORMATION - openejb.home = C:\Tomcat\apache-tomee-plus-7.0.1
INFORMATION - openejb.base =
C:\Users\U555413\.IntelliJIdea2016.2\system\tomcat\Unnamed_poweb_2
INFORMATION - Created new singletonService
org.apache.openejb.cdi.ThreadSingletonServiceImpl@6c0d9d86
INFORMATION - Succeeded in installing singleton service
INFORMATION - TomEE configuration file is
'C:\Users\U555413\.IntelliJIdea2016.2\system\tomcat\Unnamed_poweb_2\conf\tomee.xml'
INFORMATION - Configuring Service(id=Tomcat Security Service,
type=SecurityService, provider-id=Tomcat Security Service)
INFORMATION - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFORMATION - Using 'openejb.system.apps=true'
INFORMATION - Configuring Service(id=Default Singleton Container,
type=Container, provider-id=Default Singleton Container)
INFORMATION - Creating TransactionManager(id=Default Transaction Manager)
INFORMATION - Creating SecurityService(id=Tomcat Security Service)
INFORMATION - Creating Container(id=Default Singleton Container)
INFORMATION - Assembling app: openejb
INFORMATION - Using
'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
INFORMATION - Jndi(name=openejb/DeployerBusinessRemote) -->
Ejb(deployment-id=openejb/Deployer)
INFORMATION -
Jndi(name=global/openejb/openejb/openejb/Deployer!org.apache.openejb.assembler.Deployer)
--> Ejb(deployment-id=openejb/Deployer)
INFORMATION - Jndi(name=global/openejb/openejb/openejb/Deployer) -->
Ejb(deployment-id=openejb/Deployer)
INFORMATION - Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
Ejb(deployment-id=openejb/ConfigurationInfo)
INFORMATION -
Jndi(name=global/openejb/openejb/openejb/Deployer!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo)
--> Ejb(deployment-id=openejb/ConfigurationInfo)
INFORMATION - Jndi(name=MEJB) --> Ejb(deployment-id=MEJB)
INFORMATION -
Jndi(name=global/openejb/openejb/openejb/Deployer!javax.management.j2ee.ManagementHome)
--> Ejb(deployment-id=MEJB)
INFORMATION - Created Ejb(deployment-id=MEJB, ejb-name=openejb/Deployer,
container=Default Singleton Container)
INFORMATION - Created Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/Deployer, container=Default Singleton Container)
INFORMATION - Created Ejb(deployment-id=openejb/Deployer,
ejb-name=openejb/Deployer, container=Default Singleton Container)
INFORMATION - Started Ejb(deployment-id=MEJB, ejb-name=openejb/Deployer,
container=Default Singleton Container)
INFORMATION - Started Ejb(deployment-id=openejb/ConfigurationInfo,
ejb-name=openejb/Deployer, container=Default Singleton Container)
INFORMATION - Started Ejb(deployment-id=openejb/Deployer,
ejb-name=openejb/Deployer, container=Default Singleton Container)
INFORMATION - Deployed
MBean(openejb.user.mbeans:application=openejb,group=org.apache.openejb.assembler.monitoring,name=JMXDeployer)
INFORMATION - Deployed Application(path=openejb)
INFORMATION - Creating ServerService(id=cxf)
INFORMATION - Creating ServerService(id=cxf-rs)
INFORMATION -   ** Bound Services **
INFORMATION -   NAME                 IP              PORT  
INFORMATION - -------
INFORMATION - Ready!
INFORMATION - Initialization processed in 2650 ms
INFORMATION - Importing a Tomcat Resource with id 'UserDatabase' of type
'org.apache.catalina.UserDatabase'.
INFORMATION - Creating Resource(id=UserDatabase)
INFORMATION - Starting service Catalina
INFORMATION - Starting Servlet Engine: Apache Tomcat (TomEE)/8.5.3 (7.0.1)
INFORMATION - Unable to set the web application class loader property
[clearReferencesRmiTargets] to [true] as the property does not exist.
INFORMATION - Starting ProtocolHandler [http-nio-8080]
INFORMATION - Starting ProtocolHandler [ajp-nio-8009]
INFORMATION - Server startup in 225 ms




Romain Manni-Bucau wrote
> If you can reproduce it with tomee maven plugin (idea is you share a
> project we run with mvn package tomee:run) we could help you more
> accurately.

I'll see if I can do that, it will take some time though.




--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/IllegalAccess-exception-when-reloading-TomEE-7-0-1-using-Apache-Camel-2-18-0-tp4680514p4680534.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to