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

Reply To: Jrebel Not Detecting Changes in my GWT Application

$
0
0

I am sorry, but there was a some misinformation about it.

JRebel works by switching .class files on running JVM.

As Super Dev Mode development compiles Java to JavaScript and executes JavaScript on the browser, then we unfortunately don’t support direct reloading for client-side Super Dev Mode. Recompiling classes with Super Dev Mode still works as expected and is effectively reloading all the changes to client-side.

On the other hand Classic Dev Mode (now deprecated) and server-side code changed are reloaded by JRebel, as for these cases, the code is executed inside the JVM.

Even though GWT Classic Dev Mode is deprecated, it can still be suitable for some of the projects, which doesn’t require latest browser versions for development.

And thanks for the screencasts, these were super useful to quickly understand the question you had.

  • This reply was modified 18 hours, 54 minutes ago by  Tanel Teinemaa.

Reply To: rebel.xml requirements in IntelliJ modules

$
0
0

I’m also seeing this error, but reloads work anyways. We don’t have a rebel.xml file in our web.xml file. We have a Gradle project with IntelliJ 15, and I’m using the JRebel plugin. Can I ignore this error or does it indicate like you say, that I need to configure some dependency to take full advantage of JRebel?

  • This reply was modified 17 hours, 42 minutes ago by  Shane Keller.

Reply To: Getting Out of Memory with Jrebel

$
0
0

Hi

Please let me know if there’s an update on the issue

thanks
Junaid

JRebel does not detect change in my classes in JBoss Portal server

$
0
0

Hi,

I am using IntelliJ 15 with JRebel 6.3.3 and am trying to work with a portal application deployed to JBoss Portla Server 2.7.2. It does not pichk up on the changes I do in my java classes. I enabled tracing and in jrebel.log I can see:

2016-04-19 10:43:14.379 TRACE [18] [IntelliJFSNotify] >> CREATE
2016-04-19 10:43:14.379 TRACE [18] [IntelliJFSNotify] >> D:\projects\git\tui-application\portal\portlets\all\src\main\java\com\cypoint\mcp\tims\portlet\homebound\HomeboundFlightInfoController.java___jb_bak___
2016-04-19 10:43:14.379 TRACE [18] [IntelliJFSNotify] Not watchable, filtered: D:\projects\git\tui-application\portal\portlets\all\src\main\java\com\cypoint\mcp\tims\portlet\homebound\HomeboundFlightInfoController.java___jb_bak___

Saying that the class I changed is not watchable.

I am using CLI (mvn jrebel:generate), have selected the module in the JRebel Modules pane in IntelliJ, I have this rebel.xml:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

	<classpath>
		<dir name="D:/projects/git/tui-application/core/war/target/classes">
		</dir>
	</classpath>

	<web>
		<link target="/">
			<dir name="D:/projects/git/tui-application/core/war/src/main/webapp">
			</dir>
		</link>
	</web>

</application>

which points to the root folder of the classes, and I am using :

@echo off
set REBEL_BASE=C:\Users\MAOH1897\.jrebel
set JAVA_OPTS=”-javaagent:C:\Users\MyUserName\.IntelliJIdea15\config\plugins\jr-ide-idea\lib\jrebel\jrebel.jar” -Xms256m -Xmx512m -XX:MaxPermSize=256m %JAVA_OPTS%
call “%~dp0\run.bat” %*

for running JBoss Portal Server.

I can see that JRebel does a lot of processing when I compile in IntelliJ, and I get that “Not watchable” printout. In the same project I have another module running in Tomcat, and that works just fine.

Reply To: rebel.xml has wrong paths after renaming project

$
0
0

Hey John

Since JRebel 6.3.1 Eclipse plugin backs up rebel.xml and rebel-remote.xml (6.4.2 for IntelliJ and NetBeans) upon disabling JRebel Nature and restores it from backup upon re-enabling. The backups are named .rebel.xml.bak and .rebel-remote.xml.bak and are located either in project/module root or in .settings folder for Eclipse or .idea for IntelliJ. The purpose for it is to have users not accidentally lose any extra configuration they’ve done.

In Eclipse the way to force-generate new one (aside from deleting both backup and existing rebel.xml) is to open project settings > JRebel and press ‘Generate now’ button.

In IntelliJ to force-gen new one is to right-click project > JRebel and select rebel.xml – it’ll ask about generating new one.

Force-generating new ones will not update the backups until JRebel Nature/facet is again removed.

Reply To: JRebel does not detect change in my classes in JBoss Portal server

$
0
0

Hi Mattias,

How are you incrementally compiling your code and is JRebel correctly pointing to this location in the rebel.xml file?

The message you are seeing is expected. JRebel only cares about the class file itself being changed and thus it does not monitor the directory where the java files are being changed.

Regards,
Colton

Reply To: IDEA Optimizer Feedback

$
0
0

Hey Torben,

You need to register to take advantage of the Optimizer features. You may also want to check your permissions if you are still having trouble.

If you are still running into problems after registering and checking your permissions, please send an email to support@zeroturnaround.com.

Kind Regards,
Cas

Reply To: Getting Out of Memory with Jrebel

$
0
0

Hey Junaid,

It looks like you only increased perm, not heap. Please add the following argument to your eclipse.ini file and to your server arguments:
-Xmx512m

Then restart and try again.

Please let us know if that works or doesn’t work.

Thanks,
Cas


Reply To: rebel.xml requirements in IntelliJ modules

$
0
0

Hi Shane!

I would recommend adding a rebel.xml to each module because JRebel uses this rebel.xml to locate dependences in other JARs, WARs, and EARs to make sure your changes are reloaded properly across your application. However if everything is working properly now you can leave the configuration alone but if you start seeing an issue with changes not reflecting properly I would make sure that you have a rebel.xml file for every deployed module (WAR and JAR) applicable to your application (not including third party JARs/framework JARs/libraries)

Reply To: static web content without classpath

$
0
0

I’ve now got it working as expected (hotdeploy WebContent but not Java classes).

The trick was to upgrade to 5.6.3.
http://update.zeroturnaround.com/update-site-archive/update-site-5.6.3.RELEASE/

The last time I attempted to upgrade to the latest 5.x release my license stopped working. I’m using Eclipse Luna so that was some time ago. I’m using the type of license which doesn’t require a license server. I’m happy that the lastest 5.x now supports my license key.

rebel.xml which contains no classpath and a web section similar to:
<web>
<link target=”/”>
<dir name=”${rebel.workspace.path}/my-webapp/WebContent”>
</dir>
</link>
</web>

Thanks,
Geoff

XRebel and JSF (post-redirect-get)

$
0
0

Hello,

I’d like to ask does XRebel work with JSF. I’m trying to profile our JSF application and I’m able to see just GETs. When I click the button, for while I could see the POST, then it disappared and it’s replaced by GETs.

It’s possible to see whole POST-REDIRECT-GET cycle?

Thank you,
David

Reply To: XRebel and JSF (post-redirect-get)

$
0
0

Hi David,

Currently, a redirect would refresh the XRebel toolbar, causing the data to disappear.
Could you open up the XRebel Ninja UI at ANY_CONTEXT/xrebel
It should be a page with only the toolbar.
Now, when you make a redirect request, the data will still be stored in the Ninja UI and you can check out the requests there.

Please let me know if you have any additional questions!

Reply To: JRebel does not detect change in my classes in JBoss Portal server

$
0
0

Hi Colton,

In IntelliJ I have tried both Make Project and Rebuild Project. I see now that I included the wrong rebel.xml file above, the one for this module is:

<?xml version=”1.0″ encoding=”UTF-8″?>
<application xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://www.zeroturnaround.com” xsi:schemaLocation=”http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd“>

<classpath>
<dir name=”D:/projects/git/tui-application/portal/portlets/all/target/classes”>
</dir>
</classpath>

<web>
<link target=”/”>
<dir name=”D:/projects/git/tui-application/portal/portlets/all/src/main/webapp”>
</dir>
</link>
</web>

</application>

The .class file is below the path D:/projects/git/tui-application/portal/portlets/all/target/classes , and I can see that the timestamp of the file is updated when I build the project.

Reply To: IDEA Optimizer Feedback

$
0
0

Running the latest version of the plugin for IDEA 15.0.5 Ultimate on Windows. IDEA is installed using its default settings. When I launch it, the plugin presents me with a screen allowing me to tune options and more. I apply all, and click the button to restart IDEA. Upon restarts, the same screen shows up again.

What gives?

I have disabled UAC entirely, and have tried to run IDEA as an admin many times. Same outcome.

It is also reporting that I am running JDK1.8.0_55 which seems false given that I have set my global SDK to be 1.8.0_77.

JRebel 6.4.2a not properly reloading generic class

$
0
0

JRebel version: 6.4.2a
App server: Tomcat 8.0.29.0
Spring Framework: 4.2.5.RELEASE

We have a generic class roughly defined as follows:

@Configurable
public class Query<T> {

	protected final DetachedCriteria criteria;

	public Query(Class<T> clazz) {
		criteria = DetachedCriteria.forClass(clazz);
	}

	public Query<T> addId(long id) {
		criteria.add(Restrictions.idEq(id));
		return this;
	}
}

And subclasses like this one:

public class UserQuery extends Query<UserEntity> {

	public UserQuery() {
		super(UserEntity.class);
	}

	public UserQuery addUserName(String userName) {
		criteria.add(Restrictions.eq(UserEntity.FIELD_USER_NAME, userName));
		return this;
	}
}

After JRebel reloads the Query class, the criteria field is null and thus all usages of query classes throw a NPE.
I believe this used to work in some previous version of the JRebel and we haven’t touched this code in a long time.

Any help appreciated.
Thanks


Reply To: JRebel 6.4.2a not properly reloading generic class

$
0
0

Hi Sylvain,

I tried setting up a spring application with the sample snippets provided but was unable to replicate the error. I can imagine a lot of it depends how the UserQuery object is wired and used in the application.
Can you give a few details regarding this?

Also a trace level jrebel.log will give a good overview of the application structure and why it might produce null after reload. You can enable this via IDE JRebel settings -> Advanced -> Agent log level or -Drebel.log=trace via command line.
Then reproduce the error and send the log to support@zeroturnaround.com.

Reply To: Error in opening zip file: websphere855-jr-plugin-6.2.0.jar

$
0
0

I can try… What is the newest version supported in NetBeans 7.2.1?

Reply To: Error in opening zip file: websphere855-jr-plugin-6.2.0.jar

$
0
0

Our latest plugin versions require NetBeans 7.4.x or newer.
Whatever version NetBeans allows you to upgrade, is the latest that is supported.

However, even if the plugin can’t be upgraded, you can still use a newer version of jrebel.jar agent.

For that download the latest JRebel standalone from here and extract the jrebel.jar.
Then point NetBeans JRebel plugin to that jrebel.jar from Tools > Options > JRebel > Advanced > Use jrebel.jar from the path specified.

Reply To: Error in opening zip file: websphere855-jr-plugin-6.2.0.jar

$
0
0

I’ve downloaded the standalone version and used it as you specified. This solved the issue. Thanks!

Reply To: Error when calling method with @Transactional (from Deltaspike)

Viewing all 2540 articles
Browse latest View live


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