Re: Why we need two servers (httpd and tomcat)
George Sexton wrote: You really don't need to have Apache httpd running. Vinay didn't talk about Apache as HTTP ;-) It could have been LightHTTPd or something else :-P I think Vinay should know that Tomcat embeds an HTTP server. -- Chef de projet chez Vectoris Phone: +261 33 11 207 36 System: xUbuntu 8.10 with almost all from package install http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: not using the port number in the address???
nicumarius wrote: what should I do to not use port number when writting the address of a page on the Apache server? Make your web server listen to port #80. It's the default HTTP port. -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby System: xUbuntu 8.10 with almost all from package install - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: not using the port number in the address???
David Smith wrote: Since you haven't let us know anything about your server setup, we can only suggest very general things. Port 80 is the well known port for HTTP protocol and the one your browser assumes when you don't type it in the address bar. By the way, someone playing with Tomcat should know that... that's the basis. Dont misunderstand me, I dont say he's dumb: I just wonder how could someone be in that situation (messing with web server setup and not knowing such basical theory). -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby System: xUbuntu 8.10 with almost all from package install - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Recommendation # webapps
Pieter Temmerman wrote: The most logical answer would be; Use one Tomcat per webapp, whenever possible. However, the administration overhead is so much bigger than using a single Tomcat. And how if each webapp uses a specificity of a special version of Tomcat? If that usecase is not possible, then one Tomcat for all would be my answer. -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby System: xUbuntu 8.10 with almost all from package install - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: hi
Kusuma Pabba wrote: unsubscribe me from this list Do it yourself ;-) -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat only query localhost database
Mihamina Rakotomandimby (R12y) wrote: DriverManager.getConnection(jdbc:mysql://localhost/baseName, login, password); There, I see some hardcoded localhost. Might it be the nasty evil code? -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat only query localhost database
Mihamina Rakotomandimby (R12y) wrote: Mihamina Rakotomandimby (R12y) wrote: DriverManager.getConnection(jdbc:mysql://localhost/baseName, login, password); There, I see some hardcoded localhost. Might it be the nasty evil code? Nope, it's in a catch bloc, the app finds the database I mean, it finds the localhost database I dont want it to find... -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat only query localhost database
Mihamina Rakotomandimby (R12y) wrote: DriverManager.getConnection(jdbc:mysql://localhost/baseName, login, password); There, I see some hardcoded localhost. Might it be the nasty evil code? Nope, it's in a catch bloc, the app finds the database and there's no (localhost,baseName,login,password) on the area. -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat only query localhost database
Gregor Schneider wrote: Sorry, but you're providing too few informations. - please post the file /etc/tomcat6/Catalina/localhost/webappName.xml (masquerade the user-id / password!) ?xml version=1.0 encoding=UTF-8? Context path=/norpassWeb reloadable=true docBase=norpassWeb Resource name=jdbc/norpassDBPool auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=100 maxWait=3 removeAbandoned=true removeAbandonedTimeout=20 logAbandoned=true autoCommit=true username= password= driverClassName=org.gjt.mm.mysql.Driver url=jdbc:mysql://77.88.777.999:3306/dbname?autoReconnect=true / /Context - please post the piece of code where the said webapp tries to create the database-connection. (A more readable version is attached) public static Connection getConnection() throws SQLException { try { if (null == s_dataSource) { try { Context envCtx = (Context) new InitialContext(); if(envCtx == null ) throw new Exception(ERROR - No Context); s_dataSource = (DataSource) envCtx.lookup(java:comp/env/jdbc/norpassDBPool); } catch (NamingException e) { e.printStackTrace(); throw e; } } return s_dataSource.getConnection(); } catch(Exception e) { try { Class.forName(org.gjt.mm.mysql.Driver); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } Connection con = DriverManager.getConnection(jdbc:mysql://localhost/baseName, login, password); con.setAutoCommit(false); return con; } } -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby public static Connection getConnection() throws SQLException { try { if (null == s_dataSource) { try { Context envCtx = (Context) new InitialContext(); if(envCtx == null ) throw new Exception(ERROR - No Context); s_dataSource = (DataSource) envCtx.lookup(java:comp/env/jdbc/norpassDBPool); } catch (NamingException e) { e.printStackTrace(); throw e; } } return s_dataSource.getConnection(); } catch(Exception e) { try { Class.forName(org.gjt.mm.mysql.Driver); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } Connection con = DriverManager.getConnection(jdbc:mysql://localhost/baseName, login, password); con.setAutoCommit(false); return con; } }- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat only query localhost database
After further investigations: If I install a tomcat6 windows binary, and edit the Catalina/localhost/webappName.xml file in order to use a different database host, it's OK: the Windows tomcat6 go and use the other database. So, my deduction is the Linux tomcat6 has a setting that avoid reading Catalina/localhost/webappName.xml Any hints? I begin to cry :-) -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat only query localhost database
Mihamina Rakotomandimby wrote: Any help? I suspect there is a system-wide configuration that tells not to consider the webapp-specific configuration, but I dont find where... -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
public IPadresse is non-local
Hi, I have a test box on my LAN. The internet connexion is shared by a router (linksys box) I test my application locally thourgh http://localhost;. But when testing, my application displays: RemoteException occurred in server thread; nested exception is: java.rmi.AccessException: Registry.Registry.bind disallowed; origin /public_ip_adress is non-local host rmiregistry is just launched and it runs on 1099 The router already NATs to the test box I found this: http://www.coderanch.com/t/209942/Distributed-Java/java/RMI-app-behind-NAT-firewall I use ubuntu packaged Tomcat 6. I already hacked /etc/default/tomcat6 [...] JAVA_OPTS=-Djava.awt.headless=true -Xmx512M \ -Djava.rmi.server.hostname=public_ip_adress TOMCAT6_SECURITY=no [...] No more way? -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: public IPadresse is non-local
Mihamina Rakotomandimby (R12y) wrote: Hi, I have a test box on my LAN. The internet connexion is shared by a router (linksys box) Reading one of the last posts of this: http://www.generation-nt.com/reponses/rmi-probleme-de-creation-d-un-serveur-sous-linux-ubuntu-entraide-59447.html?page=3#reponse It has to do with RMI plying with name resolution...: My take on the problem is as follows: The java rmi registry gets a Naming.lookup request, it resolves the request and returns the ip to the machine running the requested service Which seem to tell RMI loooks up oninternet and get back, but through the public adress. how to avoid that? -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: public IPadresse is non-local
Mihamina Rakotomandimby (R12y) wrote: I have a test box on my LAN. The internet connexion is shared by a router (linksys box) Reading one of the last posts of this: http://www.generation-nt.com/reponses/rmi-probleme-de-creation-d-un-serveur-sous-linux-ubuntu-entraide-59447.html?page=3#reponse It has to do with RMI plying with name resolution...: Well, it was about a network configuration issue and an unclean tomcat6 installation. On a clean install and a properly configured network, it works. -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
unwar and unjar an application
Hi, A developer gave me just a .war file to deploy on a tomcat. I read [w|j]ar files are just zipped. The .war contains some .jar... I would like to explode all the .war (and the contained jars) and have the full code source. I could do it manually. But then there are two questions: - How to jar and war the exploded code back (to get it all archived it it was)? - if I unarchive some .jar, they dont unarchive in a subdir but directly in the current dir. How to manage that (when unarchiving _and_ re-archiving)? Well, the developper used some environment, I want to - put the code under SVN - edit it with Emacs/JDE That's why I need to get it all clear. Thank you for any advice. -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unwar and unjar an application
Kirk True wrote: A developer gave me just a .war file to deploy on a tomcat. I read [w|j]ar files are just zipped. The .war contains some .jar... I would like to explode all the .war (and the contained jars) and have the full code source. I could do it manually. Are you sure that the WAR and its contained JARs actually have source code? They don't by default (and I've never seen one that does)... To deplay the application, they usually put the WAR into the webapp directory and they it runs: I concluded the source code is in there. In case the war dont contain the source code: - Where is the application code? - Why do they need to upload that big file (1.1Mo big in my case)? But then there are two questions: - How to jar and war the exploded code back (to get it all archived it it was)? - if I unarchive some .jar, they dont unarchive in a subdir but directly in the current dir. How to manage that (when unarchiving _and_ re-archiving)? Well, the developper used some environment, I want to - put the code under SVN - edit it with Emacs/JDE These aren't really Tomcat-specific questions at all :( I'd advise taking each question and finding its answer via your favorite search engine. The last section of my post was to explain the goal, so that people could understand my request. Obviously I did not expect some indication about that. -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat 6, ubuntu, mysql connection
Hi all, An external developper sent me a war file to be put in webapps/. Ok, the war was extracted and so on. But that application has toconnect to mysql. My system is Ubuntu 8.10 64-bit, packages only. I have installed (some might be useless) openjdk-6 tomcat-6 What should I put in the server.xml file in order to have the application connection to mySQL? I have all the rights on the mySQL DB server, I know the database to be used. It's my first time with tomcat and I'm not so used with Java (but it's coming... ;)). -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org