Quantcast
Channel: zeroturnaround.com » All Posts
Viewing all 2540 articles
Browse latest View live

Reply To: Web Project Classes not reloading

$
0
0

Hi John,

It seems like a case of incorrect rebel.xml in projects. Both the EJB and web project should have its own rebel.xml with the <classpath> pointing to the build directory. JRebel monitors the changes in .class files, we rely on IDE automatically compiling the changes.
If you are having trouble getting the issue fixed, please reproduce the issue (make some changes that are not reloaded) and send a jrebel.log for that session to support@zeroturnaround.com

All the best,
Hannes


Reply To: Web Project Classes not reloading

$
0
0

Thanks Hannes

I shut down the server, the ide, restarted ide, used jrebel config to enable info level logging, ran a few experiments so I could send you the log file.

Then it started working again. The only difference between this and what I’ve done before is the increased logging.

Thanks for responding to my post, if the problem re-occurs I’ll re-post.

John

Reply To: JRebel causing application server spam

$
0
0

The issue is fixed in the latest nightly build – thanks, guys!

Reply To: MyBatis interceptor is lost

$
0
0

Hi,

It depends on how the interceptors are set up, would it be possible to share a small snippet of how you are using interceptors in your application so we can reproduce the behaviour on our end and fix it.
If you don’t want to share your code publicly, you can send the information to support@zeroturnaround.com.

All the best,
Hannes

Jrebel can't communicate with remote sever

$
0
0

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

Reply To: Jrebel can't communicate with remote sever

$
0
0

Hi!

Do you have some additional VM arguments set up somewhere (-Drebel.remoting_port=7065)?

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

Try testing connection with http://www.accountsvc.vagrantbox.dev.domain.com:7065 and see if you get a response.
If this does not work, please send jrebel.log (from remote box) to support@zeroturnaround.com so we can analyze what may have gone wrong.

Best regards,
Hannes

Uninstalling JRebel from RAD 8.5

$
0
0

