Help!

Problem Data binding on external Tomcat/6.0.10 under Linux

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Java RSS
Next:  error display in x  
Author Message
white



Joined: Apr 26, 2007
Posts: 2



PostPosted: Fri Apr 27, 2007 4:09 am    Post subject: Problem Data binding on external Tomcat/6.0.10 under Linux

Cannot display data binding when deploying on external Apache Tomcat/6.0.10 under Linux

Could you help me please..

I develop my project using :
- Netbeans IDE 5.5
- Visual Web Pack 5.5
- Bundled Tomcat 5.5.17
- JDK 1.6.0
- JRE 1.6.0
- Windows XP Profesional SP 2
- Oracle 10g and Ojdbc14.jar as the driver

When i run my project from netbeans IDE, everything work fine. When i deploy on external Apache Tomcat/6.0.10 under windows XP, its run fine for all too.
But, why when i try to deploy on linux using the same version of Apache Tomcat some errors was occur;

HTTP Status 500 -
type Status report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
Apache Tomcat/6.0.10


This error occur when the object is bind to data, and everything is ok if the object is not bind to data. The question is, Why on linux the Apache Tomcat/6.0.10 cannot display object with bind to data?

For additional information:
- Iam using External Apache Tomcat/6.0.10, JVM Version 1.6.0-b105, JVM Vendor Sun Microsystems Inc., under Linux version 2.6.9-42.ELsmp.
- I didnt change anything (*.xml file) on tomcat when i was deploy. I have just copying ojdbc14.jar into lib folder on tomcat folder.

Thanks so much..
Back to top
white



Joined: Apr 26, 2007
Posts: 2



PostPosted: Sun Apr 29, 2007 10:17 pm    Post subject: Do not using SERVER NAME but IP ADDRESS

To solve the problem, please follow this step:

1. Dont use the SERVER NAME but IP ADDRESS to connect the database server, because LINUX unknown the computer by SERVER NAME.

2. If you still get an error, please check at the folder /APACHE-TOMCAT-6.0.10/CONF/CATALINA/LOCALHOST/YOURPROJECT.XML, edit the name server ->

<Resource auth="Container" driverClassName="oracle.jdbc.driver.OracleDriver" maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/dataSource3" password="ERP" type="javax.sql.DataSource" url="jdbc:oracle:thin:@MY_SERVER:1521:xe" username="erp"/>


and change with IP ADRESS, like this:


<Resource auth="Container" driverClassName="oracle.jdbc.driver.OracleDriver" maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/dataSource3" password="ERP" type="javax.sql.DataSource" url="jdbc:oracle:thin:@10.1.1.10:1521:xe" username="erp"/>


Thanks so much
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Java All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum