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 -->
>>>
>>>   <servlet-mapping>
>>>      <servlet-name>Controller</servlet-name>
>>>      <url-pattern>/ecommerce/Controller</url-pattern>
>>>   </servlet-mapping>
>>>
>>> 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
>>> >>
>>> >> <VirtualHost 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
>>> >>        <LocationMatch ".*WEB-INF.*">
>>> >>                AllowOverride None
>>> >>                Deny from all
>>> >>        </LocationMatch>
>>> >>        JkMount /ecommerce/*.jsp treb
>>> >> </VirtualHost>
>>> >>
>>> >> 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 -->
>>> >>
>>> >> <Context path="/" reloadable="true"
>>> >> docBase="/usr/local/tomcat/webapps/ecommerce"
>>> >> workDir="/usr/local/tomcat/webapps/webshop/ecommerce/work"/>
>>> >>
>>> >> web.xml --> (only servlet configuration)
>>> >>
>>> >>   <servlet>
>>> >>      <description><![CDATA[Controlador de tota l'aplicació Web -
>>> >> MVC]]></description>
>>> >>      <display-name>Controlador</display-name>
>>> >>      <servlet-name>Controller</servlet-name>
>>> >>      <servlet-class>com.gmsoft.ControllerServlet</servlet-class>
>>> >>
>>> >>   </servlet>
>>> >>
>>> >>   <servlet-mapping>
>>> >>      <servlet-name>Controller</servlet-name>
>>> >>      <url-pattern>/ecommerce/</url-pattern>
>>> >>   </servlet-mapping>
>>> >>
>>> >> 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]
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > (e==mc²)?
>>> >
>>> > ---------------------------------------------------------------------
>>> > 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/Servlets-mod_jk-Context-path-problems-tf2114133.html#a5829699
>>> 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]
>>>
>>>
>> 
>> 
>> -- 
>> (e==mc²)?
>> 
>> ---------------------------------------------------------------------
>> 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/Servlets-mod_jk-Context-path-problems-tf2114133.html#a5830042
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]

Reply via email to