IntelliJ and Tomee 7 snapshot (tomcat 8)

Hi guys,

I was previously running tomee 1.7.2 in intellij without any problems. It was running with myfaces 2.2.8 (api & core) jars in the library. Today I downloaded the 7-snapshot.

After setting up the application server, run configuration and running there is no application running. Files appear in the out directory. Upon stopping the server I get the following error message:

'Application Server was not connected before run configuration stop, reason: javax.naming.NamingException: Cannot lookup '/openejb/DeployerBusinessRemote'

Also, a difference I have noticed is the intellij folder. The 1.7.2 app server outputs a folder named 'TomEE_7_0_62_AppDI' whereas the 7 app server outputs a folder named 'Unnamed_AppDI_4'. It is the 'Unnamed_' that looks suspicious as it is not unnamed (unless I'm missing something).

Further to this, I tested the server outside of IntelliJ and it works.

Do you have any suggestions?

I have included the output from the log:

C:\apache-tomee-plus-7.0.0\bin\catalina.bat run
[2015-11-30 05:07:58,724] Artifact idaccessweb:war exploded: Server is not connected. Deploy is not available.
Using CATALINA_BASE:   "C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4"
Using CATALINA_HOME:   "C:\apache-tomee-plus-7.0.0"
Using CATALINA_TMPDIR: "C:\apache-tomee-plus-7.0.0\temp"
Using JRE_HOME:        "C:\Program Files (x86)\Java\jdk1.8.0_65"
Using CLASSPATH:       "C:\apache-tomee-plus-7.0.0\bin\bootstrap.jar;C:\apache-tomee-plus-7.0.0\bin\tomcat-juli.jar"
INFO - Server version:        Apache Tomcat (TomEE)/8.0.29 (7.0.0-SNAPSHOT)
INFO - Server built:          Nov 20 2015 09:18:00 UTC
INFO - Server number:         8.0.29.0
INFO - OS Name:               Windows 10
INFO - OS Version:            10.0
INFO - Architecture:          x86
INFO - Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_65\jre
INFO - JVM Version:           1.8.0_65-b17
INFO - JVM Vendor:            Oracle Corporation
INFO - CATALINA_BASE:         C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4
INFO - CATALINA_HOME:         C:\apache-tomee-plus-7.0.0
INFO - Command line argument: -javaagent:C:\apache-tomee-plus-7.0.0\lib\openejb-javaagent.jar
INFO - Command line argument: -Dcom.sun.management.jmxremote=
INFO - Command line argument: -Dcom.sun.management.jmxremote.port=1099
INFO - Command line argument: -Dcom.sun.management.jmxremote.ssl=false
INFO - Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
INFO - Command line argument: -Djava.rmi.server.hostname=127.0.0.1
INFO - Command line argument: -Djava.util.logging.config.file=C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4\conf\logging.properties
INFO - Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
INFO - Command line argument: -Djava.endorsed.dirs=C:\apache-tomee-plus-7.0.0\endorsed
INFO - Command line argument: -Dcatalina.base=C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4
INFO - Command line argument: -Dcatalina.home=C:\apache-tomee-plus-7.0.0
INFO - Command line argument: -Djava.io.tmpdir=C:\apache-tomee-plus-7.0.0\temp
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 (x86)\Java\jdk1.8.0_65\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;.
INFO - Initializing ProtocolHandler ["http-nio-8080"]
INFO - Using a shared selector for servlet write/read
INFO - Initializing ProtocolHandler ["ajp-nio-8009"]
INFO - Using a shared selector for servlet write/read
INFO - Using 'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
INFO - ********************************************************************************
INFO - OpenEJB http://tomee.apache.org/
INFO - Startup: Mon Nov 30 17:08:02 GMT 2015
INFO - Copyright 1999-2015 (C) Apache OpenEJB Project, All Rights Reserved.
INFO - Version: 7.0.0-SNAPSHOT
INFO - Build date: 20151130
INFO - Build time: 04:07
INFO - ********************************************************************************
INFO - openejb.home = C:\apache-tomee-plus-7.0.0
INFO - openejb.base = C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4
INFO - Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@1dc8ecb
INFO - Succeeded in installing singleton service
INFO - openejb configuration file is 'C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4\conf\tomee.xml'
INFO - Configuring Service(id=Tomcat Security Service, type=SecurityService, provider-id=Tomcat Security Service)
INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Using 'openejb.deployments.classpath=false'
INFO - Creating TransactionManager(id=Default Transaction Manager)
INFO - Creating SecurityService(id=Tomcat Security Service)
INFO - Creating ServerService(id=cxf)
INFO - Creating ServerService(id=cxf-rs)
INFO -   ** Bound Services **
INFO -   NAME                 IP              PORT   
INFO - -------
INFO - Ready!
INFO - Initialization processed in 3243 ms
INFO - Importing a Tomcat Resource with id 'UserDatabase' of type 'org.apache.catalina.UserDatabase'.
INFO - Creating Resource(id=UserDatabase)
INFO - Starting service Catalina
INFO - Starting Servlet Engine: Apache Tomcat (TomEE)/8.0.29 (7.0.0-SNAPSHOT)
INFO - Starting ProtocolHandler ["http-nio-8080"]
INFO - Starting ProtocolHandler ["ajp-nio-8009"]
INFO - Server startup in 87 ms
INFO - Deploying web application directory C:\apache-tomee-plus-7.0.0\webapps\manager
INFO - ------------------------- localhost -> /manager
INFO - Configuring enterprise application: C:\apache-tomee-plus-7.0.0\webapps\manager
INFO - Configuring Service(id=comp/DefaultManagedExecutorService, type=Resource, provider-id=Default Executor Service)
INFO - Auto-creating a Resource with id 'comp/DefaultManagedExecutorService' of type 'javax.enterprise.concurrent.ManagedExecutorService for 'manager'.
INFO - Configuring Service(id=comp/DefaultManagedScheduledExecutorService, type=Resource, provider-id=Default Scheduled Executor Service)
INFO - Auto-creating a Resource with id 'comp/DefaultManagedScheduledExecutorService' of type 'javax.enterprise.concurrent.ManagedScheduledExecutorService for 'manager'.
INFO - Configuring Service(id=comp/DefaultManagedThreadFactory, type=Resource, provider-id=Default Managed Thread Factory)
INFO - Auto-creating a Resource with id 'comp/DefaultManagedThreadFactory' of type 'javax.enterprise.concurrent.ManagedThreadFactory for 'manager'.
INFO - Enterprise application "C:\apache-tomee-plus-7.0.0\webapps\manager" loaded.
INFO - Assembling app: C:\apache-tomee-plus-7.0.0\webapps\manager
INFO - using context file C:\apache-tomee-plus-7.0.0\webapps\manager\META-INF\context.xml
INFO - Deployed Application(path=C:\apache-tomee-plus-7.0.0\webapps\manager)
INFO - At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
INFO - Deployment of web application directory C:\apache-tomee-plus-7.0.0\webapps\manager has finished in 1,556 ms

6 comments
Comment actions Permalink

FYI:

I have tried a remote run configuration (Tomee installed locally) and I get the following error:

Error running TomEE 7 remote:
Unable to connect to the localhost:1099,      reason:
javax.naming.NamingException: Cannot lookup      '/openejb/DeployerBusinessRemote'     

Any ideas?

0
Comment actions Permalink

Hello,

We normally don’t support servers until they have reached at least RC state. Thus IDEA 15 does not support TomEE 7 yet.
I have submitted https://youtrack.jetbrains.com/issue/IDEA-148738, tentatively planned for IDEA 15.1. Please vote.

Regards,
Michael

0
Comment actions Permalink

Hi Michael,

Thank-you for your update. I believe the Tomee 7 release is imminent.

0
Comment actions Permalink
Actually I am unable to reproduce with the latest TomEE I can see at http://tomee.apache.org/download/tomee-2.0.0-snapshot.html - Apache Tomcat (TomEE)/8.0.22 (7.0.0-SNAPSHOT) installation.
Application is deployed for me.
Please provide link to download your server version -- Apache Tomcat (TomEE)/8.0.29 (7.0.0-SNAPSHOT).
0
Comment actions Permalink

Hi

 

For idea itself: please support tomee before final version cause the main restriction is due to legal issues with oracle so it would be bad for users to not support tomee for this reason (and you'll see the fix is trivial for you ;))

 

For everybody the reason it stopped working is minor changes in the defaults - more oriented for production. The properties to switch are listed there http://tomee-openejb.979440.n4.nabble.com/HTTP-JNDI-endpoint-not-woking-in-Tomee-Plus-7-0-0-M1-td4677571.html. Idea adapter can enforce them as system properties and users can temporarly set them in conf/system.properties.

 

Hope it helps.

0
Comment actions Permalink

Hi all,

It would appear that I am still facing the same problem with Intellij version 15.0.6 and tomee 7.0.1. Is there a solution?

0

Please sign in to leave a comment.