RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Fixed at last! And of course it's and annoying fix. I've been using these
Informix JDBC 2.0 drivers for some months without problem. As a last resort
I downloaded the very latest version from the IBM site and... The rest is
now history :)

Many thanks to ALL your help. Very much appreciated. 

>-Original Message-
>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 19:37
>To: [EMAIL PROTECTED]; Tomcat Users List; Parsons Technical Services
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>
> For future, recommend snipping any real host/username/passwords for
>security reasons.
>
>I am not familiar with Informix, however, given a logged in session by
>the user you specify, are you able to execute the query, and 
>return 1 or
>more records?
>
>I recommend creating  dummy table just for validation with 1 record, 1
>field to minimize the overhead.  A validation query is performed before
>each connection object is handed out.
>
>-Original Message-
>From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, March 17, 2004 2:19 PM
>To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical
>Services'
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>To get this far I had to more the datasource resource defiition to the
>context. I've rasie the debug to 9 but could see no additional loging
>that
>would help. Here is the context ...
>
>cachingAllowed="true"
>charsetMapperClass="org.apache.catalina.util.CharsetMapper"
>cookies="true"
>crossContext="false" debug="9" displayName="Custom Fares"
>docBase="C:/Documents and Settings/pmahoney/My Documents/Travel
>2/code/webapps/CustomFares/web"
>mapperClass="org.apache.catalina.core.StandardContextMapper"
>path="/CustomFares" privileged="false" reloadable="false"
>swallowOutput="false" useNaming="true"
>wrapperClass="org.apache.catalina.core.StandardWrapper">
>  type="javax.sql.DataSource"/>
>  
>
>  validationQuery
>  select count(*) from systables
>
>
>  url
> 
>jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFO
>RMIXSERVE
>R=os
>cars_dbsrv
>
>
>  password
>  1atan1a
>
>
>  maxActive
>  4
>
>
>  maxWait
>  5000
>
>
>  driverClassName
>  com.informix.jdbc.IfxDriver
>
>
>  username
>  sy5t3m
>
>
>  maxIdle
>  2
>
>  
>
>
>The stacktrace is...
>
>org.apache.commons.dbcp.SQLNestedException: Cannot get a connection,
>pool
>exhausted, cause:
>java.util.NoSuchElementException: Could not create a validated object
>at
>org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Gen
>ericObjec
>tPoo
>l.java:851)
>at
>org.apache.commons.dbcp.PoolingDataSource.getConnection(Pooling
>DataSourc
>e.ja
>va:140)
>at
>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicData
>Source.ja
>va:5
>18)
>at
>com.travel2.customFares.Query.getJdbcConnection(Query.java:95)
>at com.travel2.customFares.Query.execute(Query.java:160)
>at
>com.travel2.customFares.CustomFaresService.GetFares(CustomFares
>Service.j
>ava:
>58)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso
>rImpl.jav
>a:39
>)
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho
>dAccessor
>Impl
>.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
>org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProv
>ider.java
>:402
>)
>at
>org.apache.axis.providers.java.RPCProvider.processMessage(RPCPr
>ovider.ja
>va:3
>09)
>at
>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider
>.java:333
>)
>at
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationS
>trategy.j
>ava:
>71)
>at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
>at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
>at
>org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.ja

RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
   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:199)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:536)

>-Original Message-
>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 18:07
>To: [EMAIL PROTECTED]; Tomcat Users List; Parsons Technical Services
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>
>Would you include any resource definitions and/or any
resource>links/references.
>
>Also, the full stacktrace of the exception may shed some other potential
problems.
>
>-Original Message-
>From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, March 17, 2004 1:05 PM
>To: D'Alessandro, Arthur; 'Tomcat Users List'; 'Parsons Technical
>Services'
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>I agree, but it looks good and I've tried without one being specified.
>In
>addition, I've never see a connection raised at the database 
>server end.
>This makes me think the DataSource is just not working and I'm not
>seeing
>the proper error. But I can find nothing more in the logs :(
>
>>-Original Message-
>>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
>>Sent: 17 March 2004 18:00
>>To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services
>>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>>
>>
>>Check your validation query in your resource definition. 
>>
>>-Original Message-
>>From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
>>Sent: Wednesday, March 17, 2004 12:57 PM
>>To: 'Parsons Technical Services'; 'Tomcat Users List'
>>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>>
>>Tried
>>  dataSource = (DataSource)
>>initContext.lookup("java:comp/jdbc/OscarsDB");
>>But it return null, so tried
>>  dataSource = (DataSource)
>>initContext.lookup("java:comp/env/jdbc/OscarsDB");
>>And a datasource instance was return so before, looking good...
>>However, still got the same exception when trying to get a connection
>>instance
>>  "Cannot get a connection, pool exhausted"
>>with a nested exception
>>  "Could not create a validated object"
>>
>
>
>
>


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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
I agree, but it looks good and I've tried without one being specified. In
addition, I've never see a connection raised at the database server end.
This makes me think the DataSource is just not working and I'm not seeing
the proper error. But I can find nothing more in the logs :(

>-Original Message-
>From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 18:00
>To: Tomcat Users List; [EMAIL PROTECTED]; Parsons Technical Services
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>
>Check your validation query in your resource definition. 
>
>-Original Message-
>From: Paul Mahoney [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, March 17, 2004 12:57 PM
>To: 'Parsons Technical Services'; 'Tomcat Users List'
>Subject: RE: Problem using JNDI/DBCP to get DataSouce
>
>Tried
>  dataSource = (DataSource)
>initContext.lookup("java:comp/jdbc/OscarsDB");
>But it return null, so tried
>  dataSource = (DataSource)
>initContext.lookup("java:comp/env/jdbc/OscarsDB");
>And a datasource instance was return so before, looking good...
>However, still got the same exception when trying to get a connection
>instance
>  "Cannot get a connection, pool exhausted"
>with a nested exception
>  "Could not create a validated object"
>


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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Tried
  dataSource = (DataSource) initContext.lookup("java:comp/jdbc/OscarsDB");
But it return null, so tried
  dataSource = (DataSource)
initContext.lookup("java:comp/env/jdbc/OscarsDB");
And a datasource instance was return so before, looking good...
However, still got the same exception when trying to get a connection
instance
  "Cannot get a connection, pool exhausted"
with a nested exception
  "Could not create a validated object"


>-Original Message-
>From: Parsons Technical Services 
>[mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 16:49
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Problem using JNDI/DBCP to get DataSouce
>
>
>Paul,
>
>Replace this:
>  if (dataSource == null)
>  {
>Context initContext = new InitialContext ();
>Context envContext = (Context) initContext.lookup
>("java:comp/env");
>dataSource = (DataSource) envContext.lookup 
>("jdbc/OscarsDB");
>  }
>
>With this:
> if (dataSource == null)
>  {
>Context initContext = new InitialContext ();
>dataSource = (DataSource) initContext.lookup
>("java:comp/jdbc/OscarsDB");
>  }
>
>This is working fine for me. Just a note that I am running against MySQL,
>but at this point in the code it should not matter especially since the
>hardwire way works.
>
>Doug


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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Here goes Cut and paste, but blanked out the password bits.
I hope your eyes can spy the problem. I assume you have this working :)

Server.xml (the Context bit)
-

  
  

  validationQuery
  select count(*) from systables


  url
 
jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
cars_dbsrv


  password
  ??


  maxActive
  4


  maxWait
  5000


  driverClassName
  com.informix.jdbc.IfxDriver


  username
  sy5t3m


  maxIdle
  2

  


Web.xml (the resource reference bit)

...



The code 

  // The JNDI way...
  protected Connection getJdbcConnection ()
  throws SQLException
  {
Connection connection = null;

// First we need to locate the JNDI data source
if (dataSource == null)
{
  try
  {
synchronized (this)
{
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
("java:comp/env");
dataSource = (DataSource) envContext.lookup ("jdbc/OscarsDB");
  }
}
  }
  catch (NamingException ne)
  {
// wrap it up in an SQLException to keep calling code simple
SQLException se = new SQLException ("JNDI Data Source lookup
failed");
se.initCause (ne);
throw se;
  }
}

try
{
  connection = dataSource.getConnection ();
}
catch (SQLException se)
{
  throw se;
}

return connection;
  }

  // Hardwired the old way...
  protected Connection getOscarsConnection ()
throws SQLException
  {
Connection connection = null;
try
{
  Properties props = new Properties();

  props.put("user", "sy5t3m");
  props.put("password", "??");

  Class.forName("com.informix.jdbc.IfxDriver");
  connection = DriverManager.getConnection(
 
"jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=oscars_d
bsrv",
props);
}
catch (ClassNotFoundException cnfe)
{
  System.err.println  ("Error: Class not found: "
   + cnfe.getMessage()
  );
}
catch (SQLException se)
{
  System.err.println  ("Error: while accessing database: "
   + se.getMessage()
  );
  while ((se = se.getNextException()) != null)
  {
System.err.println("   next: " + se.getMessage());
  }
}

return connection;
  }

  public String execute ()
throws Exception
  {
Connection connection = null;

try
{
  connection = getJdbcConnection();
//  connection = getOscarsConnection();
}
catch (Exception e)
{
  throw e;
}
finally // must release the following resources if acquired...
{
if (connection != null)
{
  try { connection.close (); }  catch (Exception e) {
e.printStackTrace ();   }
}
}

return ""; // empty for now
  }
}

>-Original Message-
>From: Parsons Technical Services 
>[mailto:[EMAIL PROTECTED] 
>Sent: 17 March 2004 16:01
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Problem using JNDI/DBCP to get DataSouce
>
>
>Paul,
>
>Since you have done several changes, please repost your current context
>section of the server.xml, exception you receive and code you use to access
>the DB both with conventional JDBC and DBCP. At this point it sounds like a
>typo that's preventing the connection pool from connecting to the database.
>
>Doug
>
>


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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Some progress but still not working.

1. Using my connection parameters I can open a connection to the database in
the standard JDBC way.

2. I have to moved the DataSource configuration from GlobalNamingResources
to the apps Context area of server.xml. This seems to have allowed the JNDI
look-up to work. I now get a DataSource instance with sensible contents.

3. But when I ask for a connection it throws
"Cannot get a connection, pool exhausted"
   with a nested exception
"Could not create a validated object"

Beginning to think it's not me but the tomcat server. I'm now moved to
4.1.24 to 4.1.30 but no improvement :(


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



RE: Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Paul Mahoney
Thanks for the tip. I put it in the server.xml in the /CustomFares context
but it didn't help. Is there are equivalent entry for the web.xml file?

>-Original Message-
>From: Parsons Technical Services 
>[mailto:[EMAIL PROTECTED] 
>Sent: 15 March 2004 20:55
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Problem using JNDI/DBCP to get DataSouce
>
>
>Paul,
>
>Add this to the context for each application that needs the database.
>
>type="javax.sql.DataSource"/>
>
>Doug Parsons
>www.parsonstechnical.com
>
>
>
>- Original Message - 
>From: "Paul Mahoney" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Sent: Monday, March 15, 2004 2:28 PM
>Subject: Problem using JNDI/DBCP to get DataSouce
>
>
>My code looks up a DataSource instance using JNDI. It get an 
>instance but
>all the fields are default or null values. When I try to get a 
>connection I
>get the error
> Exception: Cannot create JDBC driver of class '' for connect 
>URL 'null'
>Its like it finds my configured resource, but the server has 
>not initialised
>it...
>
>I have followed the How-To's and gone through it all countless times. I
>can't get tomcat to give me any debug or extra logging to help 
>me track the
>cause. Below are the gory details for those that can help me 
>(please!!!)
>
>Version - Tomcat 4.1.24
>
>Web.xml (last part as to DTD)
>-
>  
>Reference to factory javax.sql.DataSource to create
>connection instances for OSCARS
>jdbc/OscarsDB
>javax.sql.DataSource
>Container
>  
>--
>
>Server.xml
>---
>  
>type="java.lang.Integer"
>value="30"/>
>type="org.apache.catalina.UserDatabase"/>
>type="javax.sql.DataSource"/>
>
>  
>factory
>
>org.apache.catalina.users.MemoryUserDatabaseFactory
>  
>  
>pathname
>conf/tomcat-users.xml
>  
>
>
>  
>url
>
>jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFO
>RMIXSERVER=os
>cars_dbsrv
>  
>  
>password
>notreal
>  
>  
>maxActive
>10
>  
>  
>maxWait
>5000
>  
>  
>driverClassName
>com.informix.jdbc.IfxDriver
>  
>  
>username
>trip
>  
>  
>maxIdle
>2
>  
>
>  
>---
>
>Code extract
>---
>if (dataSource == null)
>{
>  try
>  {
>synchronized (this)
>{
>  if (dataSource == null)
>  {
>Context initContext = new InitialContext ();
>Context envContext = (Context) initContext.lookup
>("java:comp/env");
>dataSource = (DataSource) envContext.lookup 
>("jdbc/OscarsDB");
>  }
>}
>  }
>  catch (NamingException ne)
>  {
>// wrap it up in an SQLException to keep calling code simple
>SQLException se = new SQLException ("JNDI Data Source lookup
>failed");
>se.initCause (ne);
>throw se;
>  }
>}
>
>try
>{
>  connection = dataSource.getConnection ();
>}
>catch (SQLException se)
>{
>  throw se;
>}
>
>return connection;
>  }
>---
>
>End of message, thank you for your time
>
>Paul
>
>
>-
>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]



Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Paul Mahoney
My code looks up a DataSource instance using JNDI. It get an instance but
all the fields are default or null values. When I try to get a connection I
get the error
 Exception: Cannot create JDBC driver of class '' for connect URL 'null'
Its like it finds my configured resource, but the server has not initialised
it...

I have followed the How-To's and gone through it all countless times. I
can't get tomcat to give me any debug or extra logging to help me track the
cause. Below are the gory details for those that can help me (please!!!)

Version - Tomcat 4.1.24

Web.xml (last part as to DTD)
-
  
Reference to factory javax.sql.DataSource to create
connection instances for OSCARS
jdbc/OscarsDB
javax.sql.DataSource
Container
  
--

Server.xml
---
  




  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  
url
 
jdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os
cars_dbsrv
  
  
password
notreal
  
  
maxActive
10
  
  
maxWait
5000
  
  
driverClassName
com.informix.jdbc.IfxDriver
  
  
username
trip
  
  
maxIdle
2
  

  
---

Code extract
---
if (dataSource == null)
{
  try
  {
synchronized (this)
{
  if (dataSource == null)
  {
Context initContext = new InitialContext ();
Context envContext = (Context) initContext.lookup
("java:comp/env");
dataSource = (DataSource) envContext.lookup ("jdbc/OscarsDB");
  }
}
  }
  catch (NamingException ne)
  {
// wrap it up in an SQLException to keep calling code simple
SQLException se = new SQLException ("JNDI Data Source lookup
failed");
se.initCause (ne);
throw se;
  }
}

try
{
  connection = dataSource.getConnection ();
}
catch (SQLException se)
{
  throw se;
}

return connection;
  }
---

End of message, thank you for your time

Paul


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



Re: Own Login page

2003-02-26 Thread Paul Mahoney
From: James Chrystal [mailto:[EMAIL PROTECTED] 
Sent: 25 February 2003 20:34
To: [EMAIL PROTECTED]
Subject: Own Login page


Paul,

I've run into your problem as well, and here's how I solved it.
Please post this answer to the mailing archives, as I don't want to
subscribe and get all that email myself!  This was a little tricky to
figure out, but it does work.

Jim

BTW - I work for Red 5 Interactive, here in Des Moines, IA.  We're web
integrators, so if you need any work done, give us a call!


A couple of pieces of information you probably already know:

1)  When you request a secure resource from tomcat, tomcat redirects to
the login page defined in the deployment descriptor (web.xml).
2)  You cannot submit to j_security_check without having requested a
secure resource, because Tomcat would not know where to send you once
you logged in.
3)  From the .jsp/servlet/.html page which comprises your login, you
have no way of accessing the secure url originally requested.

Here's what you need in your deployment descriptor:

  
403
/loginError.jsp
  
  
FORM

  /loginHandler.jsp
  /loginError.jsp

  

Here's how it works:

1)  User fills out login form, and submits - there are hidden fields on
the form to tell the next .jsp in the change where to redirect.
2)  preLogin.jsp receives the request, puts the j_username/j_password in
the session, and redirects to the secureUrl.
3)  Tomcat intercepts the request to the secureUrl and realizes the user
is not logged in.  Tomcat caches the securlUrl for that user, and
forwards to the page
defined in the deployment descriptor as the , in our
case, loginHandler.jsp.
4)  The loginHandler.jsp page sends a redirect to the j_security_check
url stored in the session, but not before appending the j_username and
j_password from the session.
5)  Tomcat again intercepts the request.  If the j_username and
j_password evaluate to a valid user, Tomcat will forward to the
originally requested resource.  If the credentials are invalid, Tomcat
will redirect to the  defined in the deployment
descriptor.  This way, the user can re-enter his/her information and try
to submit again.


Here's some examples:

1)  Create a login form - this can be a static html page or anything you
like, and it can exist anywhere on your site.





  
j_username

  
  
j_password

  
  

  

  

2)  Create a preLogin.jsp - this must be a jsp page, as we're going to
do some work

<%
request.getSession( true );

request.setAttribute( "j_username", request.getParameter( "j_username" )
);
request.setAttribute( "j_password", request.getParameter( "j_password" )
);
request.setAttribute( "j_security_check", request.getParameter(
"j_security_check" ) );

response.sendRedirect( request.getParameter( "secureUrl" ) );
%>


3)  Create a loginHandler.jsp page

<%
response.sendRedirect( request.getSession().getAttribute(
"j_security_check" ) + "?j_username=" +
request.getSession().getAttribute( "j_username" ) + "&j_password=" +
request.getSession().getAttribute( "j_password" ) );
%>


4)  Create a login error page - loginerror.jsp

 



  
j_username

  
  
j_password

  
  

  




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



Own Login page

2003-02-25 Thread Paul Mahoney
Dear Team

I've been scanning the web, and this mail archive, looking for the
answer to a question many have asked, but to which I not find any clear
answer. Please bare with me...

We are using form based authentication... works fine.

However, on occasion we want to show a login form on a page. The user
puts in their name and password, clicks "submit" and is taken to some
protected url having been authorised.

The way I see it, we need to set the "action" of this login form to a
"jsp/servlet", of our making, that takes the name and password,
validates and sets up the appropriate authority object and forwards them
to the target page or to an error page. Because we've set up the
authority object for the session/context, the standard form based dialog
does not appear.
(Does this make sense?)

But I can't see how we do what the j_security_check action must do.

Someone must have "been there, done that!". Could they enlighten me?
I've waded through enough javadoc now :(

Many thanks

Paul



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



Deploying/Installing war using Tomcat 4.1 manager

2002-12-20 Thread Paul Mahoney
Hi

I'm trying to use the .../manger/html/ form to install my war. All the
documentation I can find just talks about 2 command parameters: path and
war URL.

I'm using:

Path  /epresident
War URL   jar:file:C:/Java/Webapps/epresident.war!/

I getting the error:

Message: FAIL - Encountered exception java.net.MalformedURLException: no
protocol: 

The form has a third field: Config URL. I'm leaving this blank as I
don't know what to put in it. Is this my problem? Is so, what goes here?

Many thanks

Paul
---
Paul Mahoney, Director, X-Act Solutions Ltd
smail: 71 South Cliff, Bexhill-on-Sea, East Sussex, TN39 3EE
email: [EMAIL PROTECTED]
phone: +44 (0) 1424 731240


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




How do you set up a jsp action/filter for all documents in a directory

2002-04-26 Thread Paul Mahoney

Dear Team

I've set up a test-bed Apache/Tomcat installation on my W2K box that is
working fine. I just cannot figure out how to configure the following:

I have a directory of files that can be served by Apache. Let say they are
in directory
"C:\myfiles". I can set up an Apache alias

  Alias /myfiles/ "C:/myfiles/"

and thus get to them through the Apache server.

However, the HTML files in this directory need some translation before they
get served. So when Apache is asked to serve, say, "/myfiles/afile.html" I
need a "jsp" to be run, that is given the original file path to read so it
can provide the translated response.

I remember doing this with cgi once using the ScriptAliasMatch directive.

I've got as far as adding

JkMount /myfiles ajp13
JkMount /myfiles/* ajp13

but have not got any further...

Does anyone know how to do this with Apache/Tomcat?

Many thanks

Paul



--
To unsubscribe:   
For additional commands: 
Troubles with the list: