Results 1 to 9 of 9
- 04-01-2009, 11:39 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 6
- Rep Power
- 0
New to JSP-Netbeans, external tomcat server
Greetings.
I'm very new at JSP developing so my questions are probably a litle bit basic.
I'm developing a dinamic jsp web site for my company (kind of a personal project) to be running on the company's Tomcat Server.
The specifications of the server are the following:
java.vm.version: 1.4.2_04-b05
java.version 1.4.2_04
Tomcat Version: Apache Tomcat/5.0.25
I really could use some help on configuring this whole thing.
First of all, is there a way of configuring this server over netbeans so each time i deploy the aplication it gets deployed on the server? The server is running 24hrs a day so the only thing i need is for netbeans to create the war file and deploy the browser, firefox in my case, calling directly ../externalserver/webpage instead of //localhost/webpage.
I tried to add the server to netbeans but it always asks for CATALINA_HOME wich i think i dont need since it is only needed for installing the server. There is probably another way to do this but i really cant figure it and i'm afraid of crashing the server.
Second of all, what about debugging? is it possible for me monitor what's happening with the application in the server using just the debbuger from netbeans?
- 04-01-2009, 01:39 PM #2
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
i use the eclipse IDE, it let you create severs wich you can start from the IDE(Apache, Tomcat,...)
- 04-01-2009, 01:46 PM #3
Member
- Join Date
- Mar 2009
- Posts
- 6
- Rep Power
- 0
- 04-01-2009, 02:12 PM #4
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
can't you just import an external server in your netbeans set up launch conf(external), an then guide the export to a server-dir(ROOT for example).
The external server conf. file should not be adjusted...i guess ;)
- 04-01-2009, 03:00 PM #5
Member
- Join Date
- Mar 2009
- Posts
- 6
- Rep Power
- 0
- 04-01-2009, 03:28 PM #6
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
maybe this can help:
NetBeans Wiki: AddExternalTomcat
- 04-01-2009, 03:39 PM #7
Member
- Join Date
- Mar 2009
- Posts
- 6
- Rep Power
- 0
That is how i have my local Tomcat server instaled in netbeans. The problem is i don't want netbeans to start the server every time i run the the aplication neither i want it to stop the server every time i close netbeans wich is what happens when things are configured that way. I only need netbeans to create the .war file in the remote server and to launch the browser pointing to the server. And of course, i want to do it using netbeans so i can be able to debug the aplication in both client and server sides.
- 04-01-2009, 03:49 PM #8
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
I don't think its possible to 'debug' an webapp(servlet) on a running remote server.
But my knowledge regarding this topic isn't all that much...sry.
But i do think its possible to export to a remote server...
- 04-01-2009, 06:48 PM #9
Member
- Join Date
- Mar 2009
- Posts
- 6
- Rep Power
- 0
After some more hours of research i finally found the solution for my problem and i'll post it here in case anyone ever needs it:
First of all i found that if Tomcat is installed and running as a service in the remote machine Netbeans wont be able to start or stop it. It will just simply build the "projectname.war" file in the correct folder over the server and deploy the web browser pointing to the servlet running on the remote server. It should be safe to give the url of CATALINA_HOME on the remote server.
About the debug issue. It's possible but only if you have administrator privelegies over the server as you will need to open a port and build a tunnel through the server firewall to connect to that port.
The how to is explained in the following link:
ww .stefanolocati.it/blog/?p=133
I can't post it has a direct link because i'm still missing a few posts to have that privelege. Sorry. :D
I haven't yet tried this solution but the logic seems acceptable. More developments maybe tomorow as i'm done for the day. :cool:
Similar Threads
-
connection of microsoft sql server 2005 with netbeans ide 6.1
By swati.jyoti in forum NetBeansReplies: 7Last Post: 03-17-2012, 10:46 AM -
Reg Tomcat in Itaniumn Server
By ars3181 in forum Advanced JavaReplies: 0Last Post: 11-24-2008, 05:53 AM -
NetBeans IDE 5 server error
By aditya in forum NetBeansReplies: 0Last Post: 10-28-2008, 04:56 AM -
Tomcat Server : Error filterStart
By kasipandian in forum Web FrameworksReplies: 0Last Post: 03-30-2008, 03:50 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks