RE: Problems with context

2005-08-12 Thread Allistair Crossley
And what is the error you are getting? 404? 500? Exception? What?

Allistair.

 -Original Message-
 From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED]
 Sent: 12 August 2005 08:54
 To: Tomcat Users List
 Subject: Problems with context
 
 
 Hi. I just has beginning to use the Tomcat, for programming in JSP.
 I have the 5.0 version.
 
 I make a web app that uses, in some jsp's files, the command
 response.sendRedirect.
 
 When i execute the pages locally in my computer, works fine, 
 but, i if try
 to
 test the pages from another computer, i get an error.
 
 This is the way i was executed the sendRedirect for test in 
 another machine,
 and always get an error:
 response.sendRedirect(http://localhost:8080/activation/obliga
 torios.jsp)
 response.sendRedirect(http://192.168.1.137:8080/activation/ob
 ligatorios.jsp
 )
 response.sendRedirect(http://mycomputer:8080/activation/oblig
 atorios.jsp)
 response.sendRedirect(/obligatorios.jsp)
 response.sendRedirect(activation/obligatorios.jsp)
 
 
 I think that could be some context problems because, for make 
 the webapp
 structure, i
 copied one example webapp that comes with the tomcat, then i 
 deleted and
 renamed
 those files and directories that i dont use (off course, the 
 web-inf still
 exist)
 
 What can i do ? Is there is some file where i must configure 
 the context of
 the webapp ?
 
 Thanks !!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems with context

2005-08-12 Thread Scott Purcell
Actually I am getting no errors. Basically some of the images and includes do 
not show up unless I take out the unique from the querystring. That is why I 
am confused.

Originally, while building the application, I did not have an entry in the 
host element. I just used something like this:
http://localhost/unique/welcome.do
and all was good. But when I got my staticIP the other night, and entered the 
host information that is when things got out of wack.

Does that help?

Thanks,
Scott





-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Friday, August 12, 2005 10:22 AM
To: Tomcat Users List
Subject: RE: Problems with context


And what is the error you are getting? 404? 500? Exception? What?

Allistair.

 -Original Message-
 From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED]
 Sent: 12 August 2005 08:54
 To: Tomcat Users List
 Subject: Problems with context
 
 
 Hi. I just has beginning to use the Tomcat, for programming in JSP.
 I have the 5.0 version.
 
 I make a web app that uses, in some jsp's files, the command
 response.sendRedirect.
 
 When i execute the pages locally in my computer, works fine, 
 but, i if try
 to
 test the pages from another computer, i get an error.
 
 This is the way i was executed the sendRedirect for test in 
 another machine,
 and always get an error:
 response.sendRedirect(http://localhost:8080/activation/obliga
 torios.jsp)
 response.sendRedirect(http://192.168.1.137:8080/activation/ob
 ligatorios.jsp
 )
 response.sendRedirect(http://mycomputer:8080/activation/oblig
 atorios.jsp)
 response.sendRedirect(/obligatorios.jsp)
 response.sendRedirect(activation/obligatorios.jsp)
 
 
 I think that could be some context problems because, for make 
 the webapp
 structure, i
 copied one example webapp that comes with the tomcat, then i 
 deleted and
 renamed
 those files and directories that i dont use (off course, the 
 web-inf still
 exist)
 
 What can i do ? Is there is some file where i must configure 
 the context of
 the webapp ?
 
 Thanks !!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems with context

2005-08-12 Thread Fermin Jimenez Najar
This is the question (by example)
a) In my computer (where the tomcat is installed)
   1. I call this page who have the
sendRedirect(http://192.168.1.64/activation/secondpage.jsp;)
   http://192.168.1.64/activation/firstpage.jsp

   2. Works fine, in the browser of my machine appears:
http://192.168.1.64/activation/secondpage.jsp

b)But the ERROR happens when i try to access from another computer:
  1. I call this page who have the
sendRedirect(http://192.168.1.64/activation/secondpage.jsp;)
   http://192.168.1.64/activation/firstpage.jsp

2. I get this as URL in the browser:
http://localhost/secondpage.jsp

  and this error:
  The page is not enabled (or something like that, without error
number)

-Message d'origine-
De : Allistair Crossley [mailto:[EMAIL PROTECTED]
Envoyé : Viernes, 12 de Agosto de 2005 05:22 p.m.
À : Tomcat Users List
Objet : RE: Problems with context


And what is the error you are getting? 404? 500? Exception? What?

Allistair.

 -Original Message-
 From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED]
 Sent: 12 August 2005 08:54
 To: Tomcat Users List
 Subject: Problems with context


 Hi. I just has beginning to use the Tomcat, for programming in JSP.
 I have the 5.0 version.

 I make a web app that uses, in some jsp's files, the command
 response.sendRedirect.

 When i execute the pages locally in my computer, works fine,
 but, i if try
 to
 test the pages from another computer, i get an error.

 This is the way i was executed the sendRedirect for test in
 another machine,
 and always get an error:
 response.sendRedirect(http://localhost:8080/activation/obliga
 torios.jsp)
 response.sendRedirect(http://192.168.1.137:8080/activation/ob
 ligatorios.jsp
 )
 response.sendRedirect(http://mycomputer:8080/activation/oblig
 atorios.jsp)
 response.sendRedirect(/obligatorios.jsp)
 response.sendRedirect(activation/obligatorios.jsp)


 I think that could be some context problems because, for make
 the webapp
 structure, i
 copied one example webapp that comes with the tomcat, then i
 deleted and
 renamed
 those files and directories that i dont use (off course, the
 web-inf still
 exist)

 What can i do ? Is there is some file where i must configure
 the context of
 the webapp ?

 Thanks !!


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems moving context from server.xml to web.xml ...

2004-07-02 Thread Lorenzo A. Jimenez Briceno
Ivan:
 
If you are using TC5, you can move server.xml info not to web.xml but to context.xml 
in META-INF directory.
I have used it with Netbeans 3.6 where the software creates this dir and the file. So 
context.xml contains:
 
?xml version=1.0 encoding=UTF-8 ? 
Context path=/demos /
 
Change it properly:
 
?xml version=1.0 encoding=UTF-8 ? 
Context path=/ablogic
ResourceParams name=jdbc/ablogic
!-- Max pool connections --
parameternamemaxActive/namevalue5/value/parameter
!-- Max idle connections --
parameternamemaxIdle/namevalue5/value/parameter
!-- Username --
parameternameusername/namevalueivan/value/parameter
!-- Password --
parameternamepassword/namevaluekittiesrcute/value/parameter
!--DB Driver --

parameternamedriverClassName/namevaluecom.mysql.jdbc.Driver/value/parameter
!--DB URL --

parameternameurl/namevaluejdbc:mysql://192.168.0.1:3306/school?autoReconnect=true/value/parameter
/ResourceParams
/Context

Try it,
Happy computing,
 
Lorenzo
 


 
 
 
 
 
 
-Mensaje original-
De: Ivan Jouikov [mailto:[EMAIL PROTECTED]
Enviado el: Viernes, 02 de Julio de 2004 02:33 a.m.
Para: 'Tomcat Users List'
Asunto: Problems moving context from server.xml to web.xml ...


I want to move context element from server.xml to web.xml, so I can add new 
applications without restarting the server.

Everything works fine, my DB and all, until I move this entry:
code: 

  _  

  Context path=/ablogic docBase=C:\Documents and Settings\SysOp\My Documents\AB 
LOGIC\Eclipse Workspace\abLogic\web debug=9 reloadable=true

   !-- Database --
   Resource name=jdbc/ablogic auth=Container 
type=javax.sql.DataSource/
   
   ResourceParams name=jdbc/ablogic
   !-- Max pool connections --
   parameternamemaxActive/namevalue5/value/parameter
   !-- Max idle connections --
   parameternamemaxIdle/namevalue5/value/parameter
   !-- Username --
   parameternameusername/namevalueivan/value/parameter
   !-- Password --
   
parameternamepassword/namevaluekittiesrcute/value/parameter
   !--DB Driver --
   
parameternamedriverClassName/namevaluecom.mysql.jdbc.Driver/value/parameter
   !--DB URL --
   
parameternameurl/namevaluejdbc:mysql://192.168.0.1:3306/school?autoReconnect=true/value/parameter
   /ResourceParams
 
/Context 

  _  



As soon as I move this thing, and try to use my DB, I get the following error:

Error message: Cannot create JDBC driver of class '' for connect URL 'null'

My mysql connector is both in my /common/lib and my /WEB-INF/lib/, just to keep it 
safe. Also, to my web.xml I added these two entries:
code: 

  _  

 ResourceLink name=jdbc/ablogic global=jdbc/ablogic/

resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/ablogic/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref 

  _  



I have no idea what the hell is wrong. Theoretically, I am not changing anything by 
simply copying context element, yet, it seems to stop working .

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004




_ 
Lorenzo A. Jimenez Briceno
WebMaster
Banco Internacional de Costa Rica
( (506) 243-1077
1 (506) 243-1075
- [EMAIL PROTECTED]

BICSA Un mundo de servicios financieros a su alcance! 
http://www.bicsa.com
7/2/2004 8:01 AM
Este mensaje puede ser confidencial. Si usted no es la persona a quien se debi 
dirigir por favor notifquenos de inmediato y borre el mensaje. BICSA no acepta 
responsabilidad legal por ningn dao causado por virus, errores u omisiones en el 
contenido de este mensaje. Todo uso o divulgacin no autorizado est prohibido. 
Gracias. 

This message may be confidential. If you are not the intended recipient, please notify 
us immediately and delete this message. BICSA does not accept liability for any damage 
caused by virus, errors, or omissions in the contents of this message. Any 
unauthorized use or disclosure of its contents is prohibited. Thank you. 


RE: Problems with context-relative path include directive

2001-01-25 Thread CPC Livelink Admin


The way it nehaves is that "/" is the root of your webapp. So, when doing
things with the servlet container alone, you would reference the file as
"/JSPHeader.jsp". If, however, you are sending something to the browser for
it to get, then do "%= request.getContextPath() %/JSPHeader.gif"

Somewhat weird, but it does make navigation from the root of your webapp
easier since the name (context path) of the webapp can be changed.

Regards,
Paul


-Original Message-
From: Cor Ruiten [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 11:03 PM
To: [EMAIL PROTECTED]
Subject: Problems with context-relative path include directive


I just installed Tomcat 3.2.1 on my Windows 2000 workstation.

I am able to start Tomcat and view the examples provided in the
distribution.

I made the following entry in the server.xml file so that I can reach my
application:

Context path="/hcs"
 docBase="d:/development/hcs/jsp"
 crossContext="false"
 debug="9"
 reloadable="true" 
/Context

If I attempt to serve up any JSP page that has the following include
directive:

%@ include file="/hcs/JSPHeader.jsp" %

I receive the following error:

 Error: 500
 Location: /hcs/sccp.jsp
 Internal Servlet Error:
 org.apache.jasper.compiler.CompileException:
D:\Development\hcs\jsp\sccp.jsp(0,0) Bad file
argument to include
 at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java,
Compiled Code)
 at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
 at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java,
Compiled Code)
 at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
 at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:2
10)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
 at java.lang.Thread.run(Thread.java:479)

The same JSP pages work fine using JRun 3.0. But it appears that Tomcat is
not liking my
context-relative path include
statement because if I change the include to be:

%@ include file="JSPHeader.jsp" %

and the JSP page that make this include is at the "root" level for my
context, then Tomcat is
happy...

I was under the impression that my definition of the "/hcs" context should
have taken care of this.

Any thoughts on what I am doing wrong here?

Thank you,

Cor Ruiten
Pipeline Software, Inc.
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]