How can I completely uninstalling JRebel from RAD 8.5 ? uninstalling all 3 modules from it from the installed applications/plugins (help->about RAD->installation details) didn’t do the trick, on starting the server it sill takes forever and I can see JRebel logging that it’s listening on class changes :(((( !!??

Reply To: Uninstalling JRebel from RAD 8.5

$
0
0

Hi,

Please check your startup script or custom VM arguments. Probably one of them still has the -javaagent:path/to/jrebel.jar argument remaining.

All the best,


Reply To: SMTP connection test vs "noreply@zeroturnaround.com"

$
0
0

Hey Fape, sorry for the trouble. In SMTP configuration there is two places where noreply@zeroturnaround.com is used:

1) If the field ‘Define sender email’ is empty or an invalid email, “noreply@zeroturnaround.com” is used for all emails sent from License Server.

2) The recipient of email is set to “noreply@zeroturnaround.com” for test connection only. Later it will use admin email for all emails sent from License Server.

Can you tell me what email you used for your configuration?

Best wishes,
Daniel

Pages begin developed often takes > 10 seconds to load in the browser

$
0
0

Hi

We’re using JRebel with Weblogic 10.3.6 and are developing applications using MyFaces 2.2 and are experiencing loading a page in the browser sometime takes more than 10 seconds. We’re not sure what the problem is and this has become an annoyance for the developers here.

We keep up with JRebel updates when they become available, so we’re on the latest and greatest always. We suspect Jrebel v6.4.6 and newer might have degraded performance for us, but we’re not sure.

Please advise!

Regards
Erik Reuter

Reply To: Pages begin developed often takes > 10 seconds to load in the browser

Reply To: SMTP connection test vs "noreply@zeroturnaround.com"

$
0
0

Hi Daniel,

Thanks for you reply.
I set the ‘Define sender email’ field to “noreply@[our_domain]”.
The main problem is our intranet smtp server accepts only our domain’s addresses, beacuse of our company policies :S.
So the “test connection” is allway fails. BTW it logs nice stacktrace to the log.

But the when is try to send “access token” from the gui I allways got “Failed to send email(s) Please head over to the configuration page for setup.
And the log contains only “failed to send access token: org.apache.commons.mail.EmailException: Sending the email to the following server failed :”.
I assume the two problem related to each other.

Could you please revisit the error/warn logging on related components(SMTPMailServiceImpl), eg include stacktrace/caused by exception.

Regards,
Peter

Maven multi module project with jetty in eclipse not working.

$
0
0

Hi JRebel Team,

We have two work environments, on the first environment we are using intellij IDE and on the other we are using ecllipse. when we tried with intellij, jrebel is working fine but when we switched to ecllipse it is using same configuration which we have tried in intellij and not monitoring the modules which are enabled in ecllipse. Could you please help us on this. Your response is greatly appreciated.

Reply To: Maven multi module project with jetty in eclipse not working.

$
0
0

Hi,

The configuration is not exactly the same for Eclipe and IntelliJ since their default build directories are different. Fortunately you can just right click on your project > JRebel > Advanced properties >Generate Now!“. This should generate a new rebel.xml for your module with the proper paths. It should be done for each module (project in Eclipse).

All the best,
Hannes

Reply To: Maven multi module project with jetty in eclipse not working.

$
0
0

Hi Hannes,

I have tried its not working.

Thanks,
swapna


Reply To: Jrebel can't communicate with remote sever

$
0
0

Hello!

Did you have any time to test connection with your server as Hannes had suggested? If server is still unresponsive, we would need trace level jrebel.log file from your server side and most probably jrebel-intellij.log from your local machine.

Kind regards,
Valerie

Reply To: SMTP connection test vs "noreply@zeroturnaround.com"

$
0
0

Hey Fape, I’ve tested our implementation with FakeSMTP and as I mentioned before, the only case when we use noreply@zeroturnaround.com is when ‘Defined sender email’ is empty or invalid.

I suspect your domain may be failing email validation – please send me the full email you have used (including your domain) with the License Server logs via support@zeroturnaround.com and the link to this Forum thread so we can continue this conversation.

Best wishes,
Daniel

Reply To: Problems using JRebel with Gradle/Cargo/Tomcat

$
0
0

Hello,

Still related to this issue, when enabling the Remote Server Support, I’m still facing 2 Guice errors at Server start up (namely when the Guice Modules are initializing). What I’m using:
Docker Containers for each WAR application, with Tomcat 6.0.44 & JRebel Agent stand alone in Containers (from http://dl.zeroturnaround.com/jrebel-stable-nosetup.zip)
Guice version is 3.0
– latest IntelliJ IDEA with JRebel plugin (I’ve generated the rebel-remote.xml for each module & packaged via Maven)
– this issues are reproducing only when the rebel-remote.xml is added into Modules (which are Jars located in WEB-INF/lib)

The Guice errors are (I’ve marked with XXX the names of the packages):

SEVERE: Exception sending context initialized event to listener instance of class XXX.SSOServerContextListener
com.google.inject.ConfigurationException: Guice configuration errors:

1) No implementation for XXX.ControllableRegistry was bound.
  while locating XXX.ControllableRegistry
    for parameter 0 at XXX.PropertyFactory.<init>(PropertyFactory.java:52)
  while locating XXX.PropertyFactory
    for field at XXX.propertyFactory(SSOServer.java:61)
  while locating XXX.SSOServer
SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: com.google.inject.CreationException: Guice creation errors:

1) No implementation for XXX.CipherService<java.lang.String, java.lang.String> annotated with @com.google.inject.name.Named(value=XXXCipherService) was bou
nd.
  while locating XXX.CipherService<java.lang.String, java.lang.String> annotated with @com.google.inject.name.Named(value=XXXCipherService)
    for field at XXX

I’ll provide you also with the jrebel.log file.
Any help is very welcomed!

Reply To: Maven multi module project with jetty in eclipse not working.

$
0
0

Hi Hannes,

Could you please provide with any other solution for the above issue as I am still facing the same issue even with the solution you have provided.

Thanks & Regards,
Swapna

Reply To: Maven multi module project with jetty in eclipse not working.

$
0
0

Hi,

Could you start your server, make some changes (that are not reloaded) and close down the server. After that, please send jrebel.log of that session to support@zeroturnaround.com. That way we can see exactly what is exactly wrong with the configuration and what should be changed.

Regards,
Hannes

Viewing all 2540 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>