Re: How to deploy my first War in Tomcat 6?
On 26/11/2009 09:41, Jack Morton wrote: Thanx for replying p :) I'm sorry for multiples posts, is there tools automating/facilitating deployment ? a) for facilating deployment, you can have a look to these links: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html and more with google b) for automating deployment, you can use a Integration Continuous server (like Hudson) that will build your war and deploy it (if the build is OK) with ant or maven on tomcat after every SCM modifications (if you use an SCM for your webapp) or at scheduled datetime. the job of the IC server is to trigger the build and maven or ant will do the deployment... hope this help. S. (Reply to the list please.) In what sense do you mean automating it? If you have a .war file, copying it to the appropriate location on the file system is all you need to do. The Manager app, (also in the docs), supplied with Tomcat provides information and a web UI for uploading and deploying applications. p On Thu, 2009-11-26 at 09:24 +, Pid wrote: On 26/11/2009 09:00, jackm wrote: Hi all, I'm newbie, I installed Tomcat 6 on Ubuntu Karmic, how should I proceed to Deploy my first war ? Best Regards Jack (We got all 3 messages) Have you read the documentation? http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Scheduling tasks in Tomcat
Hi, if it is possible, you could use Spring and the scheduling Quartz implementation check out this http://static.springframework.org/spring/docs/2.5.x/reference/scheduling.html regards supareno Hi I would suggest u to use the Listener tag instead of Load on startup listener listener-class org.quartz.ee.servlet.QuartzInitializerListener /listener-class /listener As per Quartz Enterprise Job Scheduler API (1.6.2) org.quartz.ee.servlet.QuartzInitializerServlet is deprecated with regards Karthik -Original Message- From: Aden Jones [mailto:adenjo...@gmail.com] Sent: Tuesday, April 28, 2009 9:35 AM To: users@tomcat.apache.org Subject: RE: Scheduling tasks in Tomcat mgainty wrote: javac .\org\quartz\ee\servlet\QuartzInitializerServlet.java place .\org\quartz\ee\servlet\QuartzInitializerServlet.class to WEB-INF/classes Okay so QuatzInitializerServlet.java is the class that I create for scheduling the events. your web.xml will need to associate the Servlet class with url-pattern as in this configuration: servlet servlet-nameServlet/servlet-name servlet-classorg.quartz.ee.servlet.QuartzInitializerServlet/servlet-class It would be okay I suppose if I use my existing structure and reference servlet-classcom.timekeeper.util.QuartzInitializerServlet/servlet-class ? load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameServlet/servlet-name url-pattern*/url-pattern Why would I need to add a url pattern if it only needs to be run on startup? /servlet-mapping you will also need an startup display page index.jsp and configure index.jsp as welcome-file e.g. welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list HTH Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 27 Apr 2009 17:52:16 -0700 From: adenjo...@gmail.com To: users@tomcat.apache.org Subject: Re: Scheduling tasks in Tomcat I will probably use quartz to schedule the actual task and add it to my webapp as my teacher would prefer that the servlet contains everything. What I don't understand is how or if (after I create my class that contains the scheduling code) Tomcat actually runs the code. Do I need to add something to web.xml to tell Tomcat to run it. Does Tomcat run every class in the servlet automatically. -- View this message in context: http://www.nabble.com/Scheduling-tasks-in-Tomcat-tp23251939p23268143.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Rediscover Hotmail®: Now available on your iPhone or BlackBerry http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile2_042009 -- View this message in context: http://www.nabble.com/Scheduling-tasks-in-Tomcat-tp23251939p23269777.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr
clustering error
hello, we 're trying to do some tomcat clustering but i think that our implementation is not really good we have 2 tomcats on the same machine and we configured the clustering (same multicast port and ip and differents tcplistenport) the problem is that we have a lots of errors in each tomcat log (multicast error) so my question is: is it possible to test the clusterng with two tomcats on the same machine? regards supareno - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't use J2EE libraries in Eclipse
Mighty, you need to add to your classpath project the servlet.api to compile servlet tomcat6.0.x/lib/servlet-api.api (right click on the projet - build path/configure build path choose librairy/ add external jar) in glassfish v2, it is in glassfish/lib/javaee.jar now with javaee5, i'm not sure that is possible to download the ee sdk separeted from glassfish it was possible with j2ee 1.4 hope this help supareno Hi, I am working on Mac OS X. I have the latest version of Tomcat, and Eclipse Europa. Mac OS X did not come with J2EE. I downloaded J2EE with GlassFish from Sun. Set it up by running the setup shell script. Unfortunately the directory structure is very different now, I am guessing the J2EE is inside GlassFish somewhere. I need to set it up in Eclipse to be able to compile Servlets and the like. and I cannot find the right Jars. 1. Could somebody point me to where the jars are now within GlassFish so I can add them to Eclipse? 2. Is there a way to install J2EE without this GlassFish stuff, just alongside the J2SE? Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Service
motit, will it possible to tomcat to compile jsps without a jdk? tomcat and a jre has ever been discussed here: http://www.mail-archive.com/users@tomcat.apache.org/msg50300.html hope this help supareno Hi, According to Tomcat bin/service.bat file, the environment variable JAVA_HOME needs to be existed, otherwise the service is not installed. The problem is that I want to use only the JAVA JRE installation (1.6.0, update 12) on that machine. I manually add the bin/server folder to that JRE (it comes only with the Client folder :-( ( As known, Tomcat required only the JRE). I tried to change all the JAVA_HOME references in the server.bat to JRE_HOME (as required by Tomcat in order to run with only the JRE), and even added --JavaHome to be %JRE_HOME%. I haven't seen any problems with the changes I did: the service was installed successfully, everything seems to run OK. But I don't know if there might be problems with what I did. There is a line in the service.bat: set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll I changed it to be set PR_JVM=%JRE_HOME%\bin\server\jvm.dll. I don't know if I use --JavaHome %JRE_HOME% - then what is the value of %JAVA_HOME%\jre\bin\server\jvm.dll ? I don't have such a folder... Does tomcat6.exe uses JAVA_HOME? Can it leave with JRE_HOME? Will my changes work? Thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Service
Caldarale, Charles R a écrit : From: supareno [mailto:reno.rkc...@free.fr] Subject: Re: Tomcat Service will it possible to tomcat to compile jsps without a jdk? Tomcat does not need a JDK to compile JSPs (and it's been that way a long time). sorry, i apologize - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Lambda Probe is back
Mark , the demo didn't work :-( http://demo.lambdaprobe.org/probe/index.htm : internal server error supareno Christopher Schultz wrote: Mark, Mark Thomas wrote: I have been mentioning Lambdaprobe and its disappearance at ApacheCon and one of the attendees pointed out it is back. Woo hoo! +1 Any word on what the problem was? No idea. Sorry. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat and Shark TOgether
hello everyone, just a mail to know if anybody here is using Shark as BPM workflow?? i should make test on it and i would like to have any returns from users if anyone exists ! bye supareno - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Controlling the order of classloading.
hi, i did some research and i found this http://mail-archives.apache.org/mod_mbox/struts-user/200606.mbox/[EMAIL PROTECTED] and this http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/parsers/SAXParserFactory.html i don't know if it could help you but i learn something new: we can configure the SAXParserFactory in java :-) bye From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Controlling the order of classloading. But is there not a load-at-startup tag or something like it in a web.xml file, with a numeric value for that purpose ? It specifies that the designated servlet be loaded during startup, but does not have anything to do with the search order for jars that contain conflicting classes. One thing to do is to prune the jars so there's only one copy of the class in question (don't know if that's really feasible here). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: config problem
Eric, thanks... i thought to this solution yesterday afternoon and i gave it to the person who's facing to the problem. i don't know if it works today i will see on monday! thanks again Assuming you are running private IP's in your internal network and a public IP on the external network, you can create a dns such as mynetwork.mydomain.com which will resolve to the private IP when accessed inside the network and public IP when accessed externally. use this name as the hostname in server.xml Eric -Original Message- From: [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Date: Wed, 27 Aug 2008 11:20:07 +0200 Subject: config problem hello, we are facing a problem! config: jdk 1.4 tomcat 4 the server is configured to be accessed by an network internal IP but it is not working with an external IP . i did the config in the server.xml but it is not working [...] Host name=my.network.internal.ip debug=0 appBase=/usr/tomcat/webapps unpackWARs=true autoDeploy=true Context path= docBase=gedai debug=1/ Aliasmy.external.ip/Alias Aliasmy.network.internal.ip/Alias Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=gedai_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host [...] when i try to access to the IP, i've got an error 500 - no context configured... what did i do wrong?? supareno - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Add yourself to mobchannel.com
Arun a écrit : Guys, I am running the site (mobchannel.com) which aggregates all the blogs in www. It does a clean update of all blogs on a per day basis and categorizes them in so many ways This is the one BIG site which can give you much more capabilities in the near future. If you find the site interesting, please add a profile and have fun. You can check for updates to the site almost on a weekly basis. Hope we all together can make it big. and what is your ant problem? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml pbm
Chuck, my Context element is in the proper place!! the thing that i don't understand is: why it is working with easyeclipse (when i start my webapp with ee, there is no problem) and why it doesn't work when i try to create the war with a build.xml ?? From: supareno [mailto:[EMAIL PROTECTED] Subject: Re: web.xml pbm so i tried with a context (like the example below) ?xml version=1.0 encoding=UTF-8? Context path= docBase= /Context If your Context element is in the proper place (META-INF/context.xml of your webapp), then neither the path nor the docBase attributes are allowed. Even if your Context element is in server.xml (and none should be), a docBase attribute of is *never* correct - that is likely contributing to your problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml pbm
i found the problem !! i tried a war without a context and everything is working find (but i didn't have a db connection !!) so i tried with a context (like the example below) ?xml version=1.0 encoding=UTF-8? Context path= reloadable=true docBase= Resource name=jdbc/library auth=Container type=javax.sql.DataSource username=javadude password=javadude driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mydb?autoReconnect=true/ /Context i although set a resource in the web.xml resource-ref descriptionLibrary Connection/description res-ref-namejdbc/library/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref and nothing worked !! it listed the webappas folder i may forget to say that it is a struts app ! i don't know why it is not working. On Fri, Apr 4, 2008 at 4:49 AM, supareno [EMAIL PROTECTED] wrote: i write a build.xml file to build and deploy my war. (compilation OK and deployment on the server OK) but, when i try to start it, it starts but when i try to access to it, i'm only seeing the list of the apps prrsents in the webapps folder ! That suggests to me that your basic config is wrong -- like, you have an overlapped appBase/docBase somewhere. You might want to post your Host entries from server.xml and the context.xml of your app. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web.xml pbm
hello, my config is: tomcat 5.5.9 jdk 6 linux ubuntu eclipse 3.2 ant 1.7.0 i write a build.xml file to build and deploy my war. (compilation OK and deployment on the server OK) but, when i try to start it, it starts but when i try to access to it, i'm only seeing the list of the apps prrsents in the webapps folder ! i installed lambda probe on tomcat to see what's going on and: web.xml is not load. the log file is: 4 avr. 2008 13:33:01 org.apache.catalina.startup.ContextConfig applicationWebConfig INFO: Le fichier web.xml de l'application est absent, utilisation des paramêtres par défaut StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myapp] it's in french so i will translate the message ( :-) ): application web.xml file is not present, using default parameters StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myapp] i don't understand because the web.xml is in the war file !! the web.xml file looks like this one: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd' web-app servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping taglib !-- != taglibs... -- /taglib !-- resource -- resource-ref descriptiondbpool/description res-ref-namejdbc/library/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app the context.xml is in the META-INF folder and probe can see it but cannot see the web.xml file !!! i dont understand why i cannot deploy this application !!! what i did wrong??? regards - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml pbm
the web.xml is in the WEB-INF folder when i deploy the war file , the log write this stuff 4 avr. 2008 14:28:33 org.apache.catalina.core.NamingContextListener lifecycleEvent GRAVE: La création du context de nommage (naming context) a échoué : javax.naming.NamingException: Le Contexte est en lecture seule it's always in french so i will translate again: failed to create the naming context: javax.naming.NamingException: the context is read only and where is this web.xml file stored? It has to be in your webapp's WEB-INF (note all CAPS) folder per the servlet specification. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml pbm
David Smith a écrit : That error is different from what you originally posted and implies your webapp is trying to modify the tomcat supplied JNDI name context. That context which houses tomcat container supplied stuff like database pools is read only. ... But that's a different post. Back to the original error -- do you still get errors that it couldn't find web.xml? always the same ! when i use lambda probe, i could see the context with the 'context descriptor' link but i cannot see the 'deployment descriptor'... when i deploy with ant, log is: 4 avr. 2008 14:47:44 org.apache.catalina.startup.HostConfig deployWAR INFO: Déploiement de l'archive myapp.war de l'application web (translation: en = Deploy myapp.war archive from web application) 4 avr. 2008 14:47:44 org.apache.catalina.startup.ContextConfig applicationWebConfig INFO: Le fichier web.xml de l'application est absent, utilisation des paramêtres par défaut StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myapp] (translation: en = the web.xml file is not present, using default parameters) 4 avr. 2008 14:47:44 org.apache.catalina.core.NamingContextListener lifecycleEvent GRAVE: La création du context de nommage (naming context) a échoué : javax.naming.NamingException: Le Contexte est en lecture seule (translation: en = failed on naming context creation: javax.naming.NamingException: the context is read only) --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem installing SSL om Debian
Neha, it is more a Linux question than a tomcat question :-) are you sure to have the privileges to run keytool?? happy new year supareno Hi! i have installed Tomcat 5.5 on debian etch. Also installation on APR is working correctly. i want to install and configure SSL outputs are #java -version java version 1.5.0_10 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing) # /usr/lib/jdk1.5.0_10/bin/keytool Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object i read online on mailing lists but couldnt get of this problem.. kindly help neha Meet people who discuss and share your passions. Go to http://in.promos.yahoo.com/groups - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]