malick | hey | 14:14 |
---|---|---|
malick | is this IRC alive | 14:15 |
malick | :-D | 14:15 |
malick | I have java/mysql/tomcat/ubuntu/eclipse related question | 14:15 |
slytherin | malick: which oen exactly? | 14:17 |
malick | well 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 eclipse | 14:21 |
slytherin | malick: 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 problem | 14:23 |
malick | In 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 |
malick | but 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 |
slytherin | malick: Is it created or is it just a copy of teh one in tomcat dir? | 14:25 |
malick | this 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 |
malick | it is created and not a copy of the one in the tomcat dir | 14:26 |
malick | this is a problem because eclipse says | 14:27 |
malick | javax.naming.NameNotFoundException: Name UserDatabase is not bound in this Context SEVERE: Catalina.start: | 14:27 |
malick | LifecycleException: No UserDatabase component found under key UserDatabase ................... | 14:27 |
malick | its using the server.xml in the created and not the server.xml I need I cannot mannually chance the server.xml file | 14:28 |
slytherin | malick: 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!