RE: Redirection
Mmm, this property is usefull when I access at a concrete web application. I have several web application, however, when I want to access to http://www.grupmicros.com, I want that appears the welcome-file of my "welcome-application". Any help will be appreciate a lot. Thanks for all. Radcliffe, William H. wrote: > > Have you tried adding > > > > main_page.html > > > to your application's web.xml file? > > > -- Bill > > -Original Message- > From: jeusdi [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2008 4:28 AM > To: users@tomcat.apache.org > Subject: Redirection > > > Hello list. > > Actually, when I want to access to the main page of my web > application, > I write ip/directory1/directory2/main_page.html > > I would need that when I write the url--> http://ip, directly shows the > main_page file, in order when I publish the web application > http://www.grupmicros.com redirects to main_page.html. > > Thanks for all in advanced. > -- > View this message in context: > http://www.nabble.com/Redirection-tp18585561p18585561.html > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > - > 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] > > > -- View this message in context: http://www.nabble.com/Redirection-tp18585561p18605995.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirection
Hello list. Actually, when I want to access to the main page of my web application, I write ip/directory1/directory2/main_page.html I would need that when I write the url--> http://ip, directly shows the main_page file, in order when I publish the web application http://www.grupmicros.com redirects to main_page.html. Thanks for all in advanced. -- View this message in context: http://www.nabble.com/Redirection-tp18585561p18585561.html Sent from the Tomcat - User mailing list archive at Nabble.com. - 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: docBase application directory
[EMAIL PROTECTED]:/usr/local/tomcat/webapps$ ls web_gm conf content css dtd img index.htm js META-INF tlds WEB-INF [EMAIL PROTECTED]:/usr/local/tomcat/webapps$ ls web_gm/* web_gm/index.htm web_gm/conf: log4j.properties web_gm/content: admin current errors web_gm/css: elements.css estructura.css gmsoft.css NiftyCorners web_gm/dtd: web_gm/img: background_posttittle.png pageheader_background.png web_gm/js: NiftyCorners web_gm/META-INF: context.xml MANIFEST.MF web_gm/tlds: web_gm/WEB-INF: classes lib web.xml Caldarale, Charles R wrote: > >> From: jeusdi [mailto:[EMAIL PROTECTED] >> Subject: docBase application directory >> >> META-INF/context.xml--> >> >> > workDir="web_gm/work"> >> > > If you're using any reasonably recent version of Tomcat (you didn't > bother to tell us), neither the path nor the docBase attribute are > allowed in the element when it's in META-INF/context.xml. > Remove those, and then let's work on your real problem. > > What is the deployed directory structure of your webapp? (Not > interested in what shows up in your IDE - we need to look at reality.) > > - 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] > > > -- View this message in context: http://www.nabble.com/docBase-application-directory-tf4293850.html#a12223923 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
docBase application directory
Hello forum, As you can see in http://i16.photobucket.com/albums/b45/jeusdi/doubt.png , from a CSS file I refer to /img/pageheader_background.png, but when I load the HTML page, the image isn't loaded. So, I believe tomcat doesn't found the image: CSS file is under css folder and the image is under img folder. I don't know why Tomcat doesn't found this image? META-INF/context.xml--> I believed that docBase tell to tomcat that "/" of the web application deployed is "$docBase". So, if in my CSS file I write "/img/file.png" implies that tomcat searches file under $CATALINA_HOME/webapps/web_gm/img folder. Can you help me please? I want to refer to my resources using "/img/...", I don't want to use "../../img/...". Thanks for all in advanced. -- View this message in context: http://www.nabble.com/docBase-application-directory-tf4293850.html#a12223169 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I'm in a mess with Tomcat 5.5
I've installed Tomcat 5.5 into my Ubuntu + sun-java-1.5, tomcat5.5-webapps and tomcat5.5-admin. I'm in a mess because the structure of directories has changed. For example: *tomcat5.5-webapps package installs webapps into /usr/share/tomcat5.5-webapps, but tomcat5.5 is in /usr/share/tomcat5.5 (symbolic link to /var/lib/tomcat5.5 !!). I don't know how on earth tomcat5.5 can find these webapps? *Other question is when I deploy a single war file correctly, it is deployed into /var/lib/tomcat5.5/webapps As you can see bellow (executing a "ls -l"): /usr/share/tomcat5.5/: ... bin ... common ... conf -> /var/lib/tomcat5.5/conf ... doc -> ../doc/tomcat5.5 ... logs -> /var/lib/tomcat5.5/logs ... server ... shared -> /var/lib/tomcat5.5/shared ... temp -> /var/lib/tomcat5.5/temp ... work -> /var/lib/tomcat5.5/work /var/lib/tomcat5.5/: ... conf ... logs -> ../../log/tomcat5.5 ... shared ... temp ... webapps ... work -> ../../cache/tomcat5.5 It implies that exists three webapps directories: /usr/share/tomcat5.5/server/webapps ... admin ... host-manager ... manager /usr/share/tomcat5.5-webapps/ (tomcat5.5-webapps ubunti package (apatitude install tomcat5.5-webapps) ... balancer ... balancer.xml ... jsp-examples ... jsp-examples.xml ... ROOT ... ROOT.xml ... servlets-examples ... servlets-examples.xml ... tomcat-docs ... tomcat-docs.xml ... webdav ... webdav.xml And as last: (where tomcat manager has deployed my web application) /var/lib/tomcat5.5/webapps/ ... web_gm ... web_gm.war And to make things worse, tomcat manager says that web_gm (my web app) is running!!! When I want to access it (http://host:8180/web_gm), tomcat says me that "The requested resource (/web_gm/) is not available.", however I can access to manager, admin, jsp-examples applications. So, Can you help with this structure of directories? Where are the config files that links all. Other question: Why context.xml is as bellow? It is empty!!! WEB-INF/web.xml Can you help me please? Note I'm running tomcat using daemon (/etc/init.d/tomcat5.5) Thanks in advanced for all. -- View this message in context: http://www.nabble.com/I%27m-in-a-mess-with-Tomcat-5.5-tf4290941.html#a12215388 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AspectJ with Tomcat
Hello, I'm using AspectJ capabilities on my web application on Eclipse. I want to add logging functionality. Concretelly, I've created a ControllerServlet that receive all user requests and I want write or log this user actions in my log file. So, I've added a aspect that does it: package com.gmsoft.aspects; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public aspect LogAspect { pointcut doPostMethod (com.gmsoft.ControllerServlet controller, HttpServletRequest request, HttpServletResponse response) : call (void doPost(HttpServletRequest, HttpServletResponse)) && target(controller) && args(request,response); before (com.gmsoft.ControllerServlet controller, HttpServletRequest request, HttpServletResponse response) : doPostMethod(controller,request,response) { System.out.println(request.getAttribute("action").toString); } } I think that I must modify web.xml configuration file to achieve Tomcat works with Aspects. Can you help me How I can do it? Note: In my code I only use Aspects insede Servlets, so I don't use Aspects inside JSP. I say it for help you if is necessary. Thanks in advance. -- View this message in context: http://www.nabble.com/AspectJ-with-Tomcat-tf2136440.html#a5895777 Sent from the Tomcat - User forum at Nabble.com. - 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: Servlets mod_jk Context path problems
MMM, I've just probed to access http://192.168.1.2:8080/ecommerce/ecommerce/Controller and I've accessed to the servlet. What must I change to access as http://192.168.1.2/ecommerce/Controller? jeusdi wrote: > > So, the problem surges out form tomcat because I can't access it. > > If I try access throught 192.168.1.2/ecommerce/Controller the message is > the same, so it comes form Tomcat. > > I've seen jk log messages and i works correctly. > So, What's wrong is tomcat? > > > > Yassine ELassad (YEL) wrote: >> >> hi >> >> try to access the context directly via port 8080, so you know it's a >> mod_jk related issue >> if you can access >> >> http://yourHostMachine:8080/ecommerce/Controller >> >> so the problem is coming from your JK configuration otherwise it from >> tomcat >> >> Greeting Yassine >> Cologne, Germany >> >> >> >> >> On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >>> >>> Mmm, I've changed httpd.conf file and web.xml file to this --> >>> >>> In httpd.conf I've added JkMount /ecommerce/Controller treb >>> and in web.xml file I've changed mapping --> >>> >>> >>> Controller >>> /ecommerce/Controller >>> >>> >>> And the result is The requested resource (/ecommerce/Controller) is not >>> available. >>> Note: Context path value is "/" and docBase = >>> "/usr/local/tomcat/webapps/ecommerce". Is it important? >>> >>> - >>> >>> >>> >>> Yassine ELassad (YEL) wrote: >>> > >>> > Hi jeusdi, >>> > >>> > >>> > in your Apache configuration you juts Jkmount JSP files that are >>> > inside your Application as the statement say: >>> > >>> > JkMount /ecommerce/*.jsp treb >>> > >>> > and you are trying to get this : >>> > >>> > /ecommerce/servlets/ControllerServlet >>> > >>> > which does not match the directive above either you need to change >>> > that directive something like: >>> > >>> > JkMount /ecommerce/*treb >>> > >>> > or you Jkmount every Context you want to call for its own >>> > >>> > JkMount /ecommerce/servlets/ControllerServlet >>> > ... >>> > >>> > i hope this helps. >>> > >>> > >>> > Greeting Yassine >>> > Cologne, Germany >>> > >>> > >>> > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >>> >> >>> >> Hello, >>> >> I'm muddling up with Servlets configuration, Context configuration, >>> >> VirtualHost configuration, and more... >>> >> >>> >> My problem is that I have 2 domains --> ecommerce.gmsoft.com and >>> >> www.gmsoft.com and both are web applications. The first problem is >>> that I >>> >> don't know how configure Apache (http.conf) to select correct >>> application >>> >> according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), >>> >> moreover >>> >> I've installed correctly mod_jk, so I want the JSPs and servlets is >>> >> handled >>> >> with Tomcat. >>> >> >>> >> Also, I have problems with server.xml and web.xml files to mapping >>> >> servlets >>> >> and Context configuration. >>> >> >>> >> However, first I solve it step to step. >>> >> >>> >> I'm developing the ecommerce web application and the servers >>> (apache >>> >> web >>> >> server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under >>> >> 192.168.1.2. So, I only have configured this. So, when I access to >>> >> 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect >>> to >>> >> Apache web server) correctly. However I've created a Servlet that >>> handles >>> >> user requests (ControllerServlet), but it is inaccessible. I've tried >>> >> access >>> >> to ControllerServlet manually (writing the URL direction), but this >>> >> servlet >>> >&g
Re: Servlets mod_jk Context path problems
So, the problem surges out form tomcat because I can't access it. If I try access throught 192.168.1.2/ecommerce/Controller the message is the same, so it comes form Tomcat. I've seen jk log messages and i works correctly. So, What's wrong is tomcat? Yassine ELassad (YEL) wrote: > > hi > > try to access the context directly via port 8080, so you know it's a > mod_jk related issue > if you can access > > http://yourHostMachine:8080/ecommerce/Controller > > so the problem is coming from your JK configuration otherwise it from > tomcat > > Greeting Yassine > Cologne, Germany > > > > > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >> >> Mmm, I've changed httpd.conf file and web.xml file to this --> >> >> In httpd.conf I've added JkMount /ecommerce/Controller treb >> and in web.xml file I've changed mapping --> >> >> >> Controller >> /ecommerce/Controller >> >> >> And the result is The requested resource (/ecommerce/Controller) is not >> available. >> Note: Context path value is "/" and docBase = >> "/usr/local/tomcat/webapps/ecommerce". Is it important? >> >> - >> >> >> >> Yassine ELassad (YEL) wrote: >> > >> > Hi jeusdi, >> > >> > >> > in your Apache configuration you juts Jkmount JSP files that are >> > inside your Application as the statement say: >> > >> > JkMount /ecommerce/*.jsp treb >> > >> > and you are trying to get this : >> > >> > /ecommerce/servlets/ControllerServlet >> > >> > which does not match the directive above either you need to change >> > that directive something like: >> > >> > JkMount /ecommerce/*treb >> > >> > or you Jkmount every Context you want to call for its own >> > >> > JkMount /ecommerce/servlets/ControllerServlet >> > ... >> > >> > i hope this helps. >> > >> > >> > Greeting Yassine >> > Cologne, Germany >> > >> > >> > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >> >> >> >> Hello, >> >> I'm muddling up with Servlets configuration, Context configuration, >> >> VirtualHost configuration, and more... >> >> >> >> My problem is that I have 2 domains --> ecommerce.gmsoft.com and >> >> www.gmsoft.com and both are web applications. The first problem is >> that I >> >> don't know how configure Apache (http.conf) to select correct >> application >> >> according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), >> >> moreover >> >> I've installed correctly mod_jk, so I want the JSPs and servlets is >> >> handled >> >> with Tomcat. >> >> >> >> Also, I have problems with server.xml and web.xml files to mapping >> >> servlets >> >> and Context configuration. >> >> >> >> However, first I solve it step to step. >> >> >> >> I'm developing the ecommerce web application and the servers (apache >> >> web >> >> server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under >> >> 192.168.1.2. So, I only have configured this. So, when I access to >> >> 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect >> to >> >> Apache web server) correctly. However I've created a Servlet that >> handles >> >> user requests (ControllerServlet), but it is inaccessible. I've tried >> >> access >> >> to ControllerServlet manually (writing the URL direction), but this >> >> servlet >> >> is not found by servers. I'm sure that is a configuration problem. >> >> >> >> Now I access to my application throught http://192.168.1.2/ecommerce, >> >> when I >> >> access to it, it shows me the index.jsp correctly, but when I access >> to >> >> http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't >> happen. >> >> >> >> I show you my configuration files: >> >> >> >> >> >> httpd.conf --> >> >> ServerName 192.168.1.2 >> >> >> >> NameVirtualHost 192.168.1.2 >> >> >> >> >> >>Serve
Re: Servlets mod_jk Context path problems
Mmm, I've changed httpd.conf file and web.xml file to this --> In httpd.conf I've added JkMount /ecommerce/Controller treb and in web.xml file I've changed mapping --> Controller /ecommerce/Controller And the result is The requested resource (/ecommerce/Controller) is not available. Note: Context path value is "/" and docBase = "/usr/local/tomcat/webapps/ecommerce". Is it important? - Yassine ELassad (YEL) wrote: > > Hi jeusdi, > > > in your Apache configuration you juts Jkmount JSP files that are > inside your Application as the statement say: > > JkMount /ecommerce/*.jsp treb > > and you are trying to get this : > > /ecommerce/servlets/ControllerServlet > > which does not match the directive above either you need to change > that directive something like: > > JkMount /ecommerce/*treb > > or you Jkmount every Context you want to call for its own > > JkMount /ecommerce/servlets/ControllerServlet > ... > > i hope this helps. > > > Greeting Yassine > Cologne, Germany > > > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >> >> Hello, >> I'm muddling up with Servlets configuration, Context configuration, >> VirtualHost configuration, and more... >> >> My problem is that I have 2 domains --> ecommerce.gmsoft.com and >> www.gmsoft.com and both are web applications. The first problem is that I >> don't know how configure Apache (http.conf) to select correct application >> according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), >> moreover >> I've installed correctly mod_jk, so I want the JSPs and servlets is >> handled >> with Tomcat. >> >> Also, I have problems with server.xml and web.xml files to mapping >> servlets >> and Context configuration. >> >> However, first I solve it step to step. >> >> I'm developing the ecommerce web application and the servers (apache >> web >> server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under >> 192.168.1.2. So, I only have configured this. So, when I access to >> 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect to >> Apache web server) correctly. However I've created a Servlet that handles >> user requests (ControllerServlet), but it is inaccessible. I've tried >> access >> to ControllerServlet manually (writing the URL direction), but this >> servlet >> is not found by servers. I'm sure that is a configuration problem. >> >> Now I access to my application throught http://192.168.1.2/ecommerce, >> when I >> access to it, it shows me the index.jsp correctly, but when I access to >> http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't happen. >> >> I show you my configuration files: >> >> >> httpd.conf --> >> ServerName 192.168.1.2 >> >> NameVirtualHost 192.168.1.2 >> >> >>ServerName 192.168.1.2 >>ServerAdmin [EMAIL PROTECTED] >>DocumentRoot /usr/local/tomcat/webapps >>ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log >>CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log >> common >> >>AllowOverride None >>Deny from all >> >>JkMount /ecommerce/*.jsp treb >> >> >> workers.properties --> >> >> # workers.properties - ajp13 >> # >> # List workers >> worker.list=treb >> # >> # Define work >> worker.treb.tomcat_home=$TOMCAT_HOME >> worker.treb.java_home=$JAVA_HOME >> worker.treb.port=8009 >> worker.treb.host=localhost >> worker.treb.type=ajp13 >> worker.treb.cachesize=10 >> worker.treb.cache_timeout=600 >> worker.treb.socket_timeout=300 >> worker.treb.lbfactor=1 >> >> Tomcat Context Web Application configuration --> >> >> > docBase="/usr/local/tomcat/webapps/ecommerce" >> workDir="/usr/local/tomcat/webapps/webshop/ecommerce/work"/> >> >> web.xml --> (only servlet configuration) >> >> >> >> Controlador >> Controller >> com.gmsoft.ControllerServlet >> >> >> >> >> Controller >> /ecommerce/ >> >> >> Can you help me, firstly I want to access manualy to my >> ServletController. >> -- >> View this m
Servlets mod_jk Context path problems
Hello, I'm muddling up with Servlets configuration, Context configuration, VirtualHost configuration, and more... My problem is that I have 2 domains --> ecommerce.gmsoft.com and www.gmsoft.com and both are web applications. The first problem is that I don't know how configure Apache (http.conf) to select correct application according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), moreover I've installed correctly mod_jk, so I want the JSPs and servlets is handled with Tomcat. Also, I have problems with server.xml and web.xml files to mapping servlets and Context configuration. However, first I solve it step to step. I'm developing the ecommerce web application and the servers (apache web server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under 192.168.1.2. So, I only have configured this. So, when I access to 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect to Apache web server) correctly. However I've created a Servlet that handles user requests (ControllerServlet), but it is inaccessible. I've tried access to ControllerServlet manually (writing the URL direction), but this servlet is not found by servers. I'm sure that is a configuration problem. Now I access to my application throught http://192.168.1.2/ecommerce, when I access to it, it shows me the index.jsp correctly, but when I access to http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't happen. I show you my configuration files: httpd.conf --> ServerName 192.168.1.2 NameVirtualHost 192.168.1.2 ServerName 192.168.1.2 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log common AllowOverride None Deny from all JkMount /ecommerce/*.jsp treb workers.properties --> # workers.properties - ajp13 # # List workers worker.list=treb # # Define work worker.treb.tomcat_home=$TOMCAT_HOME worker.treb.java_home=$JAVA_HOME worker.treb.port=8009 worker.treb.host=localhost worker.treb.type=ajp13 worker.treb.cachesize=10 worker.treb.cache_timeout=600 worker.treb.socket_timeout=300 worker.treb.lbfactor=1 Tomcat Context Web Application configuration --> web.xml --> (only servlet configuration) Controlador Controller com.gmsoft.ControllerServlet Controller /ecommerce/ Can you help me, firstly I want to access manualy to my ServletController. -- View this message in context: http://www.nabble.com/Servlets-mod_jk-Context-path-problems-tf2114133.html#a5829085 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Listener doesn't listen
Hello, mmm I have a Listener /** * @web.listener * name ="initSession" * display-name ="InitSession" * description ="Inicialitza una sessiĆ³ individual." * */ public class InitSession implements HttpSessionListener { public void sessionCreated(HttpSessionEvent arg0) { // TODO Auto-generated method stub HttpSession session = arg0.getSession(); session.setAttribute("facade", new com.gmsoft.utils.UtilsSessionFacade()); } public void sessionDestroyed(HttpSessionEvent arg0) { // TODO Auto-generated method stub } } I use it for add an attribute for each new created session. Also, I've implemented a JSP: http://www.w3.org/1999/xhtml";> Insert title here Data: <%=new java.util.Date(session.getCreationTime()).toString() %> <% UtilsSessionFacade facade = (UtilsSessionFacade)session.getAttribute("facade"); if (facade == null) {%> <%="facade is NULL" %> <%}else{ ArrayList manufacturers = facade.getManufacturers(); java.util.Iterator it = manufacturers.iterator(); while (it.hasNext()) {%> <%=((Manufacturer)it.next()).getName() %> <%} } %> ... and when I want access to my facade session attribute it is NULL. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"> ecommerce com.gmsoft.InitSession Controlador Controller com.gmsoft.ControllerServlet Do I do anything wrong? Thanks in advanced. -- View this message in context: http://www.nabble.com/Listener-doesn%27t-listen-tf2095827.html#a5777105 Sent from the Tomcat - User forum at Nabble.com. - 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: tomcat JSP Servlet Apache JK2
So, What must I change in my configuration files. I want that I access to 192.168.1.2 appear my login.jsp. I'm very stressed. I have a feeling I do all right. I understant it. my login.jsp is located in /usr/local/tomcat/webapps/login.jsp -- View this message in context: http://www.nabble.com/tomcat-JSP-Servlet-Apache-JK2-tf2071029.html#a5726353 Sent from the Tomcat - User forum at Nabble.com. - 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: tomcat JSP Servlet Apache JK2
Hello, mmm, I've compiled and linked and configured mod_jk with Apache 2.0 correctly, but I doesn't work correctly. Mmm, if I access to http://192.168.1.2 explorer continues show me the code of my JSP, but if I access to http://192.168.1.2/ecommerce/login.jsp it shows me correctly the JSP formatted or interpreted as simpe HTML file. I don't know What more Can I do. Can you say me what do I do wrong? jk.conf -> JkWorkersFile "/etc/apache2/properties/workers.properties" JkLogFile "/var/log/apache2/jk.log" JkLogLevel debug workers.properties -> # # List workers worker.list=treb # # Define work worker.treb.tomcat_home=$TOMCAT_HOME worker.treb.java_home=$JAVA_HOME worker.treb.port=8009 worker.treb.host=localhost worker.treb.type=ajp13 worker.treb.cachesize=10 worker.treb.cache_timeout=600 worker.treb.socket_timeout=300 worker.treb.lbfactor=1 And httpd.conf -> ServerName 192.168.1.2 NameVirtualHost 192.168.1.2 ServerName 192.168.1.2 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps/ecommerce ErrorLog /usr/local/tomcat/webapps/webshop/logs/error_log CustomLog /usr/local/tomcat/webapps/webshop/logs/access_log common AllowOverride None Deny from all JkMount /*.jsp treb -- View this message in context: http://www.nabble.com/tomcat-JSP-Servlet-Apache-JK2-tf2071029.html#a5724146 Sent from the Tomcat - User forum at Nabble.com. - 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: tomcat JSP Servlet Apache JK2
mmm, but if I configure workers2.properties to show me the ROOT Tomcat web application it show me index.jsp correctly!! If there is no choice can I use mod_jk in Apache2? I say it because I perform "aptitude install mod_jk" in my ubuntu Brezzy and it downloads apache1.3, but I want use Apache2 with mod_jk. Can I use mod_jk with Apache2? -- View this message in context: http://www.nabble.com/tomcat-JSP-Servlet-Apache-JK2-tf2071029.html#a5707357 Sent from the Tomcat - User forum at Nabble.com. - 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: tomcat JSP Servlet Apache JK2
jk2.conf --> JkSet config.file "/etc/apache2/properties/workers2.properties" httpd.conf --> ServerName 192.168.1.2 NameVirtualHost 192.168.1.2:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps/ecommerce ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log common AllowOverride None Deny from all And, workers2.conf --> # only at beginnin. In production uncomment it out [logger.apache2] level=DEBUG [shm] file=/var/log/apache2/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/*.jsp] context=/ecommerce I don't know Why it doesn't work correctly? Thanks. -- View this message in context: http://www.nabble.com/tomcat-JSP-Servlet-Apache-JK2-tf2071029.html#a5705067 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stress ROOT application instead my application
Helo World, I'm trying configured my apache to communicate with Tomcat. Mmm, I've created a aweb application contained in webapps tomcat directory. This application is named ecommerce. So in my httpd.conf file I put this: ServerName 192.168.1.2 NameVirtualHost 192.168.1.2:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps/ecommerce ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log common AllowOverride None Deny from all So, all request from my explorer to 192.168.1.2 would be go to my index.jsp, but it isn't. When I access to http://192.168.1.2 it shows me the default ROOT web application TOMCAT, so index.jsp from ROOT web application. I dump workers2.properties bellow--> # only at beginnin. In production uncomment it out [logger.apache2] level=DEBUG [shm] file=/var/log/apache2/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/*.jsp] -- View this message in context: http://www.nabble.com/stress-ROOT-application-instead-my-application-tf2071813.html#a5703771 Sent from the Tomcat - User forum at Nabble.com. - 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 JSP Servlet Apache JK2
Hello, I've configured Apache Web Server with mod_jk2 to communicate it with Apache Tomcat 5.5. Mmm, I've created a Web Application with one JSP (index.JSP) and one Servlet (it is performed form JSP). All is ok, but when I access to my web Application the result is the code of my JSP instead a simple HTML page. In other words, when I want to access to my web Application I view the code of JSP (the code isn't interpreted like HTML code. Do you know What must I do to solve it? Thanks in advanced. -- View this message in context: http://www.nabble.com/tomcat-JSP-Servlet-Apache-JK2-tf2071029.html#a5701728 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]