NamingException

2005-08-08 Thread Asad Habib
Hello. I am getting a NamingException while Tomcat processes Global JNDI
Resources. Any idea why this is happening? I am using Mac OS X Tiger,
Eclipse 3.1, and the Tomcat Eclipse Plugin 3.1.0 from Sysdeo. This error
occurs when I try to start Tomcat from within Eclipse using the plugin. It
occurs with both Tomcat 4.x and Tomcat 5.x. I have provided the stack
trace below. Any help would be greatly appreciated. Thanks.

- Asad


Aug 8, 2005 2:51:42 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/Library/jakarta-apache-4.1.31/conf/tomcat-users.xml.new (No such file or
directory)
at org.apache.naming.NamingContext.lookup(NamingContext.java:797)
at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:167)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:134)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:102)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2136)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
javax.naming.NamingException:
/Library/jakarta-apache-4.1.31/conf/tomcat-users.xml.new (No such file or
directory)
at org.apache.naming.NamingContext.lookup(NamingContext.java:797)
at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:250)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.start: LifecycleException:  No UserDatabase component found under
key UserDatabase
LifecycleException:  No UserDatabase component found under key
UserDatabase
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:257)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException:  Coyote connector has not been started
LifecycleException:  Coyote connector has not been started
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:499)
at

Re: NamingException

2005-08-08 Thread Anto Paul
read the error message. It is complaining 
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/Library/jakarta-apache-4.1.31/conf/tomcat-users.xml.new

check whether the file
/Library/jakarta-apache-4.1.31/conf/tomcat-users.xml exist.

On 8/8/05, Asad Habib [EMAIL PROTECTED] wrote:
 Hello. I am getting a NamingException while Tomcat processes Global JNDI
 Resources. Any idea why this is happening? I am using Mac OS X Tiger,
 Eclipse 3.1, and the Tomcat Eclipse Plugin 3.1.0 from Sysdeo. This error
 occurs when I try to start Tomcat from within Eclipse using the plugin. It
 occurs with both Tomcat 4.x and Tomcat 5.x. I have provided the stack
 trace below. Any help would be greatly appreciated. Thanks.
 
 - Asad
 
 
 Aug 8, 2005 2:51:42 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 GlobalResourcesLifecycleListener: Exception processing Global JNDI
 Resources
 javax.naming.NamingException:
 /Library/jakarta-apache-4.1.31/conf/tomcat-users.xml.new (No such file or
 directory)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:797)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
 at
 org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:167)
 at
 org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:134)
 at
 org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:102)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2136)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.31
 javax.naming.NamingException:
 /Library/jakarta-apache-4.1.31/conf/tomcat-users.xml.new (No such file or
 directory)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:797)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
 at
 org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:250)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 Catalina.start: LifecycleException:  No UserDatabase component found under
 key UserDatabase
 LifecycleException:  No UserDatabase component found under key
 UserDatabase
 at
 org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:257)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 

RE: query problem

2005-08-08 Thread ganesan malairaja

i have checked all.. there is no other username

i have put all the codes involved in the coding..

please point out the mistake ..


html
head
title
Staffing
/title
/head
h1Add Staff/h1
body

%@ page language=java import=java.sql.* %
%!
String con_url =  jdbc:mysql:///AAAServer?user=tjcpassword=password;
Connection c;
Statement stmt1;
String username,password,AdminName;
%

%




   try
   {
   Class.forName(com.mysql.jdbc.Driver).newInstance();
   }

   catch (Exception E)
   {

   System.err.println(CONCEPT: Unable to Load Driver );
   E.printStackTrace();
   }

%



table border=0 cellpadding=10
tr


%

   //   System.out.println(Connecting...);
   c = DriverManager.getConnection(con_url);
   //  System.out.println(Connection ok:  + c);



stmt1 = c.createStatement();
%
thUserName/th
td
form
input type=text name=username1 size=8

%
username = request.getParameter(username1);
%

/form
/td
/tr
tr
thName/th
td
form
input type=text name=AdminName size=12

/form
/td
/tr
tr
thPassword/th
td
form
input type=password name=password size=8
input type=submit name=Add value=AddStaff
/form
/td
/tr
/table
/body
/html
%

String submit1 = request.getParameter(Add);

if(submit1 == null)
{


}


else
{


password = request.getParameter(password);
AdminName = request.getParameter(AdminName);
		String query7 = Insert into 
Admin(UserName,PassWord,Admin_type,Admin_Name) 
values('+username+','+password+', 'Staff','+AdminName+');


stmt1.executeUpdate(query7);
stmt1.close();

}
%



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



Re: URLConnection.getOutputStream().write() fails

2005-08-08 Thread Ronald Klop

Did you try URLConnection.setDoOutput(true)?

Ronald.

On Wed Aug 03 23:52:45 CEST 2005 Tomcat Users List 
tomcat-user@jakarta.apache.org wrote:

PROBLEM:

Trying to write to URL via URLConnection.getOutputStream().write() fails.



In the main method below, the code attempts to write some bytes to HYPERLINK
http://localhost:8080/temp/sample.txthttp://localhost:8080/temp/sample.txt
.

http://localhost:8080/temp/sample.txt; is resolvable in a web browser and
actually points to:

${tomcat.home}/server/webapps/ROOT/temp/samples.txt



Executing main does not result in any bytes being written.

Any input appreciated, thanks :-)



SERVER:

Apache Tomcat/4.0.1

Windows XP using Java 1.4.2_06



CLIENT CODE:

Windows XP using Java 1.4.2_06



public static void main(String[] args)

{

OutputStream os = null;

try

{

final String string =
http://localhost:8080/temp/sample.txt;;

URL url = new URL(string);

final URLConnection conn = url.openConnection();

System.out.println(openConnection=+conn);

boolean doOutput = conn.getDoOutput();

conn.setDoOutput(true);

conn.setDoInput(true);

conn.setUseCaches(false);

conn.setAllowUserInteraction(true);

doOutput = conn.getDoOutput();



System.out.println(doOutput is enabled:+doOutput);



final String data = Hello World;

conn.setRequestProperty(Content-length,
String.valueOf(data.length()));



os = conn.getOutputStream();

final BufferedOutputStream bos = new
BufferedOutputStream(os);

System.out.println(bos='+bos+');

//now write some bytes

final byte[] bytes = data.getBytes();

bos.write(bytes);

}

catch (Exception e)

{

e.printStackTrace();

}

finally

{

if(os != null)

{

try

{

os.flush();

os.close();

}

catch (IOException e)

{

e.printStackTrace();

}

}

}

}



CLIENT-OUTPUT:

openConnection=sun.net.www.protocol.http.HttpURLConnection:http://localhost:
8080/temp/sample.txt

doOutput is enabled:true

bos='[EMAIL PROTECTED]'






--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.9/62 - Release Date: 8/2/2005





Easy EL question

2005-08-08 Thread Guillaume Lederrey
  Hello !

  I'm still having problem with all the different syntax used in
JSP... so excuse my question if it sound really stupid !

  I'm having to iterate on the values of a Map. So I'd like
something like that :

c:catch
  c:set var=items value=${itemsMap.values}/
/c:catch

c:forEach items=${items} var=item
  [do something]
/c:forEach

  Of course, it doesnt work because there is no getter in a Map to
get the values ...  There is probably a very easy and standard way to
do exactly that ... could you help me on that one ?

  Thanks


 Guillaume

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



Exception during the startup!

2005-08-08 Thread Tewari,kuldeep
Hi,

When I try to run my jsp , I get following error message:

 
javax.servlet.ServletException: org/apache/xalan/templates/OutputProperties
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:680)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:739)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
20)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:288)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:263)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2748)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:199)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:630)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:463)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:631)
at java.lang.Thread.run(Unknown Source)
root cause 
java.lang.NoClassDefFoundError: org/apache/xalan/templates/OutputProperties
at com.test.wmtool.gui.SessionHelper.saveState(Unknown Source)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:731)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
20)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:288)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:263)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at

RE: Easy EL question

2005-08-08 Thread Allistair Crossley
you use .key or .value, e.g

item.value['key']
item.key

Allistair

 -Original Message-
 From: Guillaume Lederrey [mailto:[EMAIL PROTECTED]
 Sent: 08 August 2005 10:34
 To: Tomcat Users List
 Subject: Easy EL question
 
 
   Hello !
 
   I'm still having problem with all the different syntax used in
 JSP... so excuse my question if it sound really stupid !
 
   I'm having to iterate on the values of a Map. So I'd like
 something like that :
 
 c:catch
   c:set var=items value=${itemsMap.values}/
 /c:catch
 
 c:forEach items=${items} var=item
   [do something]
 /c:forEach
 
   Of course, it doesnt work because there is no getter in a Map to
 get the values ...  There is probably a very easy and standard way to
 do exactly that ... could you help me on that one ?
 
   Thanks
 
 
  Guillaume
 
 -
 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: Exception during the startup!

2005-08-08 Thread Jon Wingfield

The key info in the stracktrace is:

root cause
java.lang.NoClassDefFoundError: org/apache/xalan/templates/OutputProperties
at com.test.wmtool.gui.SessionHelper.saveState(Unknown Source)


The SessionHelper class uses Xalan classes that the webapp classloader 
cannot find at runtime.
This could be due Xalan versioning problems between development and 
deployment. The Tomcat release notes contain info on how to change the 
version of xalan that Tomcat uses:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RELEASE-NOTES.txt

HTH,

Jon

Tewari,kuldeep wrote:

Hi,

When I try to run my jsp , I get following error message:

 
javax.servlet.ServletException: org/apache/xalan/templates/OutputProperties

at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:680)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:739)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
20)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:288)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:263)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2748)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:199)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:630)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:463)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:631)
at java.lang.Thread.run(Unknown Source)
root cause 
java.lang.NoClassDefFoundError: org/apache/xalan/templates/OutputProperties

at com.test.wmtool.gui.SessionHelper.saveState(Unknown Source)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:731)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
20)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:288)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at

Re: anonymising Tomcat

2005-08-08 Thread Paul Singleton

Rainer Jung wrote:

Take a look at

./org/apache/catalina/util/ServerInfo.properties

in CATALINA_HOME/server/lib/catalina.jar.

It contains:

server.info=Apache Tomcat/5.5.10
server.number=5.5.10.0

You can put different values in there and deploy the new properties file in

CATALINA_HOME/server/classes/org/apache/catalina/util/ServerInfo.properties


Do you mean that I can leave catalina.jar where it is, make
a skeleton of folders in server/classes with just my new
ServerInfo.properties, and the properties in server/classes/...
will override those in the jar?

Or must I unpack catalina.jar into server/classes and then
delete it from server/lib before altering the properties?

Are all references to Tomcat's description and version
number derived from these properties, and is this new in
5.5.10 (we use 5.5.9 in production)?

cheers

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.2/65 - Release Date: 7/Aug/2005


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



Re: Easy EL question

2005-08-08 Thread Guillaume Lederrey
  Thanks for your answer !  But I'm afraid I dont really understand
how to use it ...  Do you mean I should iterate on the keys of my Map
? But then the question is of course How do I iterate on the keys ?.

  Maybe I should be more precise in my example, so here is my actual
code (which doesnt work).

dmaAssistantSession.deletedDmasSimple is a Map of beans (id, label).
The key to the Map is the id of the bean itself (but I dont use the
key here).

c:catch
  c:set var=deletedDmas value=${dmaAssistantSession.deletedDmasSimple}/
/c:catch

   ul id=overviewDeletedDmas
  c:forEach items=${deletedDmas} var=deletedDma
li
  html:link action=/DMAAssistant/ChooseDeletedDMAToCancelRemove
paramId=id paramName=deletedDma paramProperty=id
bean:message name=deletedDma property=label/
  /html:link
/li
  /c:forEach
/ul

  Thanks a lot for the answer, but I would be even more thankfull if a
bit more explanation goes with it ...

On 8/8/05, Allistair Crossley [EMAIL PROTECTED] wrote:
 you use .key or .value, e.g
 
 item.value['key']
 item.key
 
 Allistair
 
  -Original Message-
  From: Guillaume Lederrey [mailto:[EMAIL PROTECTED]
  Sent: 08 August 2005 10:34
  To: Tomcat Users List
  Subject: Easy EL question
 
 
Hello !
 
I'm still having problem with all the different syntax used in
  JSP... so excuse my question if it sound really stupid !
 
I'm having to iterate on the values of a Map. So I'd like
  something like that :
 
  c:catch
c:set var=items value=${itemsMap.values}/
  /c:catch
 
  c:forEach items=${items} var=item
[do something]
  /c:forEach
 
Of course, it doesnt work because there is no getter in a Map to
  get the values ...  There is probably a very easy and standard way to
  do exactly that ... could you help me on that one ?
 
Thanks
 
 
   Guillaume
 
  -
  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: Easy EL question

2005-08-08 Thread Allistair Crossley
Hi,

With what you supplied, the answer was the best you could have expected. The 
deletedDma item per loop iteration is of type MapEntry. This has getKey and 
getValue, hence why you can call deletedDma.key and deletedDma.value. 

In html your link would be

a 
href=/DMAAssistant/ChooseDeletedDMAToCancelRemove?id=${deletedDma.value.id}Remove/a

I am not sure if you can pass this into the html:link tag.

Try ...

// you don't need this block by the way
c:catch
  c:set var=deletedDmas 
value=${dmaAssistantSession.deletedDmasSimple}/
/c:catch


ul id=overviewDeletedDmas
  c:forEach items=${dmaAssistantSession.deletedDmasSimple} var=deletedDma

li
  html:link 
action=/DMAAssistant/ChooseDeletedDMAToCancelRemove
 paramId=id paramName=deletedDma.value paramProperty=id
 bean:message name=deletedDma.value property=label /
  /html:link
/li
  /c:forEach
/ul

 -Original Message-
 From: Guillaume Lederrey [mailto:[EMAIL PROTECTED]
 Sent: 08 August 2005 12:10
 To: Tomcat Users List
 Subject: Re: Easy EL question
 
 
   Thanks for your answer !  But I'm afraid I dont really understand
 how to use it ...  Do you mean I should iterate on the keys of my Map
 ? But then the question is of course How do I iterate on the keys ?.
 
   Maybe I should be more precise in my example, so here is my actual
 code (which doesnt work).
 
 dmaAssistantSession.deletedDmasSimple is a Map of beans (id, label).
 The key to the Map is the id of the bean itself (but I dont use the
 key here).
 
 c:catch
   c:set var=deletedDmas 
 value=${dmaAssistantSession.deletedDmasSimple}/
 /c:catch
 
ul id=overviewDeletedDmas
   c:forEach items=${deletedDmas} var=deletedDma
 li
   html:link 
 action=/DMAAssistant/ChooseDeletedDMAToCancelRemove
 paramId=id paramName=deletedDma paramProperty=id
 bean:message name=deletedDma property=label/
   /html:link
 /li
   /c:forEach
 /ul
 
   Thanks a lot for the answer, but I would be even more thankfull if a
 bit more explanation goes with it ...
 
 On 8/8/05, Allistair Crossley [EMAIL PROTECTED] wrote:
  you use .key or .value, e.g
  
  item.value['key']
  item.key
  
  Allistair
  
   -Original Message-
   From: Guillaume Lederrey [mailto:[EMAIL PROTECTED]
   Sent: 08 August 2005 10:34
   To: Tomcat Users List
   Subject: Easy EL question
  
  
 Hello !
  
 I'm still having problem with all the different syntax used in
   JSP... so excuse my question if it sound really stupid !
  
 I'm having to iterate on the values of a Map. So I'd like
   something like that :
  
   c:catch
 c:set var=items value=${itemsMap.values}/
   /c:catch
  
   c:forEach items=${items} var=item
 [do something]
   /c:forEach
  
 Of course, it doesnt work because there is no getter 
 in a Map to
   get the values ...  There is probably a very easy and 
 standard way to
   do exactly that ... could you help me on that one ?
  
 Thanks
  
  
Guillaume
  
   
 -
   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]
 
 

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



Re: Easy EL question

2005-08-08 Thread Guillaume Lederrey
On 8/8/05, Allistair Crossley [EMAIL PROTECTED] wrote:
 Hi,
 
 With what you supplied, the answer was the best you could have expected. The 
 deletedDma item per loop iteration is of type MapEntry. This has getKey and 
 getValue, hence why you can call deletedDma.key and deletedDma.value.

Thanks a lot for the clarification (and for the short time between
question and answer, amazing !). I know, my question was probably not
clear enough, but ... I'm so uncomftable with JSP for the moment that
I dont really know how to ask the questions ...

  I finally resolved it with : 
c:forEach items=${deletedDmas} var=deletedDma
  html:link action=/DMAAssistant/ChooseDeletedDMAToCancelRemove
paramId=id paramName=deletedDma paramProperty=value.id
bean:message name=deletedDma property=value.label/
  /html:link
/c:forEach

  It might be of some help if somebody has the same problem as me one
of this day ...

 // you don't need this block by the way
// I know, it just help type a bit less when reusing the var ...
 c:catch
   c:set var=deletedDmas
 value=${dmaAssistantSession.deletedDmasSimple}/
 /c:catch


  Again, thanks a lot for your great help ! I think I'm slowly getting
into JSP ...

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



Re: anonymising Tomcat

2005-08-08 Thread Rainer Jung
Yes, that's how it works. I Think taht possibility already existed at 
least back to 4.0...


The order in which the different repositories are searched for classes 
(and property files) is defined in 
CATALINA_BASE/conf/catalina.properties. The file included in the usual 
distribution has classes directory before lib directory in it.


Paul Singleton wrote:

Rainer Jung wrote:


Take a look at

./org/apache/catalina/util/ServerInfo.properties

in CATALINA_HOME/server/lib/catalina.jar.

It contains:

server.info=Apache Tomcat/5.5.10
server.number=5.5.10.0

You can put different values in there and deploy the new properties 
file in


CATALINA_HOME/server/classes/org/apache/catalina/util/ServerInfo.properties 




Do you mean that I can leave catalina.jar where it is, make
a skeleton of folders in server/classes with just my new
ServerInfo.properties, and the properties in server/classes/...
will override those in the jar?

Or must I unpack catalina.jar into server/classes and then
delete it from server/lib before altering the properties?

Are all references to Tomcat's description and version
number derived from these properties, and is this new in
5.5.10 (we use 5.5.9 in production)?

cheers

Paul Singleton




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



[OT] JSP 1.2 JAR

2005-08-08 Thread Frank W. Zammetti
Hi all... does anyone know where I can grab a copy of the JSP 1.2 spec
JAR?  I've checked iBiblio, they only have 2.0 in the Maven repository.  I
also looked in the entire directory tree of my Tomcat 4.1.31 install,
which I believe is at that spec level, and I can't find it there (it
clearly *must* be there, but it isn't named what I expect I guess). 
Thanks!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

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



Webservice + tomcat or any websphere

2005-08-08 Thread Pradeep Chauhan
Hi, 

 

Is Tomcat support webservices? If yes then how we can configure it.

 

If No then anybody knows how to configure on Websphere ?

 

Regards, 

Pradeep Chauhan 



DISCLAIMER:
This message, including any attachments contains confidential and privileged 
information for the sole use of the intended recipient(s), and is protected by 
law.
If you are not the intended recipient, please destroy all copies of the 
original message. Any unauthorized review, use, disclosure, dissemination, 
forwarding, printing or copying of this email or any action taken in reliance 
on this e-mail is strictly prohibited and may be unlawful.
Indus and R Systems International Ltd reserves the right to record, monitor, 
and inspect all email communications through its internal and external 
networks. Your messages shall be subject to such lawful supervision as Indus 
and R Systems International Ltd deems necessary in order to protect its 
information, interests and reputation.
Indus and R Systems International Ltd prohibits and takes steps to prevent its 
information systems from being used to view, store or forward offensive or 
discriminatory material.



RE: Webservice + tomcat or any websphere

2005-08-08 Thread Arup Vidyerthy
Of course. Go have a look at apache axis.

Arup 

-Original Message-
From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2005 15:36
To: tomcat-user@jakarta.apache.org
Subject: Webservice + tomcat or any websphere

Hi, 

 

Is Tomcat support webservices? If yes then how we can configure it.

 

If No then anybody knows how to configure on Websphere ?

 

Regards, 

Pradeep Chauhan 



DISCLAIMER:
This message, including any attachments contains confidential and privileged
information for the sole use of the intended recipient(s), and is protected
by law.
If you are not the intended recipient, please destroy all copies of the
original message. Any unauthorized review, use, disclosure, dissemination,
forwarding, printing or copying of this email or any action taken in
reliance on this e-mail is strictly prohibited and may be unlawful.
Indus and R Systems International Ltd reserves the right to record, monitor,
and inspect all email communications through its internal and external
networks. Your messages shall be subject to such lawful supervision as Indus
and R Systems International Ltd deems necessary in order to protect its
information, interests and reputation.
Indus and R Systems International Ltd prohibits and takes steps to prevent
its information systems from being used to view, store or forward offensive
or discriminatory material.




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



Restarting Tomcat via Ant

2005-08-08 Thread itteerde (sent by Nabble.com)

Is there any way I can restart a remote Tomcat using an Ant task? I googled a 
while and even found some sources but they were about HttpClient abusing the 
manager application and exec calling the batches via net shares.

Anything better than the ManagerApp abuse?

thx in advance
--
Sent from the Tomcat - User forum at Nabble.com:
http://www.nabble.com/Restarting-Tomcat-via-Ant-t207149.html#a577719


RE: Restarting Tomcat via Ant

2005-08-08 Thread Raghupathy,Gurumoorthy
project name=Learning default=reloadContext basedir=.

target name=reloadContext
get dest=stop.txt
src=http://localhost:8080/manager/stop?path=/Learning; 
username=adminUserName password=adminPassword/
loadfile property=STOPOUTPUT
srcfile=stop.txt/loadfile
echo${STOPOUTPUT}/echo
delete file=stop.txt/delete

get dest=start.txt
src=http://localhost:8080/manager/start?path=/Learning; 
username=adminUserNAme password=adminPassword/
loadfile property=STARTOUTPUT
srcfile=start.txt/loadfile
echo${STARTOUTPUT}/echo
delete file=start.txt/delete  
/target

/project


The only thing you need to change is the
http://localhost:8080/manager/stop?path=/Learning; of it ...

So if you want to do for www.manik.com for context /Learning

Then it will be http://www.manik.com/manager/stop?path=/Learning and 


if you want to do for www.guru.com for context /Learning

Then it will be http://www.guru.com/manager/stop?path=/Learning 


Hope you find this useful 


-Original Message-
From: itteerde (sent by Nabble.com) [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2005 15:43
To: tomcat-user@jakarta.apache.org
Subject: Restarting Tomcat via Ant



Is there any way I can restart a remote Tomcat using an Ant task? I googled
a while and even found some sources but they were about HttpClient abusing
the manager application and exec calling the batches via net shares.

Anything better than the ManagerApp abuse?

thx in advance
--
Sent from the Tomcat - User forum at Nabble.com:
http://www.nabble.com/Restarting-Tomcat-via-Ant-t207149.html#a577719

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



Re: [OT] JSP 1.2 JAR

2005-08-08 Thread Jon Wingfield
For Servlet 2.3 containers both the JSP and Servlet APIs are in 
servlet.jar.

It's only later they were split out into servlet-api.jar and jsp-api.jar

Frank W. Zammetti wrote:

Hi all... does anyone know where I can grab a copy of the JSP 1.2 spec
JAR?  I've checked iBiblio, they only have 2.0 in the Maven repository.  I
also looked in the entire directory tree of my Tomcat 4.1.31 install,
which I believe is at that spec level, and I can't find it there (it
clearly *must* be there, but it isn't named what I expect I guess). 
Thanks!






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



Re: [OT] JSP 1.2 JAR

2005-08-08 Thread Frank W. Zammetti
Ah.  That would explain it :)  Thanks Jon!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, August 8, 2005 11:22 am, Jon Wingfield said:
 For Servlet 2.3 containers both the JSP and Servlet APIs are in
 servlet.jar.
 It's only later they were split out into servlet-api.jar and jsp-api.jar

 Frank W. Zammetti wrote:
 Hi all... does anyone know where I can grab a copy of the JSP 1.2 spec
 JAR?  I've checked iBiblio, they only have 2.0 in the Maven repository.
 I
 also looked in the entire directory tree of my Tomcat 4.1.31 install,
 which I believe is at that spec level, and I can't find it there (it
 clearly *must* be there, but it isn't named what I expect I guess).
 Thanks!




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



Win32: tomcat is there, how to make it a service?

2005-08-08 Thread Robert Koberg

Hi,

I have installed tomcat (by copying it) to a windows server. Is there 
some way to make it a serevice so that on restarts it resstarts (and as 
a particular user)?


Should tomcat be installed from the .exe for windows to get the service 
installed?


thanks,
-Rob

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



RE: Win32: tomcat is there, how to make it a service?

2005-08-08 Thread Marius Hanganu
Hi,

You can use the service.bat script provided in the bin directory.

Executing service install from the command line will install Tomcat as
a service (you will find it under the name Apache Tomcat in the list of
Windows services). 

Regards,
Marius

-Original Message-
From: Robert Koberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 08, 2005 6:27 PM
To: Tomcat Users List
Subject: Win32: tomcat is there, how to make it a service? 

Hi,

I have installed tomcat (by copying it) to a windows server. Is there
some way to make it a serevice so that on restarts it resstarts (and as
a particular user)?

Should tomcat be installed from the .exe for windows to get the service
installed?

thanks,
-Rob

-
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: Win32: tomcat is there, how to make it a service?

2005-08-08 Thread Arup Vidyerthy
In the bin directory you will find a service.bat file. That should allow you
to install it as a service. Or you alternatively you can have a look at the
Java Service Wrapper project on sourceforge
(http://sourceforge.net/projects/wrapper/). That's also pretty good.

-Original Message-
From: Robert Koberg [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2005 16:27
To: Tomcat Users List
Subject: Win32: tomcat is there, how to make it a service? 

Hi,

I have installed tomcat (by copying it) to a windows server. Is there some
way to make it a serevice so that on restarts it resstarts (and as a
particular user)?

Should tomcat be installed from the .exe for windows to get the service
installed?

thanks,
-Rob

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



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



Re: Win32: tomcat is there, how to make it a service?

2005-08-08 Thread Robert Koberg

Marius Hanganu wrote:

Hi,

You can use the service.bat script provided in the bin directory.

Executing service install from the command line will install Tomcat as
a service (you will find it under the name Apache Tomcat in the list of
Windows services). 


Thanks! Will try asap.

-Rob

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



RE: Tomcat application won't start with MySQL Connection Pooling

2005-08-08 Thread James Adams
 Please note the following for the path attribute in
 the Tomcat 5.5 doc for Context:

 The value of this field must not be set except when
 statically defining a Context in server.xml, as it
 will be infered [sic] from the filenames
 used for either the .xml context file or the 
 docBase.

 Also, examine the
 $CATALINA_HOME/conf/[enginename]/[hostname]/ 
 directory (usually conf/Catalina/localhost/), and
 remove any .xml files that might have been
 automatically created previously for your
application
 and restart Tomcat.


Thanks for pointing this out.  I have made the changes
and still I have the problem of my application failing
to start.

However it looks like this is not a problem with
Tomcat but instead a problem with Spring.  My
application is a Spring MVC application, and I am
trying to get the MySQL DBCP DataSource via JNDI.  It
appears that this is where the problem lies, since I
can remove this part of the Spring configuration and
the application starts fine when Tomcat is started. 
Also I can run the test JSP and access the MySQL DBCP
DataSource with no errors.  So it seems that I have
the correct MySQL DBCP configuration, just not the
right Spring configuration for accessing it via JNDI.

Thanks again for your help with this.


--James

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

2005-08-08 Thread Seale, Deryl
Hi, there.  I have a problem whereby tomcat is getting confused with user 
sessions due to (I think) some mod_rewrite rules that switch a user in and out 
of SSL.  The general requirement I have is to only use SSL in certain parts of 
our application (login, user administration, etc), and we use mod_rewrite rules 
to enforce this. The problem is that while we can correctly make sure a user 
login is properly redirected to SSL, when that user clicks on a link following 
login (ie: a non-SSL request), they are sent back to the login page. This is 
due, I think, to tomcat confusedly thinking the subsequent request comes from a 
new, unauthenticated user, possibly because the second request is not over SSL. 
 When I run an HTTP tracer, I indeed see that there is a new session cookie 
placed for the subsequent request.

 

Below is the relevant portion of our httpd.conf file, followed by the 
workes.properties file.  I've followed the recommendations I've seen online 
regarding connector configuration, but perhaps there is something subtle that 
is missing, or our rewrite rules are screwed up.  Any insight is appreciated.

 

thanks.

-d.

 

httpd.conf (irrelevant sections omitted):

 

# Load mod_jk

#

LoadModulejk_module  libexec/mod_jk.so

 

# Configure mod_jk

#

JkWorkersFile   conf/workers.properties

JkLogFile   logs/mod_jk.log

JkLogLevel  info

JkShmFile   logs/jk.shm

JkShmSize   10M

 

# Map mod_ssl vars to JK vars so that tomcat can reference SSL info.

JkExtractSSLOn

JkOptions   +ForwardKeySize +ForwardURICompat -ForwardDirectories

JkHTTPSIndicatorHTTPS

JkSESSIONIndicator  SSL_SESSION_ID

JkCIPHERIndicator   SSL_CIPHER

JkCERTSIndicatorSSL_CLIENT_CERT

 

JkMount /tech/* tech_1

JkMount /tech tech_1

 

VirtualHost _default_:80

RewriteEngine on

RewriteLog /usr/local/apache/logs/rewrite.log

RewriteLogLevel 1

RewriteCond %{SERVER_PORT} 80

 

#redirect requests for index.html to login page

RewriteCond %{REQUEST_URI} /index.html

RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do

 

#redirect requests for login page

RewriteCond %{REQUEST_URI} /tech/home.do

RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do

 

# redirect requests for the trial page

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /tech/trial.do

RewriteRule ^/(.*) https://tech-dev.classroom.com/$1

 

# redirect requests for the profile

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /tech/.*profile.*

RewriteRule ^/(.*) https://tech-dev.classroom.com/$1

 

# redirect requests for activation

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /tech/activation.*

RewriteRule ^/(.*) https://tech-dev.classroom.com/$1

 

# redirect requests for admin

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /tech/admin/.*

RewriteRule ^/(.*) https://tech-dev.classroom.com/$1

 

# redirect requests for michigan state

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /michigan

RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do

 

# redirect requests for CSR Tool

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /subscription*

RewriteRule ^/(.*) http://SERVER_CSR/subscription

 

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /studentwork/.*

RewriteRule ^/(.*) http://forumtecprd.classroom.com/$1

/VirtualHost

 

 

##

## SSL Settings ##

##

 

IfDefine SSL

Listen 443

/IfDefine

 

##

##  SSL Global Context

##

##  All SSL configuration in this context applies both to

##  the main server and all SSL-enabled virtual hosts.

##

 

#

#   Some MIME-types for downloading Certificates and CRLs

#

IfDefine SSL

AddType application/x-x509-ca-cert .crt

AddType application/x-pkcs7-crl.crl

/IfDefine

 

IfModule mod_ssl.c

#   Pass Phrase Dialog:

#   Configure the pass phrase gathering process.

#   The filtering dialog program (`builtin' is a internal

#   terminal dialog) has to provide the pass phrase on stdout.

SSLPassPhraseDialog  builtin

 

#   Inter-Process Session Cache:

#   Configure the SSL Session Cache: First the mechanism

#   to use and second the expiring timeout (in seconds).

SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache

SSLSessionCacheTimeout  300

 

#   Semaphore:

#   Configure the path to the mutual exclusion semaphore the

#   SSL engine uses internally for inter-process synchronization.

SSLMutex  file:/usr/local/apache/logs/ssl_mutex

 

#   Pseudo Random Number Generator (PRNG):

#   Configure one or more sources to seed the PRNG of the

#   SSL library. The seed data should be of good random quality.

#   WARNING! On some platforms /dev/random blocks if not enough entropy


My first JAAS implementation. A few questions.

2005-08-08 Thread Mark Benussi
I am implementing my first JAAS implementation and have some
problems/questions.

Firstly my commit method of my LoginModule does the following (User and Role
both implement Principal)

// Create a new User Principal with the user name retrieved from the
NameCallback
User user = new User(username);
// Add the principal to the subject
subject.getPrincipals().add(user);

for (int i = 0; i  roles.length; i++) {
// Iterate the role names retrieved from the database lookup
   String roleName = roles[i];
   // Create a new Role Principal with the role name
Role role = new Role(roleName);
// Add it to the public credentials to see if it works
subject.getPublicCredentials().add(role);
// Add it to the private credentials to see if it works
subject.getPrivateCredentials().add(role);
}
return true;

In the JSP that the application returns to after doing form based
authentication the following occurs

pSubject = %= Subject.getSubject(AccessController.getContext()) %/p
pRemote User = %= request.getRemoteUser() %/p
pUser Prinicipal = %= request.getUserPrincipal() %/p

But this produces

Subject = null
Remote User = administrator
User Prinicipal = GenericPrincipal[administrator()]
Why is the subject null please?

The request.isUserInRole() methods for the role names I added to the subject
also return false... has anyone got some helpful ideas please?

If more source is needed I can gladly provide it if will help

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



Re: Using more than one SSL cert in keystore?

2005-08-08 Thread Justin Jaynes
Paul,

Thanks.  I am doing as you have instructed.  I hope to
set up client-side redirects.  Can you please tell me
how?  Does it require javascript, or just HTML?  Where
can I learn about client side re-directs?

Justin Jaynes

--- Paul Singleton [EMAIL PROTECTED] wrote:

 Justin Jaynes wrote:
 
  ...But now I would like to put up a new
  site that is completely independant of the others.
  It
  needs its own SSL cert and it needs four host
 names to
  all point to the same place and redirect to just
 one
  of the domain names so that the SSL cert will be
  valid, regardless of how the users chose to get to
 my
  site.
 
 An SSL cert is for a specific domain name.  If you
 want
 your users to be able to make HTTPS requests to all
 four
 domains without warnings from the browser, I reckon
 you
 need four certificates.
 
 But if they make non-SSL requests, and you respond
 with
 a client-side redirect to your one true certificated
 site using HTTPS, that may work OK?
 
  Is it possible to do Virtual Hosting using IP's on
 a
  Tomcat standalone installation?
 
 Yes, I'm doing this now with 5.5.9
 
 You need e.g. this server.xml stuff for each host:
 
Service
  Connector (HTTP)
  Connector (HTTPS)
  Engine
Host
  Context
 
 You can use the default keystore for all hosts, and
 use the (undocumented) keyAlias=myalias Connector
 attribute
 to offer the appropriate certificate for each host,
 e.g.
 
  Connector
address=288.104.197.211
port=8443
scheme=https
secure=true
sslProtocol=TLS
keyAlias=mrk2
  /
 
 (in 5.5.9 you also need sslProtocol=TLS
 explicitly,
 fixed in later versions)
 
 Paul Singleton
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.338 / Virus Database: 267.10.0/63 -
 Release Date: 3/Aug/2005
 
 

-
 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.0.19 randomly stops taking http requests

2005-08-08 Thread Tim Lam
   Tomcat 5.0.19 is actually still running, but stops taking http requests
   randomly. It will run just fine for one or two weeks, then in the middles
   of the night, or over the weekend when no one is using tomcat at all, it
   stops taking requests (I know when it happens because I have a standalone
   application that tries retrieving a webpage from Tomcat every half hour to
   check if it's still up).
   The catalina.out log file doesn't show anything unusual, it's actually
   still running, so is the Tomcat process. But trying to reach a web page
   will show a timeout error on any browser. And sometimes trying to shutdown
   tomcat after it's hung doesn't work, I have to manually kill the tomcat
   process.
   I am using JVM 1.4.2_02.
   Any help would be appreciated, Thanks.
   ps. I am new to using this mailing list, and have a question, is it
   required to subscribe to the tomcat-user list in order to ask questions?
   or can I just send emails to the list and replies will get sent back
   directly to my email address?


RE: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

2005-08-08 Thread Seale, Deryl
Forgot to add, we're using Tomcat 5.0.28, mod_jk 1.2.14, and apache 1.3.33.

thanks.
-d.


-Original Message-
From: Seale, Deryl 
Sent: Monday, August 08, 2005 11:48 AM
To: tomcat-user@jakarta.apache.org
Subject: sessions dropping with mod_ssl, mod_jk, mod_rewrite rules

Hi, there.  I have a problem whereby tomcat is getting confused with user 
sessions due to (I think) some mod_rewrite rules that switch a user in and out 
of SSL.  The general requirement I have is to only use SSL in certain parts of 
our application (login, user administration, etc), and we use mod_rewrite rules 
to enforce this. The problem is that while we can correctly make sure a user 
login is properly redirected to SSL, when that user clicks on a link following 
login (ie: a non-SSL request), they are sent back to the login page. This is 
due, I think, to tomcat confusedly thinking the subsequent request comes from a 
new, unauthenticated user, possibly because the second request is not over SSL. 
 When I run an HTTP tracer, I indeed see that there is a new session cookie 
placed for the subsequent request.

 

Below is the relevant portion of our httpd.conf file, followed by the 
workes.properties file.  I've followed the recommendations I've seen online 
regarding connector configuration, but perhaps there is something subtle that 
is missing, or our rewrite rules are screwed up.  Any insight is appreciated.

 

thanks.

-d.

 

httpd.conf (irrelevant sections omitted):

 

# Load mod_jk

#

LoadModulejk_module  libexec/mod_jk.so

 

# Configure mod_jk

#

JkWorkersFile   conf/workers.properties

JkLogFile   logs/mod_jk.log

JkLogLevel  info

JkShmFile   logs/jk.shm

JkShmSize   10M

 

# Map mod_ssl vars to JK vars so that tomcat can reference SSL info.

JkExtractSSLOn

JkOptions   +ForwardKeySize +ForwardURICompat -ForwardDirectories

JkHTTPSIndicatorHTTPS

JkSESSIONIndicator  SSL_SESSION_ID

JkCIPHERIndicator   SSL_CIPHER

JkCERTSIndicatorSSL_CLIENT_CERT

 

JkMount /tech/* tech_1

JkMount /tech tech_1

 

VirtualHost _default_:80

RewriteEngine on

RewriteLog /usr/local/apache/logs/rewrite.log

RewriteLogLevel 1

RewriteCond %{SERVER_PORT} 80

 

#redirect requests for index.html to login page

RewriteCond %{REQUEST_URI} /index.html

RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do

 

#redirect requests for login page

RewriteCond %{REQUEST_URI} /tech/home.do

RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do

 

# redirect requests for the trial page

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /tech/trial.do

RewriteRule ^/(.*) https://tech-dev.classroom.com/$1

 

# redirect requests for the profile

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /tech/.*profile.*

RewriteRule ^/(.*) https://tech-dev.classroom.com/$1

 

# redirect requests for activation

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /tech/activation.*

RewriteRule ^/(.*) https://tech-dev.classroom.com/$1

 

# redirect requests for admin

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /tech/admin/.*

RewriteRule ^/(.*) https://tech-dev.classroom.com/$1

 

# redirect requests for michigan state

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /michigan

RewriteRule ^/(.*) https://tech-dev.classroom.com/tech/home.do

 

# redirect requests for CSR Tool

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /subscription*

RewriteRule ^/(.*) http://SERVER_CSR/subscription

 

RewriteCond %{SERVER_PORT} 80

RewriteCond %{REQUEST_URI} /studentwork/.*

RewriteRule ^/(.*) http://forumtecprd.classroom.com/$1

/VirtualHost

 

 

##

## SSL Settings ##

##

 

IfDefine SSL

Listen 443

/IfDefine

 

##

##  SSL Global Context

##

##  All SSL configuration in this context applies both to

##  the main server and all SSL-enabled virtual hosts.

##

 

#

#   Some MIME-types for downloading Certificates and CRLs

#

IfDefine SSL

AddType application/x-x509-ca-cert .crt

AddType application/x-pkcs7-crl.crl

/IfDefine

 

IfModule mod_ssl.c

#   Pass Phrase Dialog:

#   Configure the pass phrase gathering process.

#   The filtering dialog program (`builtin' is a internal

#   terminal dialog) has to provide the pass phrase on stdout.

SSLPassPhraseDialog  builtin

 

#   Inter-Process Session Cache:

#   Configure the SSL Session Cache: First the mechanism

#   to use and second the expiring timeout (in seconds).

SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache

SSLSessionCacheTimeout  300

 

#   Semaphore:

#   Configure the path to the mutual exclusion semaphore the

#   SSL engine uses internally for inter-process synchronization.

SSLMutex  

Generic Types support in Tomcat?

2005-08-08 Thread Patrick Thomas
Hi All,

Easiest part of this question is simply does tomcat (5.5.7) support
using generic types in JSP files? I searched release notes, FAQ, etc
and found no mention either way. Does some erudite soul have the
answer?

Secondly, if it's supposed to support it, why then would it have
difficulty with the following:

In Part.java (a valid java object, visible from the jsp):
public static ArrayListPart listParts() {/* code */}

In TestPart.jsp (specifically line 4):
% ArrayListPart parts = Part.listParts(); %

Attempting to access TestPart results in:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 4 in the jsp file: /tools/TestPart.jsp
Generated servlet error:
Syntax error on token , invalid AssignmentOperator

An error occurred at line: 4 in the jsp file: /tools/TestPart.jsp
Generated servlet error:
Syntax error on token =, != expected

An error occurred at line: 17 in the jsp file: /tools/TestPart.jsp
Generated servlet error:
Syntax error on token(s), misplaced construct(s)

An error occurred at line: 17 in the jsp file: /tools/TestPart.jsp
Generated servlet error:
Syntax error on token ), : expected


It's clearly puking on the ObjectName generic type syntax; so, is
it actually supported?

Cheers,
Patrick

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



RE: Generic Types support in Tomcat?

2005-08-08 Thread Caldarale, Charles R
 From: Patrick Thomas [mailto:[EMAIL PROTECTED] 
 Subject: Generic Types support in Tomcat?
 
 Easiest part of this question is simply does tomcat (5.5.7) support
 using generic types in JSP files?

Some pertinent paragraphs from:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html

---
The servlet which implements Jasper is configured using init parameters
in your global $CATALINA_BASE/conf/web.xml.
# compilerSourceVM - What JDK version are the source files compatible
with? (Default JDK 1.4)
# compilerTargetVM - What JDK version are the generated files compatible
with? (Default JDK 1.4)

The Java compiler from Eclipse JDT in included as the default compiler.
It is an advanced Java compiler which will load all dependencies from
the Tomcat class loader, which will help tremendously when compiling on
large installations with tens of JARs. On fast servers, this will allow
sub-second recompilation cycles for even large JSP pages. This new
compiler will be updated to support the Java 5 syntax as soon as
possible.
---

I don't know when as soon as possible might be.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Generic Types support in Tomcat?

2005-08-08 Thread Patrick Thomas
Thanks Chuck, I definitely wouldn't have noticed that without the
pointer. Oh well, I guess I'll stick to casting and iterators for a
few more months ;)


On 8/8/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
  From: Patrick Thomas [mailto:[EMAIL PROTECTED]
  Subject: Generic Types support in Tomcat?
 
  Easiest part of this question is simply does tomcat (5.5.7) support
  using generic types in JSP files?
 
 Some pertinent paragraphs from:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html
 
 ---
 The servlet which implements Jasper is configured using init parameters
 in your global $CATALINA_BASE/conf/web.xml.
 # compilerSourceVM - What JDK version are the source files compatible
 with? (Default JDK 1.4)
 # compilerTargetVM - What JDK version are the generated files compatible
 with? (Default JDK 1.4)
 
 The Java compiler from Eclipse JDT in included as the default compiler.
 It is an advanced Java compiler which will load all dependencies from
 the Tomcat class loader, which will help tremendously when compiling on
 large installations with tens of JARs. On fast servers, this will allow
 sub-second recompilation cycles for even large JSP pages. This new
 compiler will be updated to support the Java 5 syntax as soon as
 possible.
 ---
 
 I don't know when as soon as possible might be.
 
 - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



TC 5.5.9 TLD exception thrown

2005-08-08 Thread David Wall
I am receiving the following TLD processing exception in Tomcat 5.5.9 
under JDK 1.5 (this application has worked well under TC 4).  I am using 
a security manager (via catalina.policy).  The TLD file parses just fine 
in Eclipse 3.1 and using XMLSpy, so I'm not sure why there's a problem.  
Is there any way to learn more about what is really going wrong here?  I 
cannot bring up any web pages until this is resolved.


I also found that TC 5.5.9 wouldn't start with the following added to 
the default grant in catalina.policy:


permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina;
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.*;permission 
java.lang.RuntimePermission 
accessClassInPackage.org.apache.jasper.compiler;


Thanks,
David

Here's the TLD exception I am seeing...

From catalina.out and catalina.2005-08-08.log

Aug 8, 2005 5:36:34 PM org.apache.catalina.core.StandardContext processTlds
SEVERE: Error reading tld listeners javax.servlet.ServletException: 
Exception processing TLD at resource path /WEB-INF/yozons.tld in context 
/ssd
javax.servlet.ServletException: Exception processing TLD at resource 
path /WEB-INF/yozons.tld in context /ssd
   at 
org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:547)

   at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300)
   at 
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4193)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4049)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:121)
   at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)

   at java.security.AccessController.doPrivileged(Native Method)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:737)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)


From localhost.2005-08-08.log:

org.apache.jasper.JasperException: Unable to initialize 
TldLocationsCache: XML parsing error on file /WEB-INF/yozons.tld
   at 
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:252)
   at 
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:223)
   at 
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)
   at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)

   at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
   at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
   at 
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
   at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
   at 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)

   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
   at 

HTTP Server and TC 5.5.9

2005-08-08 Thread Tom Spence
Hello everyone...

My supervisor wants me to work on tomcat 5.5.9 instead
of websphere.  So I am working on it now which is my
first time.  I hope you guys help me.  SMILE!!!

Am I required to use HTTP Server first before tomcat,
correct?

I appreciate your assist...

Tom


(__[TomCigar]___~~~ 




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



Re: HTTP Server and TC 5.5.9

2005-08-08 Thread Jens Skripczynski

On Tue, 09 Aug 2005 03:46:08 +0200, Tom Spence [EMAIL PROTECTED] wrote:


Hello everyone...

My supervisor wants me to work on tomcat 5.5.9 instead
of websphere.  So I am working on it now which is my
first time.  I hope you guys help me.  SMILE!!!

Am I required to use HTTP Server first before tomcat,
correct?

No, not entirely.

AFAIK, if you have a large network with a high load,
then the apache httpd used to be a good joice on the front-line.

But for a basic setup, the apache tomcat server is a 'normal' /
complete / standalone webserver.



--
Jens Skripczynski [skripi-lists(add)myrealbox(dot)com]

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



Using hibernate on Tomcat 5.5

2005-08-08 Thread David Thielen
Hi;

This is really a hibernate issue but as some people on this list may hit
this problem due to the hibernate docs, I figured I should post here too.

Tomcat 5.5 has changed how it does the JNDI settings for a JDBC setup. I am
still working through some minor details making sure I have them exactly
right. But the following works.

First, do not place anything in server.xml. Everything you do will go in
your webapp directory. My webapp is named store.

Note: I do not create a war when developing so this is in an exploded
directory.

META-INF/context.xml(complete):
Context path=/store docBase=store
debug=5 reloadable=true crossContext=true
  Resource name=jdbc/storeDB auth=Container type=javax.sql.DataSource
   username=sa password=mmouse
driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver
 
url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select
Method=cursor
   maxActive=8 maxIdle=4/
/Context

web.xml (just the resource part):
web-app xmlns=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

...

resource-ref
   descriptionConnection to my DB./description
   res-ref-namejdbc/storeDB/res-ref-name
   res-typejavax.sql.DataSource /res-type
   res-authContainer/res-auth
/resource-ref

...

/web-app

hibernate.cfg.xml (just DB part):
session-factory
  property name=show_sqlfalse/property
  property name=dialectorg.hibernate.dialect.SQLServerDialect/property

  property
name=connection.datasourcejava:/comp/env/jdbc/storeDB/property

  ...

/session-factory

/hibernate-configuration

AND - this is important - this will not work when run from IntelliJ! It only
works if you start Tomcat and use it normally. 

Running under IntelliJ

Ok, here's the IntelliJ part you have to do. Lets assume your webapp is
named store.

1) copy webapps/store/META-INF/context.xml to %Tomcat
5.5%\conf\Catalina\localhost/store.xml - note the filename change.

2) In the run/debug configuration, deployment tab, set the application
context to /store (the default is /).

3) In the server tab the startup page is now
http://localhost:8080/store/index.html (the store directory is added).

And then - - it works!!!

thanks - dave

 



error-page not working

2005-08-08 Thread David Thielen
Hi;

 

I am using JSF - although that should not make a difference.

 

In web.xml I have:

error-page

exception-typejava.lang.Throwable/exception-type

location/errorpage.jsp/location

/error-page

 

And in my event handler I have:

throw new NullPointerException(hi there);

 

But when it happens, I get the following in IE:



The page cannot be displayed

 


There is a problem with the page you are trying to reach and it cannot be
displayed.


  _  

Please try the following:

*   Open the  http://localhost:8080 localhost:8080 home page, and then
look for links to the information you want. 
*   Click the Refresh button, or try again later. 
*   Click  javascript:doSearch() Search to look for information on the
Internet. 
*   You can also see a list of related sites. 

 


HTTP 500 - Internal server error 
Internet Explorer 


 

Any ideas?

 

Thanks - dave