aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss4.2 with Eclipse 3.3 - Page does not refresh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss4.2 with Eclipse 3.3 - Page does not refresh" Watch "Jboss4.2 with Eclipse 3.3 - Page does not refresh" New topic
Author

Jboss4.2 with Eclipse 3.3 - Page does not refresh

Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Hi

Im using Jboss4.2 in Eclipse3.3 for my development. When I try to refresh my page it doesnt refresh. Even after restarting the server and restarting the machine, there was the same old page thats appearing.

I get the same error message even after clearing the error.

The reason I thought is that , Eclipse is storing the old Ear file in some location after the first build and it is using the same forever without recreating the new one.


Please help me on this.

Thanks in advance.

Tauri.


A Moment's insight is sometimes worth a Life's experience.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Did you try flushing the browser's cache? Most of the time this does it for me.

Also, to completely clean out the server, stop the server and remove the server/xxx/data, server/xxx/log, server/xxx/work and server/xxx/tmp directories.


JBoss In Action
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Peter, Thanks for responding.

Yeah I did flush out my cache and deleted data,log and work from my Jboss. It did not work.

Is there any way that we can write a Context xml file as we do in tomcat to manually describe the Project location and build location ?

Thanks.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

To define an alternate deployment location, edit the URLlist attribute in the last mbean in the server/xxx/conf/jboss-service.xml file.
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Hi

This didnt work either..still searching for a solution.

Thanks,
Tauri
Sondre Kval�
Greenhorn

Joined: Aug 14, 2008
Posts: 8
Hi Tauri!

You should look at this article on the JBoss Wiki: JBoss Wiki: Using context.xml

Alas, I suspect that it will not help you much. You could check the settings for the JSP servlet to see if the "checkInterval" has been set to a to high value.
Check the file (assuming your using the "default" server) JBOSS_HOME/server/default/deploy/jboss-web.deployer/META-INF/web.xml

Look at the comments there to find appropiate settings for your system. For production systems it is recommended to turn of JSP file checking as it will increase performance, but for development that would make the server useless.
[ August 14, 2008: Message edited by: Sondre Kval� ]
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Hi Thanks again.

I have the following parameters for my jsp servlet.

Theres no check interval param specified in the configuration, so I assume its '0' by default.

Please let me know if Im missing out anything.

Sondre Kval�
Greenhorn

Joined: Aug 14, 2008
Posts: 8
You could try settting the "development" to true and "modificationTestInterval" to 0. Setting it to 0 means that the JSP will be recompiled every time it is being accessed.

Ex:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
...
<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>modificationTestInterval</param-name>
<param-value>0</param-value>
</init-param>
...
</servlet>

Note: I have previously spent a lot of time figuring out why JBoss doesn't show changes to my JSP only to find out that I'm checking out the wrong URL.

You can also find set the "keepgenerated" attribute on the jsp servlet to true to check the be able to see the java classes generated by the JSP compiler. Check the Tomcat Jasper How-to for more information regarding configuring the Jasper/JSP servlet.
[ August 14, 2008: Message edited by: Sondre Kval� ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss4.2 with Eclipse 3.3 - Page does not refresh
 
Similar Threads
Eclipse server(jboss) instance status
jsp not reflecting changes
Error creating form bean of class
How to refresh html page?(urgent)
Internet Explorer Problem