• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Jboss4.2 with Eclipse 3.3 - Page does not refresh

 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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

Thanks,
Tauri
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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� ]
 
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic