Using Tiger in jsp

2005-05-20 Thread Julien Martin
Hello,
I use Tomcat 5.5 and I would like to use jdk5.0 features such as enhanced
for loop in my jsp. I am having problems: Tomcat seems to be expecting
jdk1.4 syntax.
Can anyone help please?
Julien.



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



Configuring thread pools

2004-08-20 Thread julien-martin
Hello,
Is there a way to configure the thread pool in tomcat - if thread pool there is - and 
ask for example for 100 threads to be placed in the thread pool?
Thanks in advance,
Julien Martin.

Configuring thread pools: I meant servlet threads

2004-08-20 Thread julien-martin
Hello Yoav,
Thanks for the reply but I meant servlet threads.
Julien.

- Original Message -
From: Shapira, Yoav 
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 20, 2004 9:03 PM
Subject: RE: Configuring thread pools



Hi,
Yes, RTFM at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 2:51 PM
To: Tomcat Users List
Subject: Configuring thread pools

Hello,
Is there a way to configure the thread pool in tomcat - if thread pool
there is - and ask for example for 100 threads to be placed in the
thread
pool?
Thanks in advance,
Julien Martin.



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



Tomcat 5 and apache 2.0.48

2004-02-27 Thread Julien Martin
Hello,
Can anyone direct me to a good tutorial about hooking Tomcat 5 to Apache
2.0.48 on windows.
Thanks in advance,
Julien.

PS. I asked this question before but I lost my emails.


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



Connecting apache httpd 2.0.48 to Tomcat 5

2004-02-27 Thread Julien Martin
Hello,
Can anyone post their configuration files for connecting Apache Httpd with
Tomcat 5 on a windows 2000 system?
Thanks in advance,
Julien Martin.


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



Tomcat 5 and apache 2.0.48

2004-02-25 Thread Julien Martin
Hello,
Can anyone direct me to a good tutorial about hooking Tomcat 5 to Apache
2.0.48 on windows.
Thanks in advance,
Julien.


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



Tomcat 5 and IIS 5

2004-02-16 Thread Julien Martin
Hello,
I know this question must have been asked before. All I want is the location
of the documentation about hooking up Tomcat 5.0 with IIS 5. Note that when
you click on the jk documentation link on the following page:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html You are
redirected to the download page of Jakarta.
So where is the documentation?
Thanks in advance,
Julien Martin.


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



ServletException

2003-12-12 Thread Julien Martin
Hello,

I am trying to run a plain jsp application under Jonas/Tomcat. Here is the
exception I get:

*
javax.servlet.ServletException:
org/apache/jasper/runtime/HttpJspBase
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:536)

cause mère

java.lang.NoClassDefFoundError: org/apache/jasper/runtime/HttpJspBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:213)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:497)
at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav
a:150)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:440)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:390)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
71)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at

Question about the Petstore's SignOnFilter class

2003-10-11 Thread Julien Martin
Hello,
I am going through the Petstore's SignOnFilter class and I am wondering why it has 
been named SignOnFilter and not SignInFilter. Isn't the businesss logic of the class 
to help the signing in and not the signing on? Am I right or wrong?
Thanks in advance for your replies.
Julien.

Here is the source for the class:

package com.sun.j2ee.blueprints.signon.web;import java.io.PrintWriter;import 
java.io.OutputStreamWriter;import java.io.IOException;import java.util.HashMap;import 
java.util.Iterator;import java.net.URL;// J2EE importsimport 
javax.servlet.ServletException;import javax.servlet.ServletContext;import 
javax.servlet.Filter;import javax.servlet.FilterChain;import 
javax.servlet.FilterConfig;import javax.servlet.http.HttpSession;import 
javax.servlet.ServletRequest;import javax.servlet.ServletResponse;import 
javax.servlet.http.HttpServletRequest;import 
javax.servlet.http.HttpServletResponse;import javax.servlet.http.Cookie;import 
javax.ejb.CreateException;import javax.naming.NamingException;import 
javax.naming.InitialContext;// SignOn EJB Importsimport 
com.sun.j2ee.blueprints.signon.ejb.SignOnLocalHome;import 
com.sun.j2ee.blueprints.signon.ejb.SignOnLocal;public class SignOnFilter implements 
Filter {// these static strings define where to put/get thingspublic static 
final String FORM_SIGNON_URL = j_signon_check;public static final String 
FORM_USER_NAME = j_username;public static final String FORM_PASSWORD = 
j_password;public static final String REMEMBER_USERNAME = j_remember_username; 
   public static final String USER_NAME = j_signon_username;public static final 
String SIGNED_ON_USER  = j_signon;public static final String ORIGINAL_URL = 
j_signon_original_url;public static final String CREATE_USER_URL = 
j_create_user;public static final String COOKIE_NAME = bp_signon;private 
HashMap protectedResources;private FilterConfig config = null;private String 
signOnErrorPage = null;private String signOnPage = null;private String 
userCreationError = null;public void init(FilterConfig config) throws 
ServletException {this.config = config;URL protectedResourcesURL = 
null;try {protectedResourcesURL = 
config.getServletContext().getResource(/WEB-INF/signon-config.xml);
SignOnDAO dao = new SignOnDAO(protectedResourcesURL);signOnErrorPage = 
dao.getSignOnErrorPage();signOnPage = dao.getSignOnPage();
protectedResources = dao.getProtectedResources();} catch 
(java.net.MalformedURLException ex) {System.err.println(SignonFilter: 
malformed URL exception:  + ex);}}public void destroy() {
config = null;} public  void doFilter(ServletRequest request, ServletResponse  
response, FilterChain chain)throws IOException, ServletException {
HttpServletRequest hreq = (HttpServletRequest)request;String currentURI = 
hreq.getRequestURL().toString();String currentURL = hreq.getRequestURI();  
  // get everything after the context rootint firstSlash = 
currentURL.indexOf(/,1); // jump past the starting slashString targetURL = 
null;if (firstSlash != -1) targetURL = currentURL.substring(firstSlash + 1, 
currentURL.length());if ((targetURL != null)  
targetURL.equals(FORM_SIGNON_URL)) {validateSignOn(request, response, 
chain);// jump out of this methodreturn;}// 
check if the user is signed onboolean signedOn = false;if 
(hreq.getSession().getAttribute(SIGNED_ON_USER) != null) {signedOn 
=((Boolean)hreq.getSession().getAttribute(SIGNED_ON_USER)).booleanValue();} 
else {hreq.getSession().setAttribute(SIGNED_ON_USER, new Boolean(false));  
  }// jump to the resource if signed onif (signedOn) { 
   chain.doFilter(request,response);return;}// find 
out if the patterns match the target URLIterator it = 
protectedResources.keySet().iterator();while (it.hasNext()) {
String protectedName = (String)it.next();ProtectedResource resource  = 
(ProtectedResource)protectedResources.get(protectedName);String urlPattern 
= resource.getURLPattern();// now check agains the targetURLif 
(urlPattern.equals(targetURL)) {// put the orginal url in the session 
so others can accesshreq.getSession().setAttribute(ORIGINAL_URL,  
targetURL);config.getServletContext().getRequestDispatcher(/ + 
signOnPage).forward(request, response);// Jump out of the filter and 
go to the next pagereturn;}}// No matches 
if we made it to herechain.doFilter(request,response);} public  void 
validateSignOn(ServletRequest request, 

Question about the Petstore's SignOnFilter class

2003-10-11 Thread Julien Martin
Hello Ralph,
I am not a native english speaker either. I thought that to sign on meant
to register and to sign in meant to authenticate oneself.  Can anyone
help?
Julien.

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 2:37 PM
Subject: RE: Question about the Petstore's SignOnFilter class


What is the difference for you between singing in and on ?

For me as non native english speaker SignIn and SignOn are equivalent.

The opposite is SignOff.

 -Original Message-
 From: Julien Martin [mailto:[EMAIL PROTECTED]
 Sent: Saturday, October 11, 2003 1:52 PM
 To: Tomcat Users List
 Subject: Question about the Petstore's SignOnFilter class

 I am going through the Petstore's SignOnFilter class and I am
 wondering why it has been named SignOnFilter and not
 Thanks in advance for your replies.
 Julien.


-
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]



jsp:body

2003-09-28 Thread Julien Martin
Hello,
I am trying to find documentation about the new jsp:body tag.  Can anyone tell me 
what it does and tell me where I can find more documentation about it.
Thanks in advance,
Julien.

Difference between path-mapped and servlet-mapped filters

2003-09-26 Thread Julien Martin
Hello,
Can anyone please explain to me what the difference is between path-mapped
and servlet-mapped filters.
Thanks in advance,
Julien.


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



SOS JSTL

2003-09-24 Thread Julien Martin
Hello,

I am developing an application that uses Jstl for internationalization.  I
store a string called lang in a request attribute (${requestScope.lang}).
This string is either fr or es.
My page is sometimes in french even though the lang attribute is es and
vice versa.  It seems as if the  ${requestScope.lang} is ignored.

Can anyone help please?

Thanks in advance,

Julien.


Here is the full content of my jsp:

**
%-- ==

Index Page

== --%

%@ page import =com.parispano.latinamericaguide.* %

%@ taglib uri=/WEB-INF/c.tld prefix=f %

%@ taglib uri=/WEB-INF/fmt.tld prefix=fmt %

%@ taglib uri=/WEB-INF/latinamericaguide.tld prefix=po %

%

/* We retrieve the Countries object from the servlet context. */

ServletContext sc = getServletContext();

Countries cs = (Countries)sc.getAttribute(countries);

/* We apply the sorting criterion. */

String sortCriterion = request.getParameter(sortCriterion);

Country[] countryArray = cs.getArray(sortCriterion);

%

fmt:setLocale value=${requestScope.lang}/

fmt:bundle basename=com.parispano.latinamericaguide.resources.labels

html

head

titlefmt:message key=title_index_jsp//title

link rel=StyleSheet type=text/css href=css/latinamericaguide.css/

/head

body

div id=logo_home

img src=./media/logo_atlas.gif alt=

/div

div id=advertisement

jsp:directive.include file=pages/modules/indexmodule.jsp /

/div

div id=left-column

hola toto

/div



div id=country-list-box

div id=language

current language: ${requestScope.lang}br /

a
href=LanguageServlet?url=%=request.getRequestURL()%lang=po:RetrieveOther
Language locale=${requestScope.lang}/Change Language/abr /br /

/div

div id=top-left

div id=top-right

/div

/div

div id=title

img src=./media/po:I18nlizeImage imageName=atlas_latino
locale=${requestScope.lang}/ alt=

/div

div id=sortingForm

jsp:directive.include file=pages/sorterForm.jsp /

/div



table

tr

thfmt:message key=country_index_jsp//th

thfmt:message key=capital_index_jsp//th

thfmt:message key=landarea_index_jsp//th

thfmt:message key=population_index_jsp//th

thfmt:message key=gdp_index_jsp//th

thfmt:message key=gdp_per_capita_index_jsp//th

thfmt:message key=more_index_jsp//th

/tr



%

int rowCol=0;

for(int i=0; icountryArray.length; i++){

rowCol++;

Country country = (Country)countryArray[i];

out.println(tr  +
((rowCol%2==0)?(class=\evenRow\):(class=\oddRow\)) + );

out.println(td class=\countryName\ +country.getName() + /td);

out.println(td class=\countryCapital\ +country.getCapital() +
/td);

out.println(td class=\number\ + country.getFormattedLandArea() +
/td);

out.println(td class=\number\ +country.getFormattedPopulation() +
/td);

out.println(td class=\number\ +country.getFormattedGdp() + /td);

out.println(td class=\number\ +country.getFormattedGdp_per_head() +
/td);

out.println(tda class=\more\ href=\pais.jsp?countryID= +
country.getId() + \más.../a/td);

out.println(/tr);

}

%

/table





div id=bottom-left

div id=bottom-right

/div

/div



jsp:directive.include file=./pages/footer.jsp/

/div

br /







/body

/html

/fmt:bundle

**

Possible bug in Tomcat JSTL

2003-09-24 Thread Julien Martin
Hello,

I am struggling to get the fmt:message tag working in Tomcat 5.05.  Here is what I do 
and the result I get:

1. I set the locale using a el expressions as follows:
fmt:setLocale value=${requestScope.lang}/

2. I then choose a resource bundle as follows:
fmt:bundle basename=com.parispano.latinamericaguide.resources.labels

3. I finally display a message as follows:
fmt:message key=country_index_jsp/

I have to retranslate and recompile the jsp in order for the locale to be taken into 
account.

Is this a bug in Tomcat?  If no what I am getting wrong?

Thanks in advance,

Julien.

Bug JSTL

2003-09-24 Thread Julien Martin
Thanks for your reply Yann,
It turned out to be a bug.  I downloaded the latest standard.jar archive and it is now 
working fine.
Julien.

Jstl problem

2003-09-23 Thread Julien Martin
Hello,

I am developing an application that uses Jstl for internationalization.  I
store a string called lang in a request attribute (${requestScope.lang}).
This string is either fr or es.
My page is sometimes in french even though the lang attribute is es and
vice versa.  It seems as if the  ${requestScope.lang} is ignored.

Can anyone help please?

Here is the full content of my jsp:

**
%-- ==

Index Page

== --%

%@ page import =com.parispano.latinamericaguide.* %

%@ taglib uri=/WEB-INF/c.tld prefix=f %

%@ taglib uri=/WEB-INF/fmt.tld prefix=fmt %

%@ taglib uri=/WEB-INF/latinamericaguide.tld prefix=po %

%

/* We retrieve the Countries object from the servlet context. */

ServletContext sc = getServletContext();

Countries cs = (Countries)sc.getAttribute(countries);

/* We apply the sorting criterion. */

String sortCriterion = request.getParameter(sortCriterion);

Country[] countryArray = cs.getArray(sortCriterion);

%

fmt:setLocale value=${requestScope.lang}/

fmt:bundle basename=com.parispano.latinamericaguide.resources.labels

html

head

titlefmt:message key=title_index_jsp//title

link rel=StyleSheet type=text/css href=css/latinamericaguide.css/

/head

body

div id=logo_home

img src=./media/logo_atlas.gif alt=

/div

div id=advertisement

jsp:directive.include file=pages/modules/indexmodule.jsp /

/div

div id=left-column

hola toto

/div



div id=country-list-box

div id=language

current language: ${requestScope.lang}br /

a
href=LanguageServlet?url=%=request.getRequestURL()%lang=po:RetrieveOther
Language locale=${requestScope.lang}/Change Language/abr /br /

/div

div id=top-left

div id=top-right

/div

/div

div id=title

img src=./media/po:I18nlizeImage imageName=atlas_latino
locale=${requestScope.lang}/ alt=

/div

div id=sortingForm

jsp:directive.include file=pages/sorterForm.jsp /

/div



table

tr

thfmt:message key=country_index_jsp//th

thfmt:message key=capital_index_jsp//th

thfmt:message key=landarea_index_jsp//th

thfmt:message key=population_index_jsp//th

thfmt:message key=gdp_index_jsp//th

thfmt:message key=gdp_per_capita_index_jsp//th

thfmt:message key=more_index_jsp//th

/tr



%

int rowCol=0;

for(int i=0; icountryArray.length; i++){

rowCol++;

Country country = (Country)countryArray[i];

out.println(tr  +
((rowCol%2==0)?(class=\evenRow\):(class=\oddRow\)) + );

out.println(td class=\countryName\ +country.getName() + /td);

out.println(td class=\countryCapital\ +country.getCapital() +
/td);

out.println(td class=\number\ + country.getFormattedLandArea() +
/td);

out.println(td class=\number\ +country.getFormattedPopulation() +
/td);

out.println(td class=\number\ +country.getFormattedGdp() + /td);

out.println(td class=\number\ +country.getFormattedGdp_per_head() +
/td);

out.println(tda class=\more\ href=\pais.jsp?countryID= +
country.getId() + \más.../a/td);

out.println(/tr);

}

%

/table





div id=bottom-left

div id=bottom-right

/div

/div



jsp:directive.include file=./pages/footer.jsp/

/div

br /







/body

/html

/fmt:bundle

**


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



pageContext.forward ??

2003-09-15 Thread Julien Martin
Hello,

I am trying to redirect to a servlet called RedirectHome from within a
custom tag.

Within the tag class, I have a method called redirect. This method is
called when a certain condition is met.

I know the method is called thanks to the trace but oddly the
pageContext.forward appears to be ignored. I think I had it working on a 2.3
container but I won't work on the new 2.4 container...

Can anyone help?

Here is the code for the redirect method:

*
 public void redirect() {
System.out.println(redirect called);
try {
 pageContext.forward(RedirectHome);
}
catch (ServletException e) {
 e.printStackTrace();
}
catch (IOException e) {
 e.printStackTrace();
}

}
*

I use Tomcat 5.0

Julien.


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



pageContext.forward ??

2003-09-15 Thread Julien Martin
Thanks for your reply Tim,

1. What do you mean by committing the response?  Can you give me more
details?
2. I can't skip the page since my tag needs to be at the top of the jps
page.
3. There is only one resource performing a redirect.
4. I have included the whole tag class for your information.

Julien.



package com.parispano.latinamericaguide;

import java.io.IOException;

import javax.servlet.ServletContext;

import javax.servlet.ServletException;

import javax.servlet.jsp.JspException;

import javax.servlet.jsp.tagext.TagSupport;

/**

* @author Julien Martin

*/

public class SetCountryTag extends TagSupport {

private String countryID = null;

private ServletContext servletContext = null;

public int doStartTag() throws JspException {

try {

Countries cs = (Countries) servletContext.getAttribute(countries);

Country country = new Country();

if (countryID == null || countryID.equals()) {

System.out.println(-null ou vide);

redirect();

return 0;

}

int countryIDint = Integer.parseInt(countryID);

country = cs.getCountryFromId(countryIDint);

pageContext.setAttribute(country, country);

} catch (NoCountryFoundException e) {

redirect();

e.printStackTrace();

} catch (Exception e) {

e.printStackTrace();

}

return SKIP_BODY;

}

public int doEndTag() {

return EVAL_PAGE;

}

public String getCountryID() {

return (this.countryID);

}

public void setCountryID(String countryID) {

this.countryID = countryID;

}

public ServletContext getServletContext() {

return servletContext;

}

public void setServletContext(ServletContext servletContext) {

this.servletContext = servletContext;

}

public void redirect() {

System.out.println(redirect called);

try {

pageContext.forward(RedirectHome);

} catch (ServletException e) {

e.printStackTrace();

} catch (IOException e) {

e.printStackTrace();

}

}

}




- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 3:28 PM
Subject: Re: pageContext.forward ??


 I have no clue based on the current info but
 1) Make sure your repsonse is committed before forward. This will be
obvious
 if you see and IllegalStateException
 2) Make sure there is not another page (resource,..) performing another
 redirect or similar
 3) Is your custom tag returning Tag.SKIP_PAGE to ensure the rest of your
JSP
 page is ignored? If not - is your JSP page doing anything wacky?


 -Tim


 Julien Martin wrote:

  Hello,
 
  I am trying to redirect to a servlet called RedirectHome from within a
  custom tag.
 
  Within the tag class, I have a method called redirect. This method is
  called when a certain condition is met.
 
  I know the method is called thanks to the trace but oddly the
  pageContext.forward appears to be ignored. I think I had it working on a
2.3
  container but I won't work on the new 2.4 container...
 
  Can anyone help?
 
  Here is the code for the redirect method:
 
  *
   public void redirect() {
  System.out.println(redirect called);
  try {
 
pageContext.forward(RedirectHome);
  }
  catch (ServletException e) {
   e.printStackTrace();
  }
  catch (IOException e) {
   e.printStackTrace();
  }
 
  }
  *
 
  I use Tomcat 5.0
 
  Julien.
 
 
  -
  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]



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



Thank you Tim (re pageContex.forward)

2003-09-15 Thread Julien Martin
Thank you Tim,
Thanks very much for your help.  That sorted it.
Julien.

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 4:11 PM
Subject: Re: pageContext.forward ??


 1) See the FAQ, there is a question dedicated to IllegalStateException
 2) If you are doing a .forward() the rest of the JSP page SHOULD BE
IGNORED.
 Otherwise - you have a bad coding style. The stuff executing in your JSP
 after the forward is doine inside the custom tag is probably doing bad
things
 3) Its not a redirect - your are doing a forward. The 2 words have very
 different meanings. forward() is an internal redirect. Redirect is
typically
 stated as an external browser redirect
 4) See 2

 -Tim

 Julien Martin wrote:

  Thanks for your reply Tim,
 
  1. What do you mean by committing the response?  Can you give me more
  details?
  2. I can't skip the page since my tag needs to be at the top of the jps
  page.
  3. There is only one resource performing a redirect.
  4. I have included the whole tag class for your information.
 
  Julien.
 



 -
 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]



aliases under tomcat

2003-08-11 Thread Julien Martin
Hello,

In order to internationalize a web application I would like several hosts to map to a 
unique directory i.e. fr.localhost and en.localhost to map to localhost. 

I have created an alias under the localhost host of tomcat which I have called 
fr.localhost.  When I type in http://fr.localhost:8080/ in the address bar I get 
nothing (impossible to find the server).

Can anyone help?

Julien.

aliases under tomcat

2003-08-08 Thread Julien Martin
Hello,
I would like fr.localhost and en.localhost to resolve to localhost.  I have 
created the aliases under tomcat but I was told by someone on the mailing list that 
further configuration was needed on the dns side.  I am running w2k. Can anyone tell 
me how to configure my w2k machine please?  (I know this is half relevant to tomcat 
but maybe someone can help me.)
Julien.

Hooking Tomcat to Apache HTTPD

2003-07-30 Thread Julien Martin
Hello,
I am trying to connect Tomcat 5.0 to Apache HTTPD 2.0.47 on a windows 2k platform.
I configured the workers2.properties file as follows:

**
[logger]
level=DEBUG
[config:]
#file=${serverRoot}/conf/workers2.properties
file=D:/system/Apache Group/Apache2/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0
[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0
[lb:lb]
info=Default load balancer.
debug=0
#[lb:lb_1]
#info=A second load balancer.
#debug=0
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
#[channel.socket:localhost:8019]
#info=A second tomcat instance. 
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0
#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[status:]
info=Status worker, displays runtime informations
[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
OPT=-Djava.class.path=D:/system/Tomcat 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 
5.0/server/lib//commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=0
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=D:/system/Apache Group/Apache2/logs/stdout.log
stderr=D:/system/Apache Group/Apache2/logs/stderr.log
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
#alias=myVirtualHost:8003
#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
#context=/ex
#group=lb_1
[uri:/examples]
info=Example webapp in the default context. 
context=/jsp-examples
debug=0
#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0
[uri:/examples/servlets/*]
info=Prefix mapping
[uri:/examples/*.jsp]
info=Extension mapping
[uri:/examples/*]
info=Map the whole webapp
[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10
**

I get a tomcat style 404 error when I try to access the following url: 
http://localhost/examples

Here is what I get in the apache error log file:
**
[Wed Jul 30 17:28:29 2003] [notice] Parent: Created child process 748
[Wed Jul 30 17:28:30 2003] [notice] Child 748: Child process is running
[Wed Jul 30 17:28:30 2003] [notice] vm.init(): Jni lib: C:\Program 
Files\Java\j2re1.4.1_03\bin\client\jvm.dll
[Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: 
-Djava.class.path=D:/system/Tomcat 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 
5.0/server/lib//commons-logging.jar
[Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Dtomcat.home=${TOMCAT_HOME}
[Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: 
-Dcatalina.home=${TOMCAT_HOME}
[Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Xmx128M
[Wed Jul 30 17:28:31 2003] [notice] vm.open2() done
[Wed Jul 30 17:28:31 2003] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter 
[Wed Jul 30 17:28:32 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Wed Jul 30 17:28:32 2003] [error] Can't find class org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at java.lang.ClassLoader.defineClass0(Native Method)

Hooking Tomcat to Apache HTTPD

2003-07-30 Thread Julien Martin
Hello,
I changed the file. I still get a 404 error from tomcat..
Julien.

- Original Message -
From: Eric J. Pinnell [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 5:37 PM
Subject: Re: Hooking Tomcat to Apache HTTPD


 Hi,

 Why don't you slim down that file and try something simple first.  Like:

 [shm]
 file=${serverRoot}/logs/shm.file
 size=1048576

 # socket channel
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 # Uri mapping
 [uri:/examples/*]
 worker=ajp13:localhost:8009

 -e

 On Wed, 30 Jul 2003, Julien Martin wrote:

  Hello,
  I am trying to connect Tomcat 5.0 to Apache HTTPD 2.0.47 on a windows 2k
platform.
  I configured the workers2.properties file as follows:
 
  **
  [logger]
  level=DEBUG
  [config:]
  #file=${serverRoot}/conf/workers2.properties
  file=D:/system/Apache Group/Apache2/conf/workers2.properties
  debug=0
  debugEnv=0
  [uriMap:]
  info=Maps the requests. Options: debug
  debug=0
  # Alternate file logger
  #[logger.file:0]
  #level=DEBUG
  #file=${serverRoot}/logs/jk2.log
  [shm:]
  info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
  file=${serverRoot}/logs/jk2.shm
  size=100
  debug=0
  disabled=0
  [workerEnv:]
  info=Global server options
  timing=1
  debug=0
  # Default Native Logger (apache2 or win32 )
  # can be overriden to a file logger, useful
  # when tracing win32 related issues
  #logger=logger.file:0
  [lb:lb]
  info=Default load balancer.
  debug=0
  #[lb:lb_1]
  #info=A second load balancer.
  #debug=0
  [channel.socket:localhost:8009]
  info=Ajp13 forwarding over socket
  debug=0
  tomcatId=localhost:8009
  #[channel.socket:localhost:8019]
  #info=A second tomcat instance.
  #debug=0
  #tomcatId=localhost:8019
  #lb_factor=1
  #group=lb
  #group=lb_1
  #disabled=0
  #[channel.un:/opt/33/work/jk2.socket]
  #info=A second channel connecting to localhost:8019 via unix socket
  #tomcatId=localhost:8019
  #lb_factor=1
  #debug=0
  [channel.jni:jni]
  info=The jni channel, used if tomcat is started inprocess
  [status:]
  info=Status worker, displays runtime informations
  [vm:]
  info=Parameters used to load a JVM in the server process
  #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
  OPT=-Djava.class.path=D:/system/Tomcat
5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat
5.0/server/lib//commons-logging.jar
  OPT=-Dtomcat.home=${TOMCAT_HOME}
  OPT=-Dcatalina.home=${TOMCAT_HOME}
  OPT=-Xmx128M
  #OPT=-Djava.compiler=NONE
  disabled=0
  [worker.jni:onStartup]
  info=Command to be executed by the VM on startup. This one will start
tomcat.
  class=org/apache/jk/apr/TomcatStarter
  ARG=start
  disabled=0
  stdout=D:/system/Apache Group/Apache2/logs/stdout.log
  stderr=D:/system/Apache Group/Apache2/logs/stderr.log
  [worker.jni:onShutdown]
  info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
  class=org/apache/jk/apr/TomcatStarter
  ARG=stop
  disabled=0
  [uri:/jkstatus/*]
  info=Display status information and checks the config file for changes.
  group=status:
  #[uri:127.0.0.1:8003]
  #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to
test it
  #alias=myVirtualHost:8003
  #[uri:127.0.0.1:8003/ex]
  #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
localhost:8019 )
  #context=/ex
  #group=lb_1
  [uri:/examples]
  info=Example webapp in the default context.
  context=/jsp-examples
  debug=0
  #[uri:/examples1/*]
  #info=A second webapp, this time going to the second tomcat only.
  #group=lb_1
  #debug=0
  [uri:/examples/servlets/*]
  info=Prefix mapping
  [uri:/examples/*.jsp]
  info=Extension mapping
  [uri:/examples/*]
  info=Map the whole webapp
  [uri:/examples/servlets/HelloW]
  info=Exampel with debug enabled.
  debug=10
  **
 
  I get a tomcat style 404 error when I try to access the following url:
http://localhost/examples
 
  Here is what I get in the apache error log file:
  **
  [Wed Jul 30 17:28:29 2003] [notice] Parent: Created child process 748
  [Wed Jul 30 17:28:30 2003] [notice] Child 748: Child process is running
  [Wed Jul 30 17:28:30 2003] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2re1.4.1_03\bin\client\jvm.dll
  [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2()
Option: -Djava.class.path=D:/system/Tomcat
5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat
5.0/server/lib//commons-logging.jar
  [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2()
Option: -Dtomcat.home=${TOMCAT_HOME}
  [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2()
Option: -Dcatalina.home=${TOMCAT_HOME}
  [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Xmx128M
  [Wed Jul 30 17:28:31 2003] [notice] vm.open2() done
  [Wed Jul 30 17:28:31 2003] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
  [Wed Jul 30 17:28:32 2003] [notice] Loaded
org/apache/jk/apr/TomcatStarter
  [Wed Jul 30 17:28:32 2003

Re: Hooking Tomcat to Apache HTTPD

2003-07-30 Thread Julien Martin
Hello John and all,
I altered the workers2.properties using this:


[shm]
file=${serverRoot}/logs/shm.file
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009


and I don't get anymore error in the error.log file.  But I still get a 404
error from tomcat when I use the following url: http://localhost/examples
Julien.


- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 5:56 PM
Subject: Re: Hooking Tomcat to Apache HTTPD


 Julien Martin wrote:

  [Wed Jul 30 17:28:32 2003] [error] Can't find class
org/apache/jk/apr/AprImpl
  java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:502)

 NoClassDefFoundError typically means that you have a class file or a JAR
 file that is not the version your application is expecting.

 Do you have a previous install of Tomcat or something else hanging
 around on your system?

 I would verify that you only have one copy of things like servlet.jar,
 etc., that the copies are the copies and versions you expect, and that
 your paths are set correctly.

 John




 -
 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]



SOS Tomcat 5 and Apache httpd 2.0.47 on windows w2k

2003-07-30 Thread Julien Martin
Hello,

I am still trying to run tomcat 5 together with apache httpd.  I altered the
workers2.properties file as one of you suggested.  Here it is now:

**
[shm]
file=${serverRoot}/logs/shm.file
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009
**

I get a tomcat-style 404 error when I try the following url:
http://localhost/examples

I am stuck, can anyone please help?

Thanks in advance,

Julien.


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



SOS Tomcat 5 and Apache httpd 2.0.47 on windows w2k

2003-07-30 Thread Julien Martin
Hello,
Thanks to Eric's reply, I altered the path in workers2.properties as follows
instead of [uri:/examples/*] I now have [uri:/*]
I am now able to view the Tomcat home page.
Thank you John and Eric,
Julien.


- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 9:46 PM
Subject: Re: SOS Tomcat 5 and Apache httpd 2.0.47 on windows w2k



 And:

 - are the JK2 settings set correctly in httpd.conf?

 - is ${serverRoot} defined anywhere, and if so, where?

 - is the 404 an Apache 404 or a Tomcat 404?

 John

 Eric J. Pinnell wrote:

  Is tomcat listening on port 8009?
 
  -e
 
  On Wed, 30 Jul 2003, Julien Martin wrote:
 
 
 Hello,
 
 I am still trying to run tomcat 5 together with apache httpd.  I altered
the
 workers2.properties file as one of you suggested.  Here it is now:
 
 **
 [shm]
 file=${serverRoot}/logs/shm.file
 size=1048576
 
 # socket channel
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 # Uri mapping
 [uri:/examples/*]
 worker=ajp13:localhost:8009
 **
 
 I get a tomcat-style 404 error when I try the following url:
 http://localhost/examples
 
 I am stuck, can anyone please help?
 
 Thanks in advance,
 
 Julien.
 
 
 -
 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]
 



 -
 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]



directory mapping

2003-07-29 Thread julien-martin
Hello,
I would like to create a directory mapping as follows:
-a user types in http://localhost:8080/en/mydirectory (virtual directory)
which would map to http://localhost:8080/mydirectory (physical directory)
-a user types in http://localhost:8080/fr/mydirectory (other virtual
directory) which would map to http://localhost:8080/mydirectory (same
physical directory as before)
Is this possible with tomcat?
Thanks in advance,
Julien.


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



connecting tomcat 5.0 to apache 2.0.47

2003-07-29 Thread Julien Martin
Hello,

After an extensive search in the mailing lists and and the web, I finally
ask for some help.

I am trying to connect apache tomcat 5.0 to apache 2.0.47 on a windows 2000
platform.

1. I am confused as the module directory of my install contains X.so files
and no X.dlls.  I thought X.so files were only for Unix. Is this new to the
2.0.47 release?
2. I can't find any mod_jk2.so in that directory nor can I find so file in
tomcat.  What is the file I need and where can I get it from?

Thanks in advance,

Julien.


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



Connecting tomcat 5.0 to apache 2.0.47

2003-07-29 Thread Julien Martin
Hello,
I took the following steps:
1. I added the following line to httpd.conf:
LoadModule jk2_module modules/mod_jk_2.0.46.dll
2. I copied the mod_jk_2.0.46.dll into the modules directory.
Here is what I get:
Can't locate api module structure in file %path%\mod_jk_2.0.46.dll
Where can I get the 2.0.47 so module from?
Julien.



- Original Message -
From: Julien Martin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 8:05 PM
Subject: connecting tomcat 5.0 to apache 2.0.47


 Hello,

 After an extensive search in the mailing lists and and the web, I finally
 ask for some help.

 I am trying to connect apache tomcat 5.0 to apache 2.0.47 on a windows
2000
 platform.

 1. I am confused as the module directory of my install contains X.so files
 and no X.dlls.  I thought X.so files were only for Unix. Is this new to
the
 2.0.47 release?
 2. I can't find any mod_jk2.so in that directory nor can I find so file in
 tomcat.  What is the file I need and where can I get it from?

 Thanks in advance,

 Julien.


 -
 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]



Where are translated classes stored in Tomcat 5??

2003-07-27 Thread Julien Martin
Hello again,
I can't find any trace of the translated classes in the $catalina_home\work
directory for the web application I am working on.  How do I configure
tomcat in order for the translated files to go there?  Note that I am using
jwsdp 1.2.
Thanks in adavance,
Julien.

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, July 27, 2003 12:45 AM
Subject: Re: Where are translated classes stored in Tomcat 5??


 Same spot as 4. Somewhere beneath $CATALINA_HOME/work - its just a little
 deeper in the dir structure.

 -Tim

 Julien Martin wrote:
  Hello,
  I am having some problems with tomcat5.  I don't know where translated
files (something_jsp.java) are stored.  It used to be stored in
%catalina_home%\work\catalina\localhost\myapp for an app called myapp in
tomcat 4x and I can't find the file anymore now.  Can you help?
  Thanks in advance,
  Julien.


 -
 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]



Where are translated classes stored in Tomcat 5??

2003-07-26 Thread Julien Martin
Hello,
I am having some problems with tomcat5.  I don't know where translated files 
(something_jsp.java) are stored.  It used to be stored in 
%catalina_home%\work\catalina\localhost\myapp for an app called myapp in tomcat 4x and 
I can't find the file anymore now.  Can you help?
Thanks in advance,
Julien.

Tomcat Class Loader (parent/child tree)

2003-06-17 Thread julien-martin

Hello,

According to the tomcat documentation: 

Normally, when a class loader is asked to load a particular
class or resource, it delegates the request to a parent class
loader first, and then looks in its own repositories only if
the parent class loader(s) cannot find the requested class or
resource.

From what I understand from the documentation, the common/lib
directory is a parent to the webapp1/lib directory and therefore
according to the preceding quote, Tomcat should look first in
common/lib and THEN in webapp1/lib.

I tried putting two identically-named classes in the common/lib
directory and in the webapp1/lib.  My jsp uses the class loaded
from webapp1/lib and not the class loaded from common/lib.  Is
this not contradictory??

Julien.


-
Sent using MailStart.com ( http://MailStart.Com/welcome.html )
The FREE way to access your mailbox via any web browser, anywhere!


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



debug levels??

2003-06-16 Thread julien-martin

Hello,
Where can I find documentation about tomcat 5 context and logger
debug levels.  Debug levels appear to range from 0 to 9. What
does each number mean?
Julien.

-
Sent using MailStart.com ( http://MailStart.Com/welcome.html )
The FREE way to access your mailbox via any web browser, anywhere!


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



Problem with request scope example

2003-06-09 Thread Julien Martin
Hello,

I am trying to understand the use of the request scope.

I have two jsp and a bean class as follows:

***first jsp
jsp:useBean id=person class=paquet.Person scope=request
jsp:setProperty name=person property=age value=5/
jsp:setProperty name=person property=name value=toto/
html
head
titleFirst Page/title
/head
body
jsp:getProperty name=person property=age/br /
jsp:getProperty name=person property=name/br /
 a href=index2.jsphere/a
 /body
/html
/jsp:useBean


***second jsp
%@ page import=paquet.Person %
jsp:useBean id=p class=paquet.Person scope=request   
%
p = (Person)request.getAttribute(person);
%
html
head
titleSecond Page/title
/head
body
jsp:getProperty name=p property=age/br /
jsp:getProperty name=p property=name/br /
/body
/html
/jsp:useBean



***java bean
package paquet;
public class Person {
private int age;
private String name;
public int getAge() {
return age;
}
public String getName() {
return name;
}
public void setAge(int i) {
age = i;
}
public void setName(String string) {
name = string;
}
}


I am trying to display on jsp two the properties set in jsp one. It is not
working. Can anyone help?

Thanks in advance,

Julien.


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



Tomcat 5

2003-06-07 Thread Julien Martin
Hello,

I am having a problem with tomcat5/jwsdp-1.2.
Tomcat doesn't take into account changes made to jsp. If I delete the
generated java file and the class file compiled from it, Tomcat won't
translate(jsp-java) it and compile (java-class) it.

The specific file I am having a problem with is
jsp%jwsdp_home%\webapps\jsp-examples\jsp2\el\implicit-objects.jsp

Please help.

Julien.


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



tomcat 5 won't compile my jsp

2003-06-07 Thread Julien Martin
Hello,

I am having a problem with tomcat5/jwsdp-1.2.
Tomcat doesn't take into account changes made to jsp. If I delete the
generated java file and the class file compiled from it, Tomcat won't
translate(jsp-java) it and compile (java-class) it.

The specific file I am having a problem with is
jsp%jwsdp_home%\webapps\jsp-examples\jsp2\el\implicit-objects.jsp

Please help.

Julien.


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



How to display debug messages in English

2003-06-03 Thread Julien Martin
Hello,
I am running Tomcat under windows 2000 in French and Tomcat debug messages
(error 500) are displayed in French.  How can I switch back to english?
Thanks in advance,
Julien Martin.


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



Parameter tag nested within include action tag

2001-12-05 Thread julien-martin

Hello,
I have two server pages include01.jsp and include02.jsp.  One is calling
the other one through the include action tag:

jsp:include page=Include_Param02.jsp flush=true/
jsp:param name=myVar value=Toto /
/jsp:include


I am trying to have the second page display the parameter:

%= request.getParameter(myVar) %

And I always get null.  I tried the same thing with the forward action and
it works fine.

Can anyone help?

Thanks in advance,

Julien Martin.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Application variables timeout under Tomcat

2001-12-04 Thread julien-martin

I am running Tomcat 4.0.1 and I would like to know how long application
variables are kept in memory.  Do they eventually timeout or are they kept
in memory until the next server reboot?
Can anyone help?
Thanks in advance,
Julien.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]