I am trying to get Jrebel to work on my remote server, but can’t seem to get the configuration correct.
This is my setup so far:
1. I have an app that has a top level pom and also a war folder with a pom in it. The jrebel and jrebel-remote.xml are located in:
–> /accountsvc/src/main/resources
–> /accountsvc/accountsvc-war/src/main/resources
2. Our app runs on a centOS box with tomee (tomcat) and is brought up with vagrant. We do a vagrant up
which spins up our machine and configs our app. Centos is hosted via virtualbox
3. When we make changes we build locally and then copy the target directory to the vagrantbox and restart the app.
4. We talk to our app with a port forward as well. Ex: http://www.accountsvc.vagrantbox.dev.domain.com:7055/home
–> 8080 is forwarded to 7055
5. So far I generate the jrebel and jrebel-remote.xml via intellij and I deploy the files and start the server. I unzip the jrebel jar from the wget that’s in intellij
6. I followed the directions on intellij and copied this script
#!/bin/bash
export REBEL_HOME=/jrebel
export JAVA_OPTS="-javaagent:$REBEL_HOME/jrebel.jar -Drebel.remoting_plugin=true $JAVA_OPTS"
<code>dirname $0</code>/catalina.sh $@
This is located in /opt/tomee/bin
and I called it catalina-jrebel.sh.
8. Back in intellij I set my remote servers to be
http://www.accountsvc.vagrantbox.dev.domain.com:7055/home
7. After my app starts I run the catalina-jrebel script and get these errors.
When I try to do a test connection it will give me this error:
Jrebel server not responding or out of date.
In my app the sever logs display this message:
2016-08-26 15:55:53.753 INFO [0] [Core-SDK] Removed global request listener org.zeroturnaround.javarebel.integration.util.WeakUtil$WeakRequestListener@37fc34bf[org.zeroturnaround.jrebel.openwebbeans.openejb.OpenEjbReloader@eeb0450]
2016-08-26 15:55:53.776 INFO [15] [Core] Started logging in thread: Thread-0 daemon=false
2016-08-26 15:55:53.776 INFO [15] [IntelliJFSNotify] destroy
2016-08-26 15:55:53.776 INFO [16] [Core] Started logging in thread: rebel-fsnotify-ShutdownOnTermination daemon=true
2016-08-26 15:55:53.776 INFO [16] [IntelliJFSNotify] FSNotifier terminated with: 0 on java.lang.UNIXProcess@58659bc9
2016-08-26 15:55:53.777 INFO [17] [Core] Started logging in thread: Thread-1 daemon=false
2016-08-26 15:55:53.777 INFO [17] [Core] JVM shutdown, disabling class reloading
[vagrant@c1-vagrant-ctct-centos5 bin]$ sudo ./catalina-jrebel.sh run
Using CATALINA_BASE: /opt/apache-tomee-webprofile-1.6.0
Using CATALINA_HOME: /opt/apache-tomee-webprofile-1.6.0
Using CATALINA_TMPDIR: /opt/apache-tomee-webprofile-1.6.0/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/apache-tomee-webprofile-1.6.0/bin/bootstrap.jar:/opt/apache-tomee-webprofile-1.6.0/bin/tomcat-juli.jar
JRebel: Starting logging to file: /root/.jrebel/jrebel.log
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel: #############################################################
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel: JRebel Legacy Agent 6.4.8 (201608161142)
2016-08-26 15:55:41 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel: Over the last 1 days JRebel prevented
2016-08-26 15:55:41 JRebel: at least 0 redeploys/restarts saving you about 0 hours.
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel: JRebel started in remote server mode.
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel: #############################################################
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel: ‘-noverify’ missing, changing/adding/removing constructors will not be enabled!
2016-08-26 15:55:41 JRebel:
2016-08-26 15:55:41 JRebel: Starting embedded remoting on port 7065.
2016-08-26 15:55:41.857:INFO::Logging to STDERR via com.zeroturnaround.jrebel.bundled.org.mortbay.log.StdErrLog
2016-08-26 15:55:41.859:INFO::jetty-201608161142
2016-08-26 15:55:41.862:INFO::Started SocketConnector@0.0.0.0:7065
2016-08-26 15:55:41 JRebel: Embedded remoting started successfully.
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Catalina).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Aug 26, 2016 3:55:47 PM org.apache.openejb.util.OptionsLog info
INFO: Using ‘openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator’
Aug 26, 2016 3:55:48 PM org.apache.tomee.catalina.TomcatLoader optionalService
INFO: Optional service not installed: org.apache.tomee.webservices.TomeeJaxRsService
Aug 26, 2016 3:55:48 PM org.apache.tomee.catalina.TomcatLoader optionalService
INFO: Optional service not installed: org.apache.tomee.webservices.TomeeJaxWsService
Aug 26, 2016 3:55:48 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: ********************************************************************************
Aug 26, 2016 3:55:48 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: OpenEJB http://openejb.apache.org/
Aug 26, 2016 3:55:48 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Startup: Fri Aug 26 15:55:48 EDT 2016
Aug 26, 2016 3:55:48 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Copyright 1999-2013 (C) Apache OpenEJB Project, All Rights Reserved.
Aug 26, 2016 3:55:48 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Version: 4.6.0
Aug 26, 2016 3:55:48 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build date: 20131117
Aug 26, 2016 3:55:48 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build time: 06:49
Aug 26, 2016 3:55:48 PM org.apache.openejb.OpenEJB$Instance <init>
Any info on how to solve this issue would be greatly appreciated. Please let me know if you need more info or stack traces