/srv/irclogs.ubuntu.com/2008/07/16/#ubuntu-java.txt

malickhey14:14
malickis this IRC alive14:15
malick:-D14:15
malickI have java/mysql/tomcat/ubuntu/eclipse related question14:15
slytherinmalick: which oen exactly?14:17
malickwell I'm trying to setup a tomcat5.5 server I have installed a mySQL database locally named it metware installed tomcat5.5 I've placed the  mysql-connector-java-5.0.5-bin.jar in /usr/local/tomcat/common/lib upgraded eclipse to version3.4 installed J2ee and webtools and tried to install the tomcat server in eclipse14:21
slytherinmalick: Ordinarily this is not the right channel to discuss this issue. But since theer isn't much traffic right now, go ahead, tell me your exact problem14:23
malickIn eclipse I try to start the Server with File -> New -> Server -> Server -> Next -> and use this info Server host name: localhost server type: Tomcat5.5 Server Server runtime environment: Apache Tomcat v5.5 If I Finish I have this ´╗┐Tomcat v5.5 Server at localhost state stopped  and the server info says Tomcat admin port: 8005 HTTP: 8180 AJP: 8009 But I need to chance the server.xml so it links to the MySQL database and access this db with username 14:23
malickbut ok so each time I'm starting a server in eclipse the sever.xml file is created in workspace/Servers/Tomcat v5.5 Server at localhost/14:25
slytherinmalick: Is it created or is it just a copy of teh one in tomcat dir?14:25
malickthis server.xml file needs for example: <!-- Global JNDI resources -->  <GlobalNamingResources> <Resource name="jdbc/metware" auth="Container" type="javax.sql.DataSource"driverClassName="com.mysql.jdbc.Driver"            maxActive="100" maxIdle="30" maxWait="10000" sername="juser" password="verysecret"14:26
malick                          url="jdbc:mysql://localhost:3306/mydatabase"/> </GlobalNamingResources>14:26
malickit is created and not a copy of the one in the tomcat dir14:26
malickthis is a problem because eclipse says14:27
malickjavax.naming.NameNotFoundException: Name UserDatabase is not bound in this Context SEVERE: Catalina.start:14:27
malickLifecycleException:  No UserDatabase component found under key UserDatabase ...................14:27
malickits using the server.xml in the created and not the server.xml I need I cannot mannually chance the server.xml file14:28
slytherinmalick: Well, as of now I don't have setup similar to yours. It is best to ask on eclipse forum as this doesn't look anything Ubuntu specific.14:28

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!