RE: Any Known Help (links) on Making Struts 1.1 work on I Planet 6.0?

2003-03-07 Thread Gaurav . Goyal
Exciting to know that Struts 1.1 is working for you. Will try it out this
weekend.
I think i kept trying with jdk1.2 and never really tried with jdk1.3. I'll
try with that.

Thanks.

-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 7:25 PM
To: Struts Users Mailing List
Subject: Re: Any Known Help (links) on Making Struts 1.1 work on I
Planet 6.0?


  I run iPlanet v6 sp5 on Solaris and I've got Struts v1.1-rc1 working. 
I can't see why it would be any different for Windows

Here is what I had to do

1. Copy the latest exerces jars (exerces.jar and xercesImpl.jar) into 
the servers bin/https/jar directory. Note: I'm not sure that this is 
actually required. I have two servers running one with the exerces jars 
and one without and they both work. My suggestion is try it without and 
if it doesn't work try it with the jars.

2. Make the following changes to the servers JVM Attributes:

  Option: Default
  Classpath: /opt/eRAShome/MessageResources
 Note: This is the full path to a directory that 
contains
 all MessageResources.properties files. 
Don't ask
 me why... The server can't traverse into 
the webapp
 to find the files.
 Minimum Heap Size: 3670016
 Maximum Heap Size: 67108864
 
3. I have the JDK configured to use the latest Java 1.3 version. That is 
just a requirement for my development group. Java 1.4 should work fine.


Give this a try

Later, ajTreece



[EMAIL PROTECTED] wrote:

>have had some very frustrating experiences on trying to do struts1.1 on
>iplanet 6. Spent about 5 days trying to get it to work..but failed.
>So right now, i'm just working with Struts 1.0
>There are two problems you'll face with 1.1
>
>1) Logger in ActionServlet won't initialize. So server will not initialize
>the web app itself
>2) Struts-config.xml won't get parsed. I think its possibly because of some
>conflict in xml parsers of iplanet and the ones needed by Struts1.1. Gives
>IllegalMonitorStateException(if i remember right) on parsing
>Struts-config.xml
>
>I could fix 1 by changing source. Couldn't find a solution for 2 and so
>abandoned it midway and stuck to 1.0. 
>1.0 worked right out of the box.
>
>-Original Message-
>From: Velagapudi, Niranjan [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 07, 2003 4:18 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Any Known Help (links) on Making Struts 1.1 work on I
>Planet 6.0?
>
>
>Web Server.
>
>Thanks,
>Niranjan
>
>-Original Message-
>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 07, 2003 5:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Any Known Help (links) on Making Struts 1.1 work on I
>Planet 6.0?
>
>
>webserver or appserver?
>
>  
>
>>-Original Message-
>>From: Velagapudi, Niranjan [mailto:[EMAIL PROTECTED]
>>Sent: Friday, March 07, 2003 3:11 PM
>>To: 'Struts Users Mailing List'
>>Subject: Any Known Help (links) on Making Struts 1.1 work on I Planet
>>6.0?
>>
>>
>>
>>Is anyone aware of known links that discuss making struts 1.1 work on
>>Windows with i planet 6.0 (Service Pak 5)?
>>
>>Thanks,
>>
>>Niranjan
>>
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>



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

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



RE: Any Known Help (links) on Making Struts 1.1 work on I Planet 6.0?

2003-03-07 Thread Gaurav . Goyal
have had some very frustrating experiences on trying to do struts1.1 on
iplanet 6. Spent about 5 days trying to get it to work..but failed.
So right now, i'm just working with Struts 1.0
There are two problems you'll face with 1.1

1) Logger in ActionServlet won't initialize. So server will not initialize
the web app itself
2) Struts-config.xml won't get parsed. I think its possibly because of some
conflict in xml parsers of iplanet and the ones needed by Struts1.1. Gives
IllegalMonitorStateException(if i remember right) on parsing
Struts-config.xml

I could fix 1 by changing source. Couldn't find a solution for 2 and so
abandoned it midway and stuck to 1.0. 
1.0 worked right out of the box.

-Original Message-
From: Velagapudi, Niranjan [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 4:18 PM
To: 'Struts Users Mailing List'
Subject: RE: Any Known Help (links) on Making Struts 1.1 work on I
Planet 6.0?


Web Server.

Thanks,
Niranjan

-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 5:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Any Known Help (links) on Making Struts 1.1 work on I
Planet 6.0?


webserver or appserver?

> -Original Message-
> From: Velagapudi, Niranjan [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 3:11 PM
> To: 'Struts Users Mailing List'
> Subject: Any Known Help (links) on Making Struts 1.1 work on I Planet
> 6.0?
> 
> 
> 
> Is anyone aware of known links that discuss making struts 1.1 work on
> Windows with i planet 6.0 (Service Pak 5)?
> 
> Thanks,
> 
> Niranjan
> 


-
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: How do you keep your session junk free?

2003-03-07 Thread Gaurav . Goyal
What we are doing is (not very efficient, but easy and quick to program), we
have a class that gets the session and path as parameter. Then this class
checks to see what attributes are absolutely required for a path and it
removes the rest.
We are then calling this class from the processPreprocess hook of
ActionServlet.
So now by default this class is called for each request and thus session
gets cleaned up (at the cost of a little extra processing).

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 2:44 PM
To: Struts Users Mailing List
Subject: RE: How do you keep your session junk free?


Interesting.  We are less concerned about work flow that being able to
create wizards using session objects, and have them cleaned up in a timely
fashion.  I think it's nice to be able to manage extra parameters via the
actionMapping as you are doing, but to be honest managing everything via
request objects in workflows/wizards is a real pain in the ass, I've found.
I would much rather be able to store things on the session from actions and
have them reliably cleaned up in some fashion, hence the 1-per-session
notions I cooked up.

The reason you have to have the member Hashtable:

The WizardBag (or whatever you call it) needs to have the wizard's logical
name stored as a field.  One would use a separate, static name as the key to
store the bag on the session ("WizardBag", or whatever).  That way you only
have one wizard object as opposed to many session objects on the session.
If you just use the session, it is impossible to know what objects have been
placed there by sub-classes, and defeats the purpose of automatic session
management for a 1-per-session wizard.  This way, you only look up the
WizardBag object, check it's logical name, yada-yada, and keep, delete, or
create it depending on your actionmapping's parameter value.  Sub-classes
would use inherited methods to store objects in the WizardBag's Hashtable
and retrieve them.

Using this or a similar framework, it would be fairly easy to store session
objects in a 1-wizard-allowed-per-session model and expect those objects to
be cleaned up.  I haven't been able to come up with anything else.

peace,
Joe

> -Original Message-
> From: Sloan Seaman [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 12:07 PM
> To: Struts Users Mailing List
> Subject: Re: How do you keep your session junk free?
> 
> 
> The 1-per-session stuff, you might as well just use the 
> session object to do
> the storage otherwise you are just adding overhead by putting 
> a Hashtable
> into a Hashtable just to do get/put.  I name all my variable 
> that go into my
> session object com.symbol.mobilecommerce.so on to make sure I 
> don't clobber
> anything else.
> 
> You could also do the storage based on something like
> javax.xml.namespace.QName to be real unique...
> 
> The extension idea is not bad.  But defining by number can be 
> a pain.  If
> you have 50 steps (1-50) and you have to insert a new one a 
> 2, then you have
> to renumber the rest.  I'd come up with some sort of linked 
> list if I were
> you.
> 
> I've got an open source business rules engine that I wrote 
> that someone is
> supposed to be making into a work flow manager for struts... 
> that may be
> good as well  I'll have to see how far it has come along
> 
> I don't have anything for session mgmt as of yet myself but 
> it has crossed
> my mind that it could be an issue.
> 
> One of the things my ChainAction inherits from a HelperAction 
> I have is the
> ability to do a 
> That helps in keeping things out of the action that may be coming in.
> 
> Another thing I do to make it more flexible is that I wrote a 
> class that
> extends HttpServletRequestWrapper that allows me to put my 
> own parameters in
> so that the request object going to the action actually has parameters
> inserted in from my ActionChain.
> 
> This way the action being chained to can act like it was just taking a
> normal http request when in fact the ChainAction may be 
> inserting things (as
> directed from the struts-config) to help it out.
> 
> Works rather nicely and I have had no session related issues 
> as of yet.
> 
> I have been thinking about implementing something that would 
> do session
> storage based on where you are in a "package" and would make 
> the session
> variables accessible only if you were in that package.  Think
> private/protected variables like in Java...
> 
> Now I'm working on a generic action that will use different 
> forwarders based
> on the calling action.
> 
> This is because right now I have an ADD and an EDIT action path in my
> struts-config.xml because if something fails it has to climb 
> back the chain
> properly for the user.
> 
> With the new class I am writing if going to an EDIT action fails (say
> because the db bean didn't exist) it flips over to the ADD.  
> Then, when the
> user clicks the Next it flips back to the EDIT path,

Exceeding sessions on load test

2003-03-06 Thread Gaurav . Goyal
Hi,
I'm running iPlanet Web server on NT with Struts 1.0
I'm facing this problem where the number of sessions goes beyond the
1000 session limit during load test. We are invalidating sessions during
logout. The load test has at the most 35 concurrent users. I confirmed that
the session is being invalidated at logout. Is struts creating a session
somewhere after logout?
So i'm not sure why we are running out of sessions.
Any ideas?
I am guessing one possible reason could be that the web server is
not reaping sessions quickly enough after we have invalidated them.
Is there any way, in which i could print out the count of sessions
as the load test proceeds?

Thanks,
Gaurav


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



RE: [OT] Simulating Concurrent Users

2003-03-05 Thread Gaurav . Goyal
Sean, downloaded this software and set it up. Its pretty simple to use.
Getting a problem though. Its not able to find the link to my application.
It talks about changing the proxy server of IE. However i don't have the
rights to do that on my system. Do you have any ideas on this?

Thanks.

-Original Message-
From: Sean Chambers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 2:15 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Simulating Concurrent Users


sorry, should point out that its blatantly not open source.  but it is
free-ish

> -Original Message-
> From: Sean Chambers [mailto:[EMAIL PROTECTED]
> Sent: 05 March 2003 19:52
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Simulating Concurrent Users
> 
> 
> dont flame me for this, but you could try micro$ofts web 
> appliaction stress
> test tool. it only *runs* on NT x but u can use it to stress 
> anything i
> think.. and apparently its pretty simple to use.
> 
> http://www.microsoft.com/technet/treeview/default.asp?url=/tec
> hnet/itsolutio
> ns/intranet/downloads/webstres.asp
> 
> > -Original Message-
> > From: Jim Krygowski [mailto:[EMAIL PROTECTED]
> > Sent: 05 March 2003 19:45
> > To: Struts Users Mailing List
> > Subject: RE: [OT] Simulating Concurrent Users
> > 
> > 
> > Does JMeter fit the bill?  
> > http://jakarta.apache.org/jmeter/index.html
> > 
> > 
> > 
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 05, 2003 2:20 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [OT] Simulating Concurrent Users
> > > 
> > > 
> > > Hi,
> > >   Is there some open source tool or technique that I can use to
> > > simulate concurrent users for our application? I especially want 
> > > to test our
> > > connection pooling implementation.
> > > 
> > > Thanks,
> > > Gaurav
> > > 
> > > 
> > 
> -
> > > 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]
> > 
> 
> 
> **
> 
> CONFIDENTIALITY / DISCLAIMER NOTICE
> 
> This communication contains information, which is confidential 
> and may also be privileged. It is for the exclusive use of 
> the recipient(s). If you are not the intended recipient(s)
> please note that any distortion, copying or use of this
> communication or the information in it is strictly prohibited.
> Any  views or opinions presented are solely those of the
> author and do not necessarily represent those of
> Euro RSCG Wnek Gosper.
> 
> If you have received this communication in error please notify 
> us by e-mailing the author or by telephoning (020  7240 4111)
> and then delete the communication and any copies of it.
> 
> This footnote also confirms that this email message has been
> swept by MIMEsweeper for the presence of computer viruses.
> 
> http://www.eurorscg.co.uk
> **
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
CONFIDENTIALITY / DISCLAIMER NOTICE

This communication contains information, which is confidential 
and may also be privileged. It is for the exclusive use of 
the recipient(s). If you are not the intended recipient(s)
please note that any distortion, copying or use of this
communication or the information in it is strictly prohibited.
Any  views or opinions presented are solely those of the
author and do not necessarily represent those of
Euro RSCG Wnek Gosper.

If you have received this communication in error please notify 
us by e-mailing the author or by telephoning (020  7240 4111)
and then delete the communication and any copies of it.

This footnote also confirms that this email message has been
swept by MIMEsweeper for the presence of computer viruses.

http://www.eurorscg.co.uk
**


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



[OT] Simulating Concurrent Users

2003-03-05 Thread Gaurav . Goyal
Hi,
Is there some open source tool or technique that I can use to
simulate concurrent users for our application? I especially want to test our
connection pooling implementation.

Thanks,
Gaurav

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



Struts or DBCP?

2003-03-02 Thread Gaurav . Goyal
Hi,
I'm getting a strange exception in our application. We are using
Struts 1.0 with DBCP 1.0 on iPlanet.
There is a particular URL in our application which does a lot of
data processing. It take approx 8 to 10 seconds to process and return data
back to the screen.
If i click on this URL once, wait for 2 secs and then click on this
URL again then I get the exception shown below. It looks like its some kind
of a threading problem. I'm not sure where though..i.e. in our Struts action
class or in the DBCP implementation. I'm able to reproduce this problem only
around once in 25 times.
The action class defines the connection locally...so there is no
problem there.
Does anyone have any ideas?

Here's the exception trace

, root cause: java.sql.SQLException: Closed Statement
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:274)
at
oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.java:453
0)
at
oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:6
66)
at
oracle.jdbc.driver.OracleResultSet.getInt(OracleResultSet.java:1420)
at
org.apache.commons.dbcp.DelegatingResultSet.getInt(DelegatingResultSet.java:
159)
at
com.gecapital.erc.phoenix.entity.ProfileSite.populateColumns(Unknown Source)
at
com.gecapital.erc.phoenix.entity.ProfileSite.loadCollection(Unknown Source)
at com.gecapital.erc.phoenix.entity.Profile.loadProfileSites(Unknown
Source)
at
com.gecapital.erc.phoenix.action.LoadProfileAction.perform(Unknown Source)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1787)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)

Thanks,
Gaurav


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



processPreprocess hook

2003-03-01 Thread Gaurav . Goyal
Hi,
We have been overriding the processPreprocess method in
ActionServlet of Struts 1.0 in an extended class to do some custom
processing like session expiry handling etc. I noticed that this method is
not present in the ActionServlet of Struts 1.1. So now I guess we can't
migrate from Struts 1.0 to Struts 1.1. unless we make some changes in our
extended class. Am i right or am I missing something here?

Thanks,
Gaurav

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



RE: [OT] DBCP Pool Closed connection problem

2003-02-27 Thread Gaurav . Goyal
Thats what i've been thinking. 
after we obtain results in a resultset and before we start iterating through
it, the original connection is somehow getting closed. it could be because
some other user has a reference to the same connection. but i'm not sure how
that can happen. all connections are local variables in action classes (i'll
double check this). i've also synchronized the getConnection method on the
pool.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 3:36 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] DBCP Pool Closed connection problem


Would it be a multi-threading problem, another user moves cursor to next row
of the ResultSet?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: February 27, 2003 4:29 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] DBCP Pool Closed connection problem

Thanks for the replies.
How can turn on the validation which checks for a good connection before
returning.
I guess i need to setTestOnBorrow(true). Do I need to do any thing else?

We actually have automated JTest which checks for all closed connections. So
that's what makes me certain that connections are all closed properly.
What i did is that i made only one connection available to the pool. and
when i'm the only user, things work fine even with one available connection.


-Original Message-
From: Miller, Jason [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 2:57 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] DBCP Pool Closed connection problem


I had this problem once.  At the time, I was positive everything was closed
correctly, but it turned out at one point, where I was unwrapping the
connection, I had closed it.  This inadvertently caused the pool to be
exhausted.

This occurred before I had a quality check on my connections, so it didn't
replace the closed ones.  Still, check exhaustively before you say you are
positive all closings are correct.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 3:52 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] DBCP Pool Closed connection problem
> 
> 
> Hi,
>   I'm using commons DBCP in conjuction with STRUTS.
>   When a lot of users start using  our application, we 
> start getting a
> lot of exceptions related to Connections, like "Exhausted 
> Resultset" or
> "Connection is Closed". The first one happens when we try to 
> retrieve a
> column from a resultset. The second one happens when we try to open a
> connection.
>   Neither of these errors happen in a predictable fashion.
>   Right now we have set the pool max active connections 
> to 50 and the
> number of users testing is about 5.
>   I'm absolutely positive, that all connections, resultsets and
> statements have been closed at the appropriate places by the pool. 
>   Is it a problem with the way I've configured the pool? 
> has anyone
> faced a similar problem before?
> 
> Thanks,
> Gaurav
> 
> -
> 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: [OT] DBCP Pool Closed connection problem

2003-02-27 Thread Gaurav . Goyal
Thanks for the replies.
How can turn on the validation which checks for a good connection before
returning.
I guess i need to setTestOnBorrow(true). Do I need to do any thing else?

We actually have automated JTest which checks for all closed connections. So
that's what makes me certain that connections are all closed properly.
What i did is that i made only one connection available to the pool. and
when i'm the only user, things work fine even with one available connection.


-Original Message-
From: Miller, Jason [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 2:57 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] DBCP Pool Closed connection problem


I had this problem once.  At the time, I was positive everything was closed
correctly, but it turned out at one point, where I was unwrapping the
connection, I had closed it.  This inadvertently caused the pool to be
exhausted.

This occurred before I had a quality check on my connections, so it didn't
replace the closed ones.  Still, check exhaustively before you say you are
positive all closings are correct.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 3:52 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] DBCP Pool Closed connection problem
> 
> 
> Hi,
>   I'm using commons DBCP in conjuction with STRUTS.
>   When a lot of users start using  our application, we 
> start getting a
> lot of exceptions related to Connections, like "Exhausted 
> Resultset" or
> "Connection is Closed". The first one happens when we try to 
> retrieve a
> column from a resultset. The second one happens when we try to open a
> connection.
>   Neither of these errors happen in a predictable fashion.
>   Right now we have set the pool max active connections 
> to 50 and the
> number of users testing is about 5.
>   I'm absolutely positive, that all connections, resultsets and
> statements have been closed at the appropriate places by the pool. 
>   Is it a problem with the way I've configured the pool? 
> has anyone
> faced a similar problem before?
> 
> Thanks,
> Gaurav
> 
> -
> 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]



[OT] DBCP Pool Closed connection problem

2003-02-27 Thread Gaurav . Goyal
Hi,
I'm using commons DBCP in conjuction with STRUTS.
When a lot of users start using  our application, we start getting a
lot of exceptions related to Connections, like "Exhausted Resultset" or
"Connection is Closed". The first one happens when we try to retrieve a
column from a resultset. The second one happens when we try to open a
connection.
Neither of these errors happen in a predictable fashion.
Right now we have set the pool max active connections to 50 and the
number of users testing is about 5.
I'm absolutely positive, that all connections, resultsets and
statements have been closed at the appropriate places by the pool. 
Is it a problem with the way I've configured the pool? has anyone
faced a similar problem before?

Thanks,
Gaurav

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



RE: Parsing error (Strange behaviour on NT)

2003-01-27 Thread Gaurav . Goyal
Found the problem.  was opened and closed many times in the
document. Funny thing is it was working fine on NT. What is buggy here on
NT? My web server's XML parser?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 9:18 AM
To: [EMAIL PROTECTED]
Subject: Parsing error


Hi,
I'm getting the following error when I restart my web server. I'm
developing on an NT machine and then deploying the code onto a unix server.
Things work fine on my machine, but I start getting this error as soon as I
deploy my code and do a server restart. Is it a problem with the file format
or do I have an incorrect version of the DTD?

Thanks,
Gaurav

Parse Error at line 1041 column -1: Element "struts-config" allows no
further input; "action-mappings" is not allowed.
org.xml.sax.SAXParseException: Element "struts-config" allows no further
input; "action-mappings" is not allowed.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:345)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java:315)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java:181)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Parsing error

2003-01-27 Thread Gaurav . Goyal
Hi,
I'm getting the following error when I restart my web server. I'm
developing on an NT machine and then deploying the code onto a unix server.
Things work fine on my machine, but I start getting this error as soon as I
deploy my code and do a server restart. Is it a problem with the file format
or do I have an incorrect version of the DTD?

Thanks,
Gaurav

Parse Error at line 1041 column -1: Element "struts-config" allows no
further input; "action-mappings" is not allowed.
org.xml.sax.SAXParseException: Element "struts-config" allows no further
input; "action-mappings" is not allowed.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:345)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java:315)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java:181)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Handling session Timeout

2002-10-08 Thread Gaurav . Goyal

I got the redirect to work, however I still am not able to get this check
(request.getSession(false) == null) to work...it almost seems like
request.getSession(false) is always returning a new session, no matter
what...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 11:50 AM
To: [EMAIL PROTECTED]
Subject: Handling session Timeout


I'm trying to implement something from an earlier posting on the list.
I've extended ActionServlet and overridden the processPreprocess method.
I've put in the following line : if (request.getSession(false) == null),
however i find that this line always returns false, even after the session
has timed out. If i check for a specific attribute in the session, I can get
it to work. Is there any reason why checking for the session to be null
doesn't work? The reason this is important is because the user's first URL
to the application goes through ActionServlet, so if i check for a specific
variable, it will always be null.
Also I want to redirect from this method to a message screen, how can I do
that?
I am using Struts 1.0.2 on iplanet 6.0

Thanks,
Gaurav

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Handling session Timeout

2002-10-08 Thread Gaurav . Goyal

I'm trying to implement something from an earlier posting on the list.
I've extended ActionServlet and overridden the processPreprocess method.
I've put in the following line : if (request.getSession(false) == null),
however i find that this line always returns false, even after the session
has timed out. If i check for a specific attribute in the session, I can get
it to work. Is there any reason why checking for the session to be null
doesn't work? The reason this is important is because the user's first URL
to the application goes through ActionServlet, so if i check for a specific
variable, it will always be null.
Also I want to redirect from this method to a message screen, how can I do
that?
I am using Struts 1.0.2 on iplanet 6.0

Thanks,
Gaurav

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts w/ iPlanet6

2002-10-04 Thread Gaurav . Goyal

were u actually able to get Struts 1.1 b2 to work with iplanet 6?
I was able to fix the logging problem by making a small change in the
ActionServlet, however I was having problems with the parsing of
struts-config.xml by the Digester class.
Since then I've given up on using Struts 1.1 b2 and instead i'm using Struts
1.0.2.

-Original Message-
From: Ortega, Carlos [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 3:04 PM
To: Struts Users Mailing List
Subject: RE: Struts w/ iPlanet6


All,

I recieved this bit of advice from Dasa Paddock (see next message), if you
are having problems getting Struts to work properly with iPlanet 6, the
advice in his message helped tremendously.

Also, If you're using Struts with PoolMan's connection pool, be sure to
place both the the commons-logging.jar and log4j.jar in the JVM classpath
with commons appearing first. There seems to be a conflict between the two
JAR files.

Regards,
Carlos Ortega


Carlos,

I'm also using iPlanet 6.  I'm using the Web Server SP 2, not the App
Server.

The only way I got it to work was to put the commons-logging.jar into the
JVM classpath.  And I had to put the one from Struts 1.1 Beta 1, not Beta 2.
This is a known problem and happens on some other servlet engines as well.
The Struts guys say that it's a bug in iPlanet's (and the others) servlet
engine.  Also make sure that you have the ActionServlet configured to
automatically start in the web.xml if you're going to a JSP page before
anything else.

I've also found that in Beta 2, it won't find the Resource.properties file
unless it is also in the classpath.  I just put it in the iPlanet config
directory.

This is a pain and I sure home that it's fixed in the upcoming Sun One
Server 7!

--Dasa Paddock
Application Developer

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: all this traffic

2002-09-25 Thread Gaurav . Goyal

I think the archive has a wealth of information. It would be great if it was
organized such that, it was very easy to search for the needed information.
In fact a lot of the documentation needs would be reduced if only the
archive was better organized.
Some of the things that could be done is classification of information in
the archives, having a single solution page for a question that has been
asked multiple times, maybe requiring a certain template for all posts made
to the list, so that the posts could be more easily classified etc.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 6:02 PM
To: 'Struts Users Mailing List'
Subject: RE: all this traffic


Remember that Struts is still in beta; documentation always lags behind
development.  I think it's a tribute to the quality and utility of Struts
that there are so many subscribers and participants to the list.  I have
found very few threads on the list that are not useful or at least
interesting.  I admit, however, that at times I am overwhelmed and just have
to delete 100 messages and pick up the conversation from there.


-Original Message-
From: Jonas Björnerstedt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 7:02 PM
To: Struts Users Mailing List
Subject: RE: all this traffic


I don't think high traffic lists are efficient for several reasons:

- Questions are repeated, partly because it is hard to find the answers in
the archives.

- One reason why there are a lot of questions is that documentation is
lacking. What I wanted to suggest was one method of collecting answers in a
cheap fashion.

- I realize that pressing delete is easy. The cost of pressing delete
however is missing all the relevant discussions.

- High traffic can also make people rude.

Jonas

> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: den 26 september 2002 00:42
> To: 'Struts Users Mailing List'
> Subject: RE: all this traffic
>
>
> You could also try unsubscribing when you are going to be away.  Or simply
> hold your shift key, highlight the lot, and .  Why should the list
> have to be inconvenienced because you lack management skills?
>
> -Original Message-
> From: Jonas Björnerstedt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 6:43 PM
> To: Struts Users Mailing List
> Subject: all this traffic
>
>
> Hello all,
>
> A couple of days away from my computer has resulted in 473 unread
> postings.
> It's a bit frustrating trying to use a high traffic mailing list like this
> one. Here are some suggestions:
>
> - Have a struts-answers mailing list. If I found a discussion
> interesting -
> such as the one on container managed security - I could simply
> forward it to
> the answers list. The cost of asking a question could be to compile the
> answers and submit it to the list. This could be a cheap way of getting
> better documentation.
>
> - A struts-beginners list might be a good idea too. Sometimes the
> blind are
> not all that bad at leading the blind.
>
> - One could also consider having a struts-tags list. With JSF
> coming, there
> are going to be more people that are not interested in the Struts tags.
>
> Jonas
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HTTP 405 - Resource not allowed

2002-09-23 Thread Gaurav . Goyal

Please ignore this. I had screwed up the settings of my application server
which was causing this.

Thanks.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 7:59 PM
To: [EMAIL PROTECTED]
Subject: HTTP 405 - Resource not allowed


Hi,
For some reason I'm getting the above error whenever I try to access
any of my .do URLs. Does anyone know what could be the reason for this?
The same page is accessible if I try to access it directly, i.e.
without going to it through Struts..

Thanks,
Gaurav

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HTTP 405 - Resource not allowed

2002-09-23 Thread Gaurav . Goyal

Hi,
For some reason I'm getting the above error whenever I try to access
any of my .do URLs. Does anyone know what could be the reason for this?
The same page is accessible if I try to access it directly, i.e.
without going to it through Struts..

Thanks,
Gaurav

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts1.1.b2 and Menu

2002-09-23 Thread Gaurav . Goyal

I guess you probably have a general question as to how you should call your
JSP/HTML resources from within other JSP/HTML pages.
The standard way of doing this in Struts is 
1) Request for every resource through the controller servlet
2) To do this you can make every request to end with an extension like *.do
3) Map all requests ending with *.do such that they go to the controller
servet i.e. org.apache.struts.action.ActionServlet. You can make this
mapping in web.xml.
4) Map each resource path to its corresponding action class and presentation
in the struts-config.xml

My suggestion is that you can go through the example application that is
bundled with Struts. You can then choose to model your own application based
on the example or you can take your own deviations as you choose.

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 9:40 AM
To: Struts Users Mailing List
Subject: Struts1.1.b2 and Menu 


Hi,

I have a javascript which populates a drop down menu, 
now i want to integrate in struts,
So suppose i have a menu item which calls AddUser.jsp,
In my previous version , u se to give a total path
like
http://servername:8080/maps/pages/AddUser.jsp in my
menu so i can call it from any level, 
so how can i write a Action Class to call this
AddUser.jsp, what definiation i need in struts-config
file file, and what is need in my javascript path
definition( how do i replace the abouve total path)

Ashish

=
A$HI$H

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Starting Background processes

2002-09-18 Thread Gaurav . Goyal

Hi,
This might be a general J2EE question rather than a Struts question.
In our app we need to start some background java jobs upon a user
request on a web based form. These jobs will execute for around 10 minutes.
So once a user makes a request we need to kick off a job in the background
from the action class and show a message to the user saying "Your job is
executing".
What is the best way of doing this?
A couple of thoughts that we have on this is
1) To set some flag in our database upon the user's job request.
Then have some unix script run every 5 minutes to check for that flag
2) Start a thread in our action class to execute the job.

Any thoughts on what could be a better approach or has anyone done
something similar using some other methodology?

Thanks,
Gaurav

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Web Application directory structure

2002-09-17 Thread Gaurav . Goyal

Yes, appending context root is a nice little feature. 
Thanks for the tip. "request.getContextPath()" is going into the JSP coding
standards doc.

I wonder if there is some list of "Design Practices" or "Coding Practices"
that were followed during the development of struts? It would be a nice
learning experience. Ofcourse I keep looking at the code from time to time.

Thanks.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 16, 2002 7:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Web Application directory structure


Yes, in general struts custom tags prepend the context root to links.  This 
is one of the great advantages to using the tags.  You can alternately use 
request.getContextPath() to retrieve the current context root; however, 
struts also rewrites urls with session data if cookies are not being used.

Dave


>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Web Application directory structure
>Date: Mon, 16 Sep 2002 18:20:43 -0500
>
>Hi,
>   My question is : Does Struts append the application URI to all
>relative URLS within JSPs automatically? The following are the observations
>which raise this question.
>
>   I've got the following directory structure for my Web Application
>below the default server root.
>
>>/MyProject
>-->WEB-INF
>-->jsp
>-->images
>
>   The entry in my web-apps.xml for this web application is
>
>enable="true"/>
>
>   Now in my web.xml I've referred to the location of struts-config.xml
>as /WEB-INF/struts-config.xml and it works fine.
>   However if in my JSPs i use the standard IMG tag and give
>/images/imagename to access an image it doesn't work, I have to give
>/MyProject/imagename. Thus my JSP code gets tied to the name of the 
>project.
>
>   I also noticed that the index.jsp of the example application has got
>only /struts-power.gif to refer to the image, but when I do the View source
>for the displayed HTML it shows /example/struts-power.gif as the URL for 
>the
>image (example being the URI I used while deploying the example app).
>   Did struts append the "example" to the URL of the image?
>
>
>Thanks,
>Gaurav
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Parsing error

2002-09-12 Thread Gaurav . Goyal

i put digester.parse(is) in a synchronized block. That did not help.

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 10:13 AM
To: 'Struts Users Mailing List'
Subject: RE: Parsing error


Wow...never saw that before.  Apparently you've got thread contention on the
SAXP object.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 11:02 AM
To: [EMAIL PROTECTED]
Subject: RE: Parsing error


While I share your opinion on iPlanet, I have to live with it as its
the standard for development here. However I'm trying to advocate the MVC
architecture here. And I want to use Struts for the obvious reason that I
don't have to reinvent the wheel. So I need to get struts working. I did
some more digging and found that this was the exact error which was being
thrown by ActionServlet when trying to parse struts-config.xml. Any ideas on
this.

[11/Sep/2002:19:43:12] info (  517): java.lang.IllegalMonitorStateException:
current thread not owner
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at org.apache.commons.digester.Digester.startElement(Digester.java,
Compiled Code)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java,
Compiled Code)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java, Compiled Code)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java, Compiled Code)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java, Compiled Code)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java, Compiled Code)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava, Compiled Code)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java,
Compiled Code)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java,
Compiled Code)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java,
Compiled Code)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 6:31 AM
To: 'Struts Users Mailing List'
Subject: RE: Parsing error


Dump the server; it's crap.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 7:14 PM
To: [EMAIL PROTECTED]
Subject: Parsing error


Hi,
Getting the following error on trying to start up web server having
the struts example app. I've tried it with the latest versions of jaxp and
xerces and yet it gives the same error. The line in ActionServlet which is
causing this is digester.parse(is);

Please help,
Thanks.

[11/Sep/2002:18:10:34] warning (  357):
vs(https-L000434CERCGE.erc.gecapital.com)ServletException thrown in
servlet.init; context = /, servlet = 'action'; stack tace:
javax.servlet.UnavailableException: Parsing error processing resource path
/Web-inf/struts-config.xml
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava, Compiled Code)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java,
Compiled Code)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java,
Compiled Code)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java,
Compiled Code)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)
, root cause: 



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Parsing error

2002-09-12 Thread Gaurav . Goyal

While I share your opinion on iPlanet, I have to live with it as its
the standard for development here. However I'm trying to advocate the MVC
architecture here. And I want to use Struts for the obvious reason that I
don't have to reinvent the wheel. So I need to get struts working. I did
some more digging and found that this was the exact error which was being
thrown by ActionServlet when trying to parse struts-config.xml. Any ideas on
this.

[11/Sep/2002:19:43:12] info (  517): java.lang.IllegalMonitorStateException:
current thread not owner
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at org.apache.commons.digester.Digester.startElement(Digester.java,
Compiled Code)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java,
Compiled Code)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java, Compiled Code)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java, Compiled Code)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java, Compiled Code)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java, Compiled Code)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava, Compiled Code)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java,
Compiled Code)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java,
Compiled Code)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java,
Compiled Code)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)


-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 6:31 AM
To: 'Struts Users Mailing List'
Subject: RE: Parsing error


Dump the server; it's crap.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 7:14 PM
To: [EMAIL PROTECTED]
Subject: Parsing error


Hi,
Getting the following error on trying to start up web server having
the struts example app. I've tried it with the latest versions of jaxp and
xerces and yet it gives the same error. The line in ActionServlet which is
causing this is digester.parse(is);

Please help,
Thanks.

[11/Sep/2002:18:10:34] warning (  357):
vs(https-L000434CERCGE.erc.gecapital.com)ServletException thrown in
servlet.init; context = /, servlet = 'action'; stack tace:
javax.servlet.UnavailableException: Parsing error processing resource path
/Web-inf/struts-config.xml
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava, Compiled Code)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java,
Compiled Code)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java,
Compiled Code)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java,
Compiled Code)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)
, root cause: 



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Parsing error

2002-09-11 Thread Gaurav . Goyal

Hi,
Getting the following error on trying to start up web server having
the struts example app. I've tried it with the latest versions of jaxp and
xerces and yet it gives the same error. The line in ActionServlet which is
causing this is digester.parse(is);

Please help,
Thanks.

[11/Sep/2002:18:10:34] warning (  357):
vs(https-L000434CERCGE.erc.gecapital.com)ServletException thrown in
servlet.init; context = /, servlet = 'action'; stack tace:
javax.servlet.UnavailableException: Parsing error processing resource path
/Web-inf/struts-config.xml
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava, Compiled Code)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java,
Compiled Code)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java,
Compiled Code)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java,
Compiled Code)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)
, root cause: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




commons-logging.properties

2002-09-11 Thread Gaurav . Goyal

Hi,
I'm getting a problem when I restart my iPlanet Web Server 6.0 after
deploying the example application in struts 1.1 b2. I've included the stack
trace below. Is it because LogFactory.java is not able to find
commons-logging.properties? If yes, can someone tell me where I can find
this file and what is the location I should put this file into?

Thanks,
Gaurav

SERVER LOG AND STACK TRACE:

[11/Sep/2002:11:53:48] info (  357): successful server startup
[11/Sep/2002:11:53:48] info (  357): iPlanet-WebServer-Enterprise/6.0SP4
B07/17/2002 13:26
[11/Sep/2002:11:53:48] info (  357): Installing a new configuration
[11/Sep/2002:11:53:48] info (  357): [LS ls1]
http://L000434CERCGE.erc.gecapital.com, port 80 ready to accept requests
[11/Sep/2002:11:53:48] info (  357): A new configuration was successfully
installed
[11/Sep/2002:11:53:49] info (  357): Using the Classic VM v1.2.2 from Sun
Microsystems Inc.
[11/Sep/2002:11:53:49] info (  357): Java VM classpath:
C:/iplanet/servers/docs/Web-inf/lib/xerces.jar;C:/iplanet/servers/docs/Web-i
nf/lib/log4j.jar;C:/iplanet/servers/docs/Web-inf/lib/commons-logging.jar;C:/
iplanet/servers/docs/Web-inf/lib/commons-logging-api.jar;C:/iPlanet/Servers/
plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar;C:/iPlanet/Servers/
bin/https/jar/NSServletLayer.jar;C:/iPlanet/Servers/bin/https/jar/NSJavaUtil
.jar;C:/iPlanet/Servers/bin/https/jar/AdminNativeUtil.jar;C:/iPlanet/Servers
/bin/https/jar/NSJavaMiscUtil.jar;C:/iPlanet/Servers/bin/https/jar/servlet.j
ar;C:/iPlanet/Servers/bin/https/jar/servlet-2.3-filters-api.jar;C:/iPlanet/S
ervers/bin/https/jar/jsp092.jar;C:/iPlanet/Servers/bin/https/jar/jaxp.jar;C:
/iPlanet/Servers/bin/https/jar/crimson.jar;C:/iPlanet/Servers/bin/https/jar/
xalan.jar;C:/iPlanet/Servers/bin/https/jar/jspengine.jar;
[11/Sep/2002:11:53:49] info (  357): Loading IWSSessionManager by default.
[11/Sep/2002:11:53:49] info (  357): IWSSessionManager: Maximum number of
sessions is 1000
[11/Sep/2002:11:53:52] info (  357): Adding default web application at
(C:/iPlanet/Servers/docs)
[11/Sep/2002:11:53:52] info (  357): Loading IWSSessionManager by default.
[11/Sep/2002:11:53:52] info (  357): IWSSessionManager: Maximum number of
sessions is 1000
[11/Sep/2002:11:53:52] failure (  357): Internal error: Unexpected error
condition thrown (java.lang.ExceptionInInitializerError,no description),
stack: java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java,
Compiled Code)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:382)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:375)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:241)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:71)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java,
Compiled Code)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java,
Compiled Code)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)

[11/Sep/2002:11:53:52] failure (  357): Internal Error: Failed to initialize
web application environment (web-apps.xml) for virtual server
(https-L000434CERCGE.erc.gecapital.com)
[11/Sep/2002:11:53:52] info (  357): Internal Error: Failed to initialize
web application environment (web-apps.xml) for virtual server
(https-L000434CERCGE.erc.gecapital.com)
[11/Sep/2002:11:53:52] failure (  357): The new configuration was rejected,
rolling back


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




java.lang.ExceptionInInitializerError

2002-09-10 Thread Gaurav . Goyal

Hi,
I installed the example application which comes with the struts 1.1
b2 version. The server is iPlanet web server 6.0
When I try to start the server it gives the following exception.

Internal error: Unexpected error condition thrown
(java.lang.ExceptionInInitializerError,no description), stack:
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java,
Compiled Code)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:382)
at
org.apache.struts.action.ActionServlet.(ActionServlet.java:375)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:241)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:71)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java,
Compiled Code)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java,
Compiled Code)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
686)

Please help,
Thanks,
Gaurav

--
To unsubscribe, e-mail:   
For additional commands, e-mail: