Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 21-04-2008, 08:44 PM   #1 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Mysore
Posts: 137
Default Java Servlet JBOSS help..!!


Hi,

I have a portal on a JBOSS server. I have a servlet and which was working fine so far. But now I have done some modifications to the servlet which I re-compiled on my local instance of the server, then I copied the class files to the WEB-INF folder. The servlet worked fine with the new modifications on my local server. But when I copy the source file( of the servlet ) with the new modifications to the web server which is on a network, the web server repeatedly brings up only the old copy of the servlet, even though i have copied the new class files to the WEB-INF folder of the server. I tried deleting all the old source files, class files of the servlet from the web server, but stil the servlet work with the old copy. Where does this servlet find its source on the web server even though I have deleted its source ( java file and corresponding class file in WEB-INF folder )?

what needs to be done for this to work with my new copy of the servlet which works fine in my local JBOSS server?

The JBOSS instance on my machine in on WIN XP, while on the server its on LINUX Red Hat,. Does it matter?

Anyway post ur solutions to my prob..
hariharan is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-04-2008, 10:24 AM   #2 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Mumbai
Posts: 365
Default Re: Java Servlet JBOSS help..!!

what is the name of that war folder? is it PROJECTNAME.war?

stop the jboss server and start it using this command
go to bin dir of jboss through terminal and fireup this command
./run.sh -b yourip

on windows run -b yourip
__________________
Dhiraj Thakur
thakur.dheeraj(@)gmail.com
Desi-Tek.com is offline  
Old 22-04-2008, 11:02 AM   #3 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Mysore
Posts: 137
Default Re: Java Servlet JBOSS help..!!

Quote:
Originally Posted by Desi-Tek.com View Post
what is the name of that war folder? is it PROJECTNAME.war?

stop the jboss server and start it using this command
go to bin dir of jboss through terminal and fireup this command
./run.sh -b yourip

on windows run -b yourip


yeah i have my project folder as *.war...


./run.sh -b <ipaddress>

is this wat you meant? wat does this command do..?

should i give my machines' ip address or the web server ip address?

Is it just enough to post the source file ( a java file ) for the servlet in the *.war folder, if i re start the JBOSS server will it automatically compile the java file and place the class file in the WEB-INF folder?

Last edited by hariharan; 22-04-2008 at 11:02 AM. Reason: Automerged Doublepost
hariharan is offline  
Old 22-04-2008, 02:25 PM   #4 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Mumbai
Posts: 365
Default Re: Java Servlet JBOSS help..!!

./run.sh -b yourmachineip publicip

it bind the ip with server other wise you may not be able to access site from other machine
you can also bid ip by modifing server.xml

for more detail read documentation

Regards,
Dheeraj
__________________
Dhiraj Thakur
thakur.dheeraj(@)gmail.com
Desi-Tek.com is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java programming..how can I distribute java program....? Manojap Programming 5 16-05-2009 02:46 PM
java help forever QnA (read only) 4 14-10-2007 06:56 PM
Red Hat scoops up JBoss icecoolz Technology News 3 12-04-2006 10:34 AM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 10:58 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2