Not able to deploy netBeans visual web application on remote tomcat server.

Hi,

I am new to Studio creator and Netbeans and facing a problem. If I develop an application using visual web pack and try to deploy on other tomcat server then it's giving error. If I deploy simple web application with text boxes and labels only then it is working properly but if I use table or other JSF components and do database connection then it is giving error on production server (deployment of .war file from /dist folder to the production server). I tried to add JSF .jar files to WEB-INF/lib directory alongwith microsoft connection drivers .jar files but still getting error.

By seeing the class structure of the web application deployed on bundelled tomcat and production tomcat, I can not find the difference and not getting what is going wrong....

Production server is on remote PC. so not able to add it through server manager...

pls guide me...so that I can directly deploy project .war file from development server to production server...

Regards,

Dabbu Bhai.

[1024 byte] By [Dabbu_Bhaia] at [2007-11-26 12:20:38]
# 1

Hi Dabbu,

Please check this out:

http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/2upd ate1/deploy/howtodeploy/deploy_tomcat.html

In NetBeans Visual Web Pack 5.5,

You are not able to add a remote tomcat the Servers in Runtime Window, because the plugin doesn't support remote deployment.

You got to export the WAR file and manually deploy it.

HTH,

Sakthi

sakthivel.gopala at 2007-7-7 15:11:01 > top of Java-index,Archived Forums,Socket Programming...
# 2
even I am facing the same problemCan anyone please explain in details how to deploy an application created in Netbeans web pack to another Tomcat container(apart from the bundled one)
Dr.jackala at 2007-7-7 15:11:01 > top of Java-index,Archived Forums,Socket Programming...
# 3

(1) In JSC/NB, right Click your project node and export it as a .war file

(2) Copy the .war file manually into Tomcat app area: eg., C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps

(3) Stop & start Tomcat, the .war will automatically expand into a project folder

(4) Copy the appropriate jdbc driver/connector (.jar file) into C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib

(5) Download Copy jstl.jar and standard.jar from jakarta projects if you do not have them already

(6) Copy these two files into C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib

(7) Locate server.xml in C:\Program Files (x86)\Apache Software Foundation\Tomcat 5.5\conf

(8) Paste the following and change the names as appropriate

<Context

path="/MySqlTest2">

<Resource

auth="Container"

description="Creator generated DataSource Reference"

name="jdbc/MySql1"

type="javax.sql.DataSource"

password="adminadmin"

driverClassName="org.gjt.mm.mysql.Driver"

maxIdle="2"

maxWait="20000"

validationQuery="select * from testtable"

username="root"

url="jdbc:mysql://localhost/Test"

maxActive="4"/>

</Context>

MySqlTest2 = Project name

MySql1 = Datasource name

Test = Database name

If you are not familiar with the above, you may use the Tomcat.admin screen to change the datasource details and these could be found in JSC/NB server files. All these details are displayed on a dialogue box when you attempt to export your datasource.

Mary

marysama at 2007-7-7 15:11:01 > top of Java-index,Archived Forums,Socket Programming...