Struts 1.1 bean:write problem

2004-05-21 Thread Arunkumar Sreedharan
Ref : msg71420

Hi,

 I suppose the proble is very simple,
 just add the following things to the web.xml and struts-config.xml

 In Web.xml

 
  application
  com.xyz.ApplicationResources


 add the above entry below 
action
org.apache.struts.action.ActionServlet


 It is not necessary that the applicationresource.properties may contain
 anything... it can be blank. Its only that this is one of the
 initialization parameters needed for the server to be properly started.
 But make sure the file is there.

In struts-config.xml


entry

and i think its all done.

-- 
http://www.fastmail.fm - Sent 0.02 seconds ago


Re: optionsCollection struts 1.1

2004-03-05 Thread bojke
as as wrote:

Good explanation.Then any way to set a default value show up in the list...onthe jsp page...

Thanks

yoge <[EMAIL PROTECTED]> wrote:



For the above to work, your FormBean should have a property *conditions* 
with type as Collection.
The coditions should be collection of properties and each should have 
two property Label and Value for display and value for the tag.

In short , conditions property should contain collection of JavaBean 
given below

public class Option
{
String label ="";
String value = "";
public String getLabel()
{
return label;
}
public String getValue()
{
return value;
}
public void setLabel(String temp)
{
this.label=temp;
}
public void setValue(String temp)
{
this.value=temp;
}
}
Hope this helps

--Yoge

bojke wrote:

 

Hi,

I don't see optionsCollection in struts1.1
Is there optionsCollection in struts1.1?
I have ArrayList as property of FormBean. ArrayList is collection of 
beans. Beans of course has a propreties.
Does anybody know how to dislpay e.g bean property beanName using 
html:options
in drop-down list.

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





-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
 

Yes, it helps.
Thans guys,
Bojan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] RE: web.xml DTD for Servlet 2.3 & Struts 1.1

2004-03-04 Thread Craig R. McClanahan
Quoting Wendy Smoak <[EMAIL PROTECTED]>:

> A long time ago, Craig McClanahan wrote:
> > It is a common misconception that the public identifiers of a DTD like
> > this *must* actually be working URLs [...].
> > They are just unique strings of characters that
> > (often) happen to look like URLs.  
> > Blame the XML community for that :-).
> 
> 
> And then Yuan Saul asked:
> > If a local copy of DTD is not available, then an Internet connection
> is
> > required, in this case, does the URI has to be pointing to a working
> URL
> > where the DTD file can be retrieved?
> 
> Which is also my question, but there is no reply in the archives.
> Anyone?
> 
> Today we got a note from campus IT saying that they believed some
> problems in their J2EE apps were related to "code that connects to
> http://java.sun.com behind-the-scenes to download various DTD files
> related to parsing XML documents."
> 
> In addition to whether it happens at all (going out to the internet to
> retrieve the DTD) I'm also curious if it's the XML parser, or the
> Servlet container, etc.  What component would make the call out to get
> the DTD?
> 
> I've always wondered...
> 

Since Wendy spends quite a bit of time answering questions for users, it's only
fair that I answer this one for her :-).

The answer actually depends on your XML parser, and you can actually get
involved in the process if you want to, but for simple use cases the answer is
"yes".  If you're interested, here's a few details about how Struts (and
Tomcat, for that matter) use the commons-digester module to parse configuration
files:

* Your XML document includes a DOCTYPE header defining the DTD.  For a
  Struts config file, it would look like:

  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

* This header includes two identifiers for the DTD ... the *public* identifer
  "-//Apache ..." and the *system* identifier (in this case, a URL).

* Commons Digester uses the SAX parsing APIs provided by the parser.
  Included in these APIs is an interface, which Digester implements.

* The parser calls the resolveEntity() method of the EntityResolver
  (i.e. the Digester instance), asking it to return an InputSource
  so the parser can read the DTD's contents.

* The default EntityResolver defined by SAX simply uses the system id
  as a URL and attempts to retrieve it.  With the system identifier
  given above, it will go to the jakarta.apache.org site across the
  Internet.

* Digester, however, is "smarter than the average bear" (if you remember
  Yogi Bear from growing up days :-).  It allows you to register a
  mapping from a public identifier ("-//Apache ...") to an *internal*
  resource inside the JAR file.  If you call resolveEntity() and pass
  one of the registered public ids, it will ignore the system id and
  return a stream to the internal resource.  If the public id is not
  recognized, it wil do the usual thing (using the system id instead).

* Struts pre-registers the public ids for the various versions of the
  DTD, pointing at internal resources (see the initConfigDigester() method
  of ActionServlet), so that it will never need to use the system id.

In this way, you can run Struts based applications (and Tomcat, which does the
same thing for the DTDs for web.xml files) completely disconnected from the
Internet, without changing the system ids in your XML documents.

If you find that your application is attempting to go to the Internet for DTDs
anyway, the most likely explanation is that you have a typo in the public
dentifier in your config fie.

> -- 
> Wendy Smoak
> Application Systems Analyst, Sr.
> ASU IA Information Resources Management 
> 

Craig


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



Re: optionsCollection struts 1.1

2004-03-04 Thread as as
Good explanation.Then any way to set a default value show up in the list...onthe jsp 
page...
 
Thanks

yoge <[EMAIL PROTECTED]> wrote:




For the above to work, your FormBean should have a property *conditions* 
with type as Collection.
The coditions should be collection of properties and each should have 
two property Label and Value for display and value for the tag.

In short , conditions property should contain collection of JavaBean 
given below

public class Option
{
String label ="";
String value = "";

public String getLabel()
{
return label;
}
public String getValue()
{
return value;
}
public void setLabel(String temp)
{
this.label=temp;
}
public void setValue(String temp)
{
this.value=temp;
}
}


Hope this helps

--Yoge


bojke wrote:

> Hi,
>
> I don't see optionsCollection in struts1.1
> Is there optionsCollection in struts1.1?
>
> I have ArrayList as property of FormBean. ArrayList is collection of 
> beans. Beans of course has a propreties.
> Does anybody know how to dislpay e.g bean property beanName using 
> html:options
> in drop-down list.
>
> Thanks,
> Bojan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Re: optionsCollection struts 1.1

2004-03-04 Thread as as
Good explanation.Then any way to set a default value show up in the list...onthe jsp 
page...
 
Thanks

yoge <[EMAIL PROTECTED]> wrote:




For the above to work, your FormBean should have a property *conditions* 
with type as Collection.
The coditions should be collection of properties and each should have 
two property Label and Value for display and value for the tag.

In short , conditions property should contain collection of JavaBean 
given below

public class Option
{
String label ="";
String value = "";

public String getLabel()
{
return label;
}
public String getValue()
{
return value;
}
public void setLabel(String temp)
{
this.label=temp;
}
public void setValue(String temp)
{
this.value=temp;
}
}


Hope this helps

--Yoge


bojke wrote:

> Hi,
>
> I don't see optionsCollection in struts1.1
> Is there optionsCollection in struts1.1?
>
> I have ArrayList as property of FormBean. ArrayList is collection of 
> beans. Beans of course has a propreties.
> Does anybody know how to dislpay e.g bean property beanName using 
> html:options
> in drop-down list.
>
> Thanks,
> Bojan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Re: optionsCollection struts 1.1

2004-03-04 Thread yoge
   
   
   
For the above to work, your FormBean should have a property *conditions* 
with type as Collection.
The coditions should be collection of properties and each should have 
two property Label and Value for display and value for the  tag.

In short , conditions property should contain collection of JavaBean 
given below

public class Option
{
   String label ="";
   String value = "";
 
   public String getLabel()
   {
   return label;
   }
   public String getValue()
   {
   return value;
   }
   public void setLabel(String temp)
   {
   this.label=temp;
   }
   public void setValue(String temp)
   {
   this.value=temp;
   }
}

Hope this helps

--Yoge

bojke wrote:

Hi,

I don't  see optionsCollection in struts1.1
Is there optionsCollection in struts1.1?
I have ArrayList as property of FormBean. ArrayList is collection of 
beans. Beans of course has a propreties.
Does anybody know how to dislpay e.g bean property beanName using 
html:options
in drop-down list.

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



optionsCollection struts 1.1

2004-03-04 Thread bojke
Hi,

I don't  see optionsCollection in struts1.1
Is there optionsCollection in struts1.1?
I have ArrayList as property of FormBean. ArrayList is collection of 
beans. Beans of course has a propreties.
Does anybody know how to dislpay e.g bean property beanName using 
html:options
in drop-down list.

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


[OT] RE: web.xml DTD for Servlet 2.3 & Struts 1.1

2004-03-04 Thread Joe Germuska
Today we got a note from campus IT saying that they believed some
problems in their J2EE apps were related to "code that connects to
http://java.sun.com behind-the-scenes to download various DTD files
related to parsing XML documents."
In addition to whether it happens at all (going out to the internet to
retrieve the DTD) I'm also curious if it's the XML parser, or the
Servlet container, etc.  What component would make the call out to get
the DTD?
I've always wondered...
It's the XML parser that is used by the Servlet container which goes 
looking for the DTD so that it can perform a validating parse of the 
XML.  In most cases, a validating parse is not strictly required 
(although prior to Struts 1.1, Struts depended on a validating parse 
of struts-config.xml to fill in certain default values, etc.)

With yesterday's outage of java.sun.com, we solved the hang-on-launch 
problem by disabling validation.  For Jetty (which is the servlet 
container for our JBoss deployment), you can do this by defining a 
system property:

org.mortbay.xml.XmlParser.NotValidating=true

How you actually control this would be dependent on the servlet 
container and its own configuration.

If you are processing XML using SAX, you can also intervene in the 
entity resolution.  Commons Digester does this, for instance, by 
implementing the org.xml.sax.EntityResolver interface.

http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/EntityResolver.html
http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/helpers/DefaultHandler.html
http://jakarta.apache.org/commons/digester/xref/org/apache/commons/digester/Digester.html#1661
Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

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


Re: [OT] RE: web.xml DTD for Servlet 2.3 & Struts 1.1

2004-03-04 Thread nicolas De Loof
Assuming this resources are right :
http://www.searchwin.net/doctype.htm
http://www.blooberry.com/indexdot/html/tagpages/d/doctype.htm
.. I thing the last (optional) part of a DOCTYPE declaration has to be a 
valid URL to the referenced DTD. Perhaps I'm wrong, because I didn't 
found a normative document about this.

Actualy, XML parsers are using this URL to look the Internet for a DTD 
when they don't have a local one for the PUBLIC identifier found in the 
document.

Nico.

Wendy Smoak a écrit :

A long time ago, Craig McClanahan wrote:
 

It is a common misconception that the public identifiers of a DTD like
this *must* actually be working URLs [...].
They are just unique strings of characters that
(often) happen to look like URLs.  
Blame the XML community for that :-).
   



And then Yuan Saul asked:
 

If a local copy of DTD is not available, then an Internet connection
   

is
 

required, in this case, does the URI has to be pointing to a working
   

URL
 

where the DTD file can be retrieved?
   

Which is also my question, but there is no reply in the archives.
Anyone?
Today we got a note from campus IT saying that they believed some
problems in their J2EE apps were related to "code that connects to
http://java.sun.com behind-the-scenes to download various DTD files
related to parsing XML documents."
In addition to whether it happens at all (going out to the internet to
retrieve the DTD) I'm also curious if it's the XML parser, or the
Servlet container, etc.  What component would make the call out to get
the DTD?
I've always wondered...

 

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


[OT] RE: web.xml DTD for Servlet 2.3 & Struts 1.1

2004-03-04 Thread Wendy Smoak
A long time ago, Craig McClanahan wrote:
> It is a common misconception that the public identifiers of a DTD like
> this *must* actually be working URLs [...].
> They are just unique strings of characters that
> (often) happen to look like URLs.  
> Blame the XML community for that :-).


And then Yuan Saul asked:
> If a local copy of DTD is not available, then an Internet connection
is
> required, in this case, does the URI has to be pointing to a working
URL
> where the DTD file can be retrieved?

Which is also my question, but there is no reply in the archives.
Anyone?

Today we got a note from campus IT saying that they believed some
problems in their J2EE apps were related to "code that connects to
http://java.sun.com behind-the-scenes to download various DTD files
related to parsing XML documents."

In addition to whether it happens at all (going out to the internet to
retrieve the DTD) I'm also curious if it's the XML parser, or the
Servlet container, etc.  What component would make the call out to get
the DTD?

I've always wondered...

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



example of using log4j in struts 1.1?

2004-02-29 Thread Dean A. Hoover
I am interested in using log4j as a logger
for a struts 1.1 application. Is there an
example, cookbook, or other documentation
someone can point me to for this?
Thanks.
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


help on struts 1.1 and iplanet AS 6.5

2004-02-14 Thread Adolfo Miguelez
Hi All,

I have developed an Struts 1.1 app under Tomcat. I did not have any problems 
to migrate it to Websphere 5.0, and it worked with no changes. Fine!!!

However, when trying to deploy in an iPlanet Application Server 6.5, it did 
not work. It complaints in many points. For example, I was able to fix the 
ClassLoaders differences, patching Struts as suggested in the following 
message:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg74045.html

using Class.forName() in turn. I made this in 3 or 4 places and I was able 
to make Struts start.

However, it is still complaining in too many places with the custom tags and 
so on.

- Does anyone knows a detailed migration guide on how to patch Struts 1.1 
for iPlanet Application Server 6.5?

I have looked for long but not success, even the install guides from 
Jakarta.

We have this problem before with Websphere 3.5, and after the right patchs 
all worked properly for us, for 2 years. With Websphere 5.0+ we did not need 
path. So probably it was really worthy.

- Could future Struts implementations include some "hole classes", for 
saving container differences, (despite I have read that Struts is made 
according to specs and not implementations). Being closer to real world 
(i.e. iPlanet, Websphere, Weblogic.) is remove obstacles for Struts 
assumption.

I really like Struts, but I would not like to quit using it since some 
containers are not compatibles and finding or working out patches is a long 
time consuming task, loosing one of the advantages of using struts.

As usually, the worst side, managers get unconfident when they see something 
fail, they are not able to evaluate why, and I got troubles in this ocassion 
making explanations.

Any help would be appreciated,

Adolfo Rodriguez.

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


RE: Problem in struts 1.1 and weblogic 8.1

2004-02-13 Thread srinivasan krishnamurthy
I rarely see it in IE.I do get it in IE.
But is is more prominent in netscape
--- "Gopalakrishnan, Jayesh"
<[EMAIL PROTECTED]> wrote:
> Do u see the same behaviour using IE5+ or other
> browsers ?
> 
> Could possibly be an NS issue..
> 
> 
> 
> 
> -Original Message-
> From: srinivasan krishnamurthy
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 13, 2004 12:00 PM
> To: [EMAIL PROTECTED]
> Subject: Problem in struts 1.1 and weblogic 8.1
> 
> 
> Hi,
> 
> I am running a webapplication with the following
> configuration
> 
> OS - Winxp
> Web server -  Apache 2.00
> App server - Weblogic 8.1
> 
> When i hit the application from ns7.1 i sometimes
> get
> the same screen twice on the browser. also some
> headers get printed on the screen
> 
> Has anyone faced this problem before.
> I wonder if it is an issue with struts
> Please help
> 
> Regards
> Srini
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing
> online.
> http://taxes.yahoo.com/filing.html
> 
>
-
> 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]
> 


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Re: Struts 1.1 on Tomcat 5.0.18? Solved.

2004-02-13 Thread Steve Hill
Solved. This turned out to be an issue between Struts1.1, Tomcat 5.0.18 and
most importantly, j2sdk1.3.1. Removing j2sdk1.3.1, installing j2sdk1.4.2_03,
then removing and reinstalling Tomcat 5.0.18 and the Struts1.1 WAR files
(and adjusting JAVA_HOME, of course) solved the pesky
"java.lang.IllegalStateException: zip file closed" problem on an NT machine.
The Struts examples now work (and the other Tomcat files always did work
with j2sdk1.3.1).


- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 12:21 PM
Subject: Re: Struts 1.1 on Tomcat 5.0.18?


Since no-one has said anything about an error in the struts-examples app
here, then I assume it's something in your setup that you or your
colleagues have done. Did you do anything during install apart from set
JAVA_HOME, CATALINA_HOME, PATH? Do you have anything in JAVA_OPTS or
JAVA_OPTIONS? Did you edit catalina.sh? (Are you windows or unix?)

You should of course check the list archive and bugzilla to make sure
that it's not a recognised problem, if it's happening with a clean
install. Where did you  find out about the Sun / tomcat issue? Which
version of JDK and Tomcat does it affect?



On 02/11/2004 12:55 AM Steve Hill wrote:
> Tomcat 5 comes with Jasper 2 enabled by default - it has
jasper-compiler.jar
> and jasper-runtime.jar in the tomcat5\common\lib directory already. So,
that
> can't be it. (There is not a jasper.jar that I could find.)
>
>
> - Original Message - 
> From: "Samyukta Akunuru" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 10, 2004 3:31 PM
> Subject: RE: Struts 1.1 on Tomcat 5.0.18?
>
>
> Did you add the jasper compiler jars (jasper.jar,
> jasper-compiler.jar,jasper-runtime.jar)
>
>
>
> -Original Message-----
> From: Steve Hill [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 10, 2004 5:24 PM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.1 on Tomcat 5.0.18?
>
>
> I had sent a previous message to this list with a complete error listing,
> but I'll clarify. I downloaded and installed a new installation of Tomcat
> 5.0.18. I then downloaded and installed a new installation of struts 1.1,
> copying the documentation and example application war files into Tomcat's
> Webapps directory, and restarting Tomcat.
>
> Running the http://localhost:808/struts-documentation works fine. Running
> http://localhost:808/struts-example gives the following error message. I
> followed the other instructions (XML parser, JDBC2, xalan-j) as specified
in
> v1.16 of the Struts readme file. The exception report I get when running
> struts-example is:
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>  at
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
> 58)
>  at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 91)
>  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
> root cause
>
> java.lang.IllegalStateException: zip file closed
>  at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
>  at java.util.jar.JarFile.getEntry(JarFile.java:181)
>  at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
>  at
>
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
>  at
>
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
> va:108)
>  at java.net.URL.openStream(URL.java:798)
>  at
>
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
> lassLoader.java:714)
>  at
>
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
> lassLoader.java:696)
>  at
>
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
> Loader.java:1202)
>  at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown
Source)
>  at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
>  at javax.xml.parsers.FactoryFinder.find(Unknown Source)
>  at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
>  at
>
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
> 9)
>  at
> org.apache

RE: Problem in struts 1.1 and weblogic 8.1

2004-02-13 Thread Gopalakrishnan, Jayesh
Do u see the same behaviour using IE5+ or other browsers ?

Could possibly be an NS issue..




-Original Message-
From: srinivasan krishnamurthy [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 12:00 PM
To: [EMAIL PROTECTED]
Subject: Problem in struts 1.1 and weblogic 8.1


Hi,

I am running a webapplication with the following
configuration

OS - Winxp
Web server -  Apache 2.00
App server - Weblogic 8.1

When i hit the application from ns7.1 i sometimes get
the same screen twice on the browser. also some
headers get printed on the screen

Has anyone faced this problem before.
I wonder if it is an issue with struts
Please help

Regards
Srini



__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
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 in struts 1.1 and weblogic 8.1

2004-02-13 Thread srinivasan krishnamurthy
Hi,

I am running a webapplication with the following
configuration

OS - Winxp
Web server -  Apache 2.00
App server - Weblogic 8.1

When i hit the application from ns7.1 i sometimes get
the same screen twice on the browser. also some
headers get printed on the screen

Has anyone faced this problem before.
I wonder if it is an issue with struts
Please help

Regards
Srini



__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-11 Thread Adam Hardy
Since no-one has said anything about an error in the struts-examples app 
here, then I assume it's something in your setup that you or your 
colleagues have done. Did you do anything during install apart from set 
JAVA_HOME, CATALINA_HOME, PATH? Do you have anything in JAVA_OPTS or 
JAVA_OPTIONS? Did you edit catalina.sh? (Are you windows or unix?)

You should of course check the list archive and bugzilla to make sure 
that it's not a recognised problem, if it's happening with a clean 
install. Where did you  find out about the Sun / tomcat issue? Which 
version of JDK and Tomcat does it affect?



On 02/11/2004 12:55 AM Steve Hill wrote:
Tomcat 5 comes with Jasper 2 enabled by default - it has jasper-compiler.jar
and jasper-runtime.jar in the tomcat5\common\lib directory already. So, that
can't be it. (There is not a jasper.jar that I could find.)
- Original Message - 
From: "Samyukta Akunuru" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 10, 2004 3:31 PM
Subject: RE: Struts 1.1 on Tomcat 5.0.18?

Did you add the jasper compiler jars (jasper.jar,
jasper-compiler.jar,jasper-runtime.jar)


-Original Message-
From: Steve Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 5:24 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.1 on Tomcat 5.0.18?
I had sent a previous message to this list with a complete error listing,
but I'll clarify. I downloaded and installed a new installation of Tomcat
5.0.18. I then downloaded and installed a new installation of struts 1.1,
copying the documentation and example application war files into Tomcat's
Webapps directory, and restarting Tomcat.
Running the http://localhost:808/struts-documentation works fine. Running
http://localhost:808/struts-example gives the following error message. I
followed the other instructions (XML parser, JDBC2, xalan-j) as specified in
v1.16 of the Struts readme file. The exception report I get when running
struts-example is:
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception

org.apache.jasper.JasperException: Unable to compile class for JSP
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause

java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
 at java.util.jar.JarFile.getEntry(JarFile.java:181)
 at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
 at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:108)
 at java.net.URL.openStream(URL.java:798)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:714)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:696)
 at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
Loader.java:1202)
 at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source)
 at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
 at javax.xml.parsers.FactoryFinder.find(Unknown Source)
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
9)
 at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Specific suggestions welcome, else I will just start over if Struts 1.1 is
normally known to work successfully on Tomcat 5.0.18. It looks like
something is missing but if the Struts readme docs are correct it should
work. This particular error is a known Sun issue in a previous Tomcat
version. Thanks.
--

Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Steve Hill
Tomcat 5 comes with Jasper 2 enabled by default - it has jasper-compiler.jar
and jasper-runtime.jar in the tomcat5\common\lib directory already. So, that
can't be it. (There is not a jasper.jar that I could find.)


- Original Message - 
From: "Samyukta Akunuru" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 10, 2004 3:31 PM
Subject: RE: Struts 1.1 on Tomcat 5.0.18?


Did you add the jasper compiler jars (jasper.jar,
jasper-compiler.jar,jasper-runtime.jar)



-Original Message-
From: Steve Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 5:24 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.1 on Tomcat 5.0.18?


I had sent a previous message to this list with a complete error listing,
but I'll clarify. I downloaded and installed a new installation of Tomcat
5.0.18. I then downloaded and installed a new installation of struts 1.1,
copying the documentation and example application war files into Tomcat's
Webapps directory, and restarting Tomcat.

Running the http://localhost:808/struts-documentation works fine. Running
http://localhost:808/struts-example gives the following error message. I
followed the other instructions (XML parser, JDBC2, xalan-j) as specified in
v1.16 of the Struts readme file. The exception report I get when running
struts-example is:

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
 at java.util.jar.JarFile.getEntry(JarFile.java:181)
 at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
 at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:108)
 at java.net.URL.openStream(URL.java:798)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:714)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:696)
 at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
Loader.java:1202)
 at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source)
 at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
 at javax.xml.parsers.FactoryFinder.find(Unknown Source)
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
9)
 at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Specific suggestions welcome, else I will just start over if Struts 1.1 is
normally known to work successfully on Tomcat 5.0.18. It looks like
something is missing but if the Struts readme docs are correct it should
work. This particular error is a known Sun issue in a previous Tomcat
version. 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]



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



RE: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Samyukta Akunuru
Did you add the jasper compiler jars (jasper.jar, 
jasper-compiler.jar,jasper-runtime.jar)



-Original Message-
From: Steve Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 5:24 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.1 on Tomcat 5.0.18?


I had sent a previous message to this list with a complete error listing,
but I'll clarify. I downloaded and installed a new installation of Tomcat
5.0.18. I then downloaded and installed a new installation of struts 1.1,
copying the documentation and example application war files into Tomcat's
Webapps directory, and restarting Tomcat.

Running the http://localhost:808/struts-documentation works fine. Running
http://localhost:808/struts-example gives the following error message. I
followed the other instructions (XML parser, JDBC2, xalan-j) as specified in
v1.16 of the Struts readme file. The exception report I get when running
struts-example is:

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
 at java.util.jar.JarFile.getEntry(JarFile.java:181)
 at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
 at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:108)
 at java.net.URL.openStream(URL.java:798)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:714)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:696)
 at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
Loader.java:1202)
 at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source)
 at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
 at javax.xml.parsers.FactoryFinder.find(Unknown Source)
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
9)
 at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Specific suggestions welcome, else I will just start over if Struts 1.1 is
normally known to work successfully on Tomcat 5.0.18. It looks like
something is missing but if the Struts readme docs are correct it should
work. This particular error is a known Sun issue in a previous Tomcat
version. 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]



Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Steve Hill
I had sent a previous message to this list with a complete error listing,
but I'll clarify. I downloaded and installed a new installation of Tomcat
5.0.18. I then downloaded and installed a new installation of struts 1.1,
copying the documentation and example application war files into Tomcat's
Webapps directory, and restarting Tomcat.

Running the http://localhost:808/struts-documentation works fine. Running
http://localhost:808/struts-example gives the following error message. I
followed the other instructions (XML parser, JDBC2, xalan-j) as specified in
v1.16 of the Struts readme file. The exception report I get when running
struts-example is:

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
 at java.util.jar.JarFile.getEntry(JarFile.java:181)
 at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
 at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:108)
 at java.net.URL.openStream(URL.java:798)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:714)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:696)
 at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
Loader.java:1202)
 at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source)
 at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
 at javax.xml.parsers.FactoryFinder.find(Unknown Source)
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
9)
 at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Specific suggestions welcome, else I will just start over if Struts 1.1 is
normally known to work successfully on Tomcat 5.0.18. It looks like
something is missing but if the Struts readme docs are correct it should
work. This particular error is a known Sun issue in a previous Tomcat
version. Thanks.


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



Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Adam Hardy
On 02/10/2004 07:38 PM Steve Hill wrote:
Is anyone here successfully using Struts 1.1 on Tomcat 5.0.18? I am getting
"java.lang.IllegalStateException: zip file closed errors" with any
struts-using code and am wondering if this is a bug and I should go back to
an earlier version of one or the other. Thanks.
Yes, probably hundreds of people. When do you get that error? Without 
more details it's impossible to say what you need to do.

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Durham David Contr 805 CSPTS/SCE
> Is anyone here successfully using Struts 1.1 on Tomcat 5.0.18?

I am.

> "java.lang.IllegalStateException: zip file closed errors" with any

I seem to recall getting this error when I had a corrupted jar in the
lib.  I'm not positive though.

Dave

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



Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Steve Hill
Is anyone here successfully using Struts 1.1 on Tomcat 5.0.18? I am getting
"java.lang.IllegalStateException: zip file closed errors" with any
struts-using code and am wondering if this is a bug and I should go back to
an earlier version of one or the other. Thanks.


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



[REPOST] Struts 1.1 with 1.4.2_01?

2004-02-08 Thread Anand Stephen

- Original Message - 
From: "Anand Stephen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, February 07, 2004 11:36 AM
Subject: Re: PropertyDescriptor: internal error while merging PDs: with
jdk1.4


> Greetings,
> Has anyone had success running web app using struts 1.1 with java version
> "1.4.2_01" and resin 2.1.4
>
> thank you again.
> -- a,
>
>
> - Original Message - 
> From: "Anand Stephen" <[EMAIL PROTECTED]>
> To: "Struts-User" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Friday, February 06, 2004 8:03 PM
> Subject: PropertyDescriptor: internal error while merging PDs: with jdk1.4
>
>
> > Greetings,
> >
> > I get the following error when I run a web app with:
> >
> >
> > java version "1.4.2_01"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
> > Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
> >
> > It works without any problems with:
> >
> > java version "1.3.1_02"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
> > Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
> >
> > OS: Win XP professional.
> > Server: Resin 2.1.4
> >
> >
> > Thank you,
> > --a
> >
> >
> >
> >
> >  Error -
> > 500 Servlet Exception
> > java.lang.Error: PropertyDescriptor: internal error while merging PDs:
> > type mismatch between read and write methods
> > at
> > java.beans.PropertyDescriptor.(PropertyDescriptor.java:343)
> > at
> > java.beans.Introspector.processPropertyDescriptors(Introspector.java:649
> > )
> > at
> > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:572)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
> > tyUtils.java:949)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Proper
> > tyUtils.java:979)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
> > yUtils.java:887)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUti
> > ls.java:1172)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUti
> > ls.java:772)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.jav
> > a:801)
> > at
> > org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:717)
> > at
> > org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:289)
> > at
> > _admin._site._products._productstab__jsp._jspService(/admin/site/product
> > s/productstab.jsp:173)
> > at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
> > at com.caucho.jsp.Page.subservice(Page.java:485)
> > at
> > com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182
> > )
> > at
> > com.caucho.server.http.Invocation.service(Invocation.java:312)
> > at
> > com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> > at
> > com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> > a:213)
> > at
> > com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> > a:100)
> > at
> > com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.jav
> > a:77)
> > at
> > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
> > a:1033)
> > at
> > org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
> > essor.java:268)
> > at
> > org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
> > ocessor.java:436)
> > at
> > org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
> > RequestProcessor.java:311)
> > at
> > org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
> > ocessor.java:401)
> > at
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> > 279)
> > at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1393)
> > at
> > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
> > at ja

{ICICICARE#005-217-541}AW: Tomcat 3.3.1 and Struts 1.1

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your 
mail and assure you of a response shortly.To help us serve you better, we would 
request you to kindly mention your account number or any reference number you may have 
in your future correspondence.  Kindly visit our website www.icicibank.com\nri to know 
more on our products and services.  With regards,Customer Care 
ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is privileged and 
confidential, and is directed to and for the use of the addressee only. If this 
message reaches anyone other than the intended recipient, we request the reader not to 
reproduce, copy, disseminate or in any manner distribute it. We further request such 
recipient to notify us immediately by return email and delete the original message. 
ICICI Bank Ltd. does not guarantee the security of any information transmitted 
electronically and is not liable for the proper, timely and complete transmission 
thereof. Before opening any attachments please check them for viruses and defects.



{ICICICARE#005-217-540}Tomcat 3.3.1 and Struts 1.1

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your 
mail and assure you of a response shortly.To help us serve you better, we would 
request you to kindly mention your account number or any reference number you may have 
in your future correspondence.  Kindly visit our website www.icicibank.com\nri to know 
more on our products and services.  With regards,Customer Care 
ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is privileged and 
confidential, and is directed to and for the use of the addressee only. If this 
message reaches anyone other than the intended recipient, we request the reader not to 
reproduce, copy, disseminate or in any manner distribute it. We further request such 
recipient to notify us immediately by return email and delete the original message. 
ICICI Bank Ltd. does not guarantee the security of any information transmitted 
electronically and is not liable for the proper, timely and complete transmission 
thereof. Before opening any attachments please check them for viruses and defects.



{ICICICARE#005-213-962}Tomcat 3.3.1 and Struts 1.1

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your 
mail and assure you of a response shortly.To help us serve you better, we would 
request you to kindly mention your account number or any reference number you may have 
in your future correspondence.  Kindly visit our website www.icicibank.com\nri to know 
more on our products and services.  With regards,Customer Care 
ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is privileged and 
confidential, and is directed to and for the use of the addressee only. If this 
message reaches anyone other than the intended recipient, we request the reader not to 
reproduce, copy, disseminate or in any manner distribute it. We further request such 
recipient to notify us immediately by return email and delete the original message. 
ICICI Bank Ltd. does not guarantee the security of any information transmitted 
electronically and is not liable for the proper, timely and complete transmission 
thereof. Before opening any attachments please check them for viruses and defects.



AW: Tomcat 3.3.1 and Struts 1.1

2004-01-29 Thread Daniel Richter
Thanks a lot Geeta,that confirms my assumption that the problem is not my
implementation, but Tomcat 3.3.1
I hope my provider will update the server soon.

yours sincerly Daniel

-Ursprüngliche Nachricht-
Von: Geeta Ramani [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 29. Januar 2004 14:29
An: Struts Users Mailing List
Betreff: Re: Tomcat 3.3.1 and Struts 1.1


Daniel:

A fwe months ago I wanted to move to Struts 1.1 and found that unless you
upgraded
tomcat to 4 or above, at least one fundamental thing would not work.  I
forget the
details of my exact problem, but my situation was the same as yours: I
wanted to make
struts 1.1 work on Tomcat 3.3.1.   I remember searching for a solution and I
found that
heavyweights like Ted and Craig had thrown their hands in the air and stated
that the
solution was to upgrade tomcat.  Sorry i don't remember the deatils, else I
could point
you to Ted's note about this.. But i do remember clearly that struts 1.1 and
tomcat 3.*
don't work well together..

Hope this helps,
Geeta

Daniel Richter wrote:

> Hi, I have a Problwm with using Struts 1.1 within Tomcat 3.3.1
> On my local computer I use Tomcat 4.1.28 and my application works well,
but
> on my providers server I get the following stacktrace:
>
> Während der Abarbeitung Ihrer Anfrage ist ein Fehler aufgetreten.
>   javax.servlet.ServletException: Error - tag.getAsString : component
> context is not defined. Check tag syntax
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:460)
> at base_1._jspService(base_1.java:614)
> at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
> at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
> at org.apache.tomcat.core.Handler.service(Handler.java:235)
> at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
> 7)
> at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
> at
>
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Int
> erceptor.java:221)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:516)
> at java.lang.Thread.run(Thread.java:484)
>
> It seems that this older version of struts cannot handle the tiles
> definitions from Struts 1.1
> Is it because of the Tomcat version? Is there anything I can do against
it?
> My provider don't want to update Tomcat yet, so is there anything else I
can
> do?
>
> Daniel
>
> -
> 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: Tomcat 3.3.1 and Struts 1.1

2004-01-29 Thread Geeta Ramani
Daniel:

A fwe months ago I wanted to move to Struts 1.1 and found that unless you upgraded
tomcat to 4 or above, at least one fundamental thing would not work.  I forget the
details of my exact problem, but my situation was the same as yours: I wanted to make
struts 1.1 work on Tomcat 3.3.1.   I remember searching for a solution and I found that
heavyweights like Ted and Craig had thrown their hands in the air and stated that the
solution was to upgrade tomcat.  Sorry i don't remember the deatils, else I could point
you to Ted's note about this.. But i do remember clearly that struts 1.1 and tomcat 3.*
don't work well together..

Hope this helps,
Geeta

Daniel Richter wrote:

> Hi, I have a Problwm with using Struts 1.1 within Tomcat 3.3.1
> On my local computer I use Tomcat 4.1.28 and my application works well, but
> on my providers server I get the following stacktrace:
>
> Während der Abarbeitung Ihrer Anfrage ist ein Fehler aufgetreten.
>   javax.servlet.ServletException: Error - tag.getAsString : component
> context is not defined. Check tag syntax
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:460)
> at base_1._jspService(base_1.java:614)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
> at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
> at org.apache.tomcat.core.Handler.service(Handler.java:235)
> at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
> 7)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
> at
> org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Int
> erceptor.java:221)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:516)
> at java.lang.Thread.run(Thread.java:484)
>
> It seems that this older version of struts cannot handle the tiles
> definitions from Struts 1.1
> Is it because of the Tomcat version? Is there anything I can do against it?
> My provider don't want to update Tomcat yet, so is there anything else I can
> do?
>
> Daniel
>
> -
> 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 3.3.1 and Struts 1.1

2004-01-29 Thread Daniel Richter
Hi, I have a Problwm with using Struts 1.1 within Tomcat 3.3.1
On my local computer I use Tomcat 4.1.28 and my application works well, but
on my providers server I get the following stacktrace:

Während der Abarbeitung Ihrer Anfrage ist ein Fehler aufgetreten.
  javax.servlet.ServletException: Error - tag.getAsString : component
context is not defined. Check tag syntax
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:460)
at base_1._jspService(base_1.java:614)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Int
erceptor.java:221)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:484)


It seems that this older version of struts cannot handle the tiles
definitions from Struts 1.1
Is it because of the Tomcat version? Is there anything I can do against it?
My provider don't want to update Tomcat yet, so is there anything else I can
do?

Daniel


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



Struts Action Plug-in Extension 1.0.2 with Struts 1.1

2004-01-28 Thread NGOR Eric
Hi

I'm trying to use Struts Action Plug-in Extension 1.0.2 from http://www.asqdotcom.be/ 
with Struts release 1.1.

However, this plugin is using an older version of struts (1.1 beta1) and doesn't seem 
to work with the latest release of Struts 1.1 (which i have to use).

Does anybody have a solution??

thx in advance,
Eric.


Problems with Struts 1.1 and Tomcat 3.3.1/JDK 1.3

2004-01-28 Thread Daniel Richter
It seems Struts 1.1 and Tomcat 3.3.1 have a problem in working together. See
the following URL for the stacktrace:
http://holiday.riesengebirge-online.com
This is my providers server. On my own computer I use Tomcat 4.1.28 / JDK
1.4 and it works fine. What is the problem?

Daniel


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



Re: Is it possible to deploy a struts 1.1 application in Tomcat 5.x ? - Solved!

2004-01-23 Thread Ingvar Larsson
Tanks all of you who tried to help me!

I still do not know what the problem was. I was using Tomcat 5.0.16 and
found a newer version (5.0.18) at the Jakarta site. Just downloaded and
installed it. No problems after that.

Cheers!
Ingvar

- Original Message - 
From: "Ingvar Larsson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 22, 2004 2:51 PM
Subject: Re: Is it possible to deploy a struts 1.1 application in Tomcat
5.x?


> For example I deploy struts-examples.war without any problems but when I
> tries to use the application the following appears:
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 6 in the jsp file: /index.jsp
>
> Generated servlet error:
> [javac] Compiling 1 source file
>
> C:\web\Tomcat
>
5.0.16\work\Catalina\localhost\struts-example\org\apache\jsp\index_jsp.java:
> 101:
>
_jspx_meth_bean_message_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.
> PageContext) in org.apache.jsp.index_jsp cannot be applied to
> (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
> if (_jspx_meth_bean_message_0(_jspx_th_html_html_0, pageContext))
> ^
> [snipped away several equals lines]
>
>
> 12 errors
>
>
>
>
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
> r.java:127)
>
>
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
> 51)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
> 52)
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 91)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> note The full stack trace of the root cause is available in the Tomcat
logs.
>
>
> --
--
> 
>
> Apache Tomcat/5.0.16
>
> - Original Message - 
> From: "Kris Schneider" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, January 22, 2004 2:07 PM
> Subject: Re: Is it possible to deploy a struts 1.1 application in Tomcat
> 5.x?
>
>
> > No problems with struts-example on TC 5.0.16. Exactly what type of
failure
> are
> > you encountering?
> >
> > Quoting Ingvar Larsson <[EMAIL PROTECTED]>:
> >
> > > Hello all!
> > >
> > > I have tried to deploy several struts applications in Tomcat 5.0.x but
> failed
> > > so far.
> > > One of them is the struts-examples.war distrubted with the struts 1.1
> > > package.
> > >
> > > I guess it all depends on that struts uses JSP 1.2 and Tomcat 5
> implements
> > > JSP 2.0.
> > >
> > > I have searched an answer for this in faq:s and several archives but
did
> not
> > > find
> > > anything.
> > >
> > > So, please! Does anyone of you know if it is possible to deploy and
run
> a web
> > >
> > > application using struts in Tomcat 5. And if it is what steps should
be
> taken
> > > to
> > > get it to work?
> > >
> > > Thanks
> > > Ingvar
> >
> > -- 
> > Kris Schneider <mailto:[EMAIL PROTECTED]>
> > D.O.Tech   <http://www.dotech.com/>
> >
> > -
> > 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: Is it possible to deploy a struts 1.1 application in Tomcat 5.x ?

2004-01-22 Thread Brian Millett
On Thu, 2004-01-22 at 07:51, Ingvar Larsson wrote:
> For example I deploy struts-examples.war without any problems but when I
> tries to use the application the following appears:
> 
> type Exception report
> 
> message
> 
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
> 
> exception
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 

Man, I just spent a full day beating my head against this problem. 
Seems that the error that can be read in catalina.out is that the
compiler can not create a temp file.  Ant, it seems, is using a
System.getProperty("user.dir").  For me, it was trying to create a temp
file where it could not.  So by adding "-D/path/to/tomcat/temp" to the
CATALINA_OPTS to start catalina.sh solved the problem.
-- 
Brian Millett  -  Technologist Rex 
"Protests are as much use with the Vorlons as fairy wings on a cement truck." 
   -- Garibaldi, "Eyes"


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



RE: Is it possible to deploy a struts 1.1 application in Tomcat 5.x?

2004-01-22 Thread Navjot Singh
I am successfully running my Application based on
Struts + Tiles + Taglibs (el also) seamlessly.

No probs so far.

>-Original Message-
>From: Smith, Darrin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 22, 2004 6:55 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Is it possible to deploy a struts 1.1 application in Tomcat
>5.x?
>
>
>It's working for me using an old example, but I did replace some of the jar
>files with the latest struts version.
>
>Darrin
>
>-Original Message-
>From: Ingvar Larsson [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 22, 2004 6:41 AM
>To: [EMAIL PROTECTED]
>Subject: Is it possible to deploy a struts 1.1 application in Tomcat
>5.x?
>
>
>Hello all!
>
>I have tried to deploy several struts applications in Tomcat 5.0.x but
>failed so far.
>One of them is the struts-examples.war distrubted with the struts 1.1
>package.
>
>I guess it all depends on that struts uses JSP 1.2 and Tomcat 5 implements
>JSP 2.0.
>
>I have searched an answer for this in faq:s and several archives
>but did not
>find
>anything.
>
>So, please! Does anyone of you know if it is possible to deploy and run a
>web
>application using struts in Tomcat 5. And if it is what steps should be
>taken to
>get it to work?
>
>Thanks
>Ingvar
>
>-
>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: Is it possible to deploy a struts 1.1 application in Tomcat 5 .x?

2004-01-22 Thread Smith, Darrin
It's working for me using an old example, but I did replace some of the jar
files with the latest struts version.

Darrin

-Original Message-
From: Ingvar Larsson [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 6:41 AM
To: [EMAIL PROTECTED]
Subject: Is it possible to deploy a struts 1.1 application in Tomcat
5.x?


Hello all!

I have tried to deploy several struts applications in Tomcat 5.0.x but
failed so far. 
One of them is the struts-examples.war distrubted with the struts 1.1
package.

I guess it all depends on that struts uses JSP 1.2 and Tomcat 5 implements
JSP 2.0.

I have searched an answer for this in faq:s and several archives but did not
find 
anything.

So, please! Does anyone of you know if it is possible to deploy and run a
web 
application using struts in Tomcat 5. And if it is what steps should be
taken to
get it to work?

Thanks
Ingvar

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



Re: Is it possible to deploy a struts 1.1 application in Tomcat 5.x ?

2004-01-22 Thread Ingvar Larsson
For example I deploy struts-examples.war without any problems but when I
tries to use the application the following appears:

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

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

An error occurred at line: 6 in the jsp file: /index.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\web\Tomcat
5.0.16\work\Catalina\localhost\struts-example\org\apache\jsp\index_jsp.java:
101:
_jspx_meth_bean_message_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.
PageContext) in org.apache.jsp.index_jsp cannot be applied to
(org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_bean_message_0(_jspx_th_html_html_0, pageContext))
^
[snipped away several equals lines]


12 errors



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:127)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
51)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

note The full stack trace of the root cause is available in the Tomcat logs.





Apache Tomcat/5.0.16

- Original Message - 
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 22, 2004 2:07 PM
Subject: Re: Is it possible to deploy a struts 1.1 application in Tomcat
5.x?


> No problems with struts-example on TC 5.0.16. Exactly what type of failure
are
> you encountering?
>
> Quoting Ingvar Larsson <[EMAIL PROTECTED]>:
>
> > Hello all!
> >
> > I have tried to deploy several struts applications in Tomcat 5.0.x but
failed
> > so far.
> > One of them is the struts-examples.war distrubted with the struts 1.1
> > package.
> >
> > I guess it all depends on that struts uses JSP 1.2 and Tomcat 5
implements
> > JSP 2.0.
> >
> > I have searched an answer for this in faq:s and several archives but did
not
> > find
> > anything.
> >
> > So, please! Does anyone of you know if it is possible to deploy and run
a web
> >
> > application using struts in Tomcat 5. And if it is what steps should be
taken
> > to
> > get it to work?
> >
> > Thanks
> > Ingvar
>
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech   <http://www.dotech.com/>
>
> -
> 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: Is it possible to deploy a struts 1.1 application in Tomcat 5.x?

2004-01-22 Thread Kris Schneider
No problems with struts-example on TC 5.0.16. Exactly what type of failure are
you encountering?

Quoting Ingvar Larsson <[EMAIL PROTECTED]>:

> Hello all!
> 
> I have tried to deploy several struts applications in Tomcat 5.0.x but failed
> so far. 
> One of them is the struts-examples.war distrubted with the struts 1.1
> package.
> 
> I guess it all depends on that struts uses JSP 1.2 and Tomcat 5 implements
> JSP 2.0.
> 
> I have searched an answer for this in faq:s and several archives but did not
> find 
> anything.
> 
> So, please! Does anyone of you know if it is possible to deploy and run a web
> 
> application using struts in Tomcat 5. And if it is what steps should be taken
> to
> get it to work?
> 
> Thanks
> Ingvar

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>

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



Is it possible to deploy a struts 1.1 application in Tomcat 5.x?

2004-01-22 Thread Ingvar Larsson
Hello all!

I have tried to deploy several struts applications in Tomcat 5.0.x but failed so far. 
One of them is the struts-examples.war distrubted with the struts 1.1 package.

I guess it all depends on that struts uses JSP 1.2 and Tomcat 5 implements JSP 2.0.

I have searched an answer for this in faq:s and several archives but did not find 
anything.

So, please! Does anyone of you know if it is possible to deploy and run a web 
application using struts in Tomcat 5. And if it is what steps should be taken to
get it to work?

Thanks
Ingvar

Re: Struts 1.1, Tiles and sslext11

2004-01-21 Thread Marino A. Jonsson
I'm not currently using it myself ... I'm just familiar with the source code
since I am responsible for creating Struts and SSL Ext support for the
Apache Velocity Tools project :)

cheers,
Marinó

"Adam Hardy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Found it, it's in the latest release on sourceforge 1.10-4
>
> oh and it's SecureTilesPlugin with a little in not In for anybody's
> info. Don't know how you managed that, Marino, if you just cut & pasted
> that config.
>
> On 01/21/2004 11:45 AM Adam Hardy wrote:
> > Hi there,
> > which jar is SecureTilesPlugIn in? I just looked in struts.jar and
> > sslext.jar.
> >
> > thanks
> > Adam
> >
> > On 01/21/2004 01:52 AM Marino A. Jonsson wrote:
> >
> >> heh heh typical :)
> >>
> >> btw. you don't need to specify two SecurePlugIns (both
SecureTilesPlugIn
> >> _and_ a SecurePlugIn)!  What you want to do is this instead:
> >>
> >> 
> >>>> value="/WEB-INF/tiles-defs.xml" />
> >>   
> >>   
> >>   
> >>   
> >>   
> >>   
> >> 
> >>
> >> Like I said - SecureTilesPlugIn is a SecurePlugIn that extends the
> >> TilesPlugIn :)
> >>
> >> cheers,
> >> Marin?
> >>
> >>
> >> "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> >> news:[EMAIL PROTECTED]
> >> Hi All,
> >>
> >> This one was tricky. It seems that my problem was that I supplied the
> >> wrong className="org.apache.struts.tiles.SecureTilesPlugIn" when the
> >> correct className is org.apache.struts.tiles.SecureTilesPlugin.
> >>
> >> There is some inconsistancy in the docs found at
> >> http://struts.ditlinger.com/ that specify the wrong class name to use.
> >> The good people that authord the sslext are aware and will probably
> >> update the docs.
> >>
> >> Easy fix if I had of received a ClassNotFoundException, strange that no
> >> error resulted.
> >>
> >> All the best,
> >>
> >> Greg
> >>
> >>
> >>> -Original Message-
> >>> From: Greg Hess [mailto:[EMAIL PROTECTED]
> >>> Sent: Tuesday, January 20, 2004 9:57 AM
> >>> To: 'Struts Users Mailing List'
> >>> Subject: RE: Struts 1.1, Tiles and sslext11
> >>>
> >>> Marino,
> >>>
> >>> Hmm, I didn't know what all those plugin's were for thanks for the
> >>> explanation but I configure the tiles and ssl plugin as described but
> >>
> >>
> >> I
> >>
> >>> still get the same error. I can only seem to make it work as Adam has
> >>
> >>
> >> it
> >>
> >>> configured using the standard tiles pluging and just setting the
> >>> processorClass to the secure one.
> >>>
> >>> Below is my struts-config that I believe is as you have outlined?
> >>>
> >>> 
> >>> >>
> >>
> >> type="org.apache.struts.config.SecureActionConfig">
> >>
> >>>
> >>>
> >>> 
> >>
> >>>
> >>>
> >>> 
> >>
> >>>    
> >>>
> >>> 
> >>
> >>>  
> >>>   
> >>> >>> value="/WEB-INF/tiles-defs.xml" />
> >>>
> >>> >>> value="true" />
> >>>  
> >>>
> >>>   >>> className="org.apache.struts.validator.ValidatorPlugIn">
> >>> >>>property="pathnames"
> >>>
> >>>
> >>
> >>
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
> >>
> >>>/WEB-INF/validation.xml"/>
> >>>  
> >>>
> >>> 
> >>>
> >>> 
> >>> 
> >>> 
> >>> 
> >>>
> >>> 
> >>>
> >>> Is this right, still throwing?
> >>>
> >>>
> >>>>> javax.servlet.UnavailableException
> >>>>>at
> >>>>>
> >>>>
> >>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> >>
> >>> av
> &g

Re: Struts 1.1, Tiles and sslext11

2004-01-21 Thread Adam Hardy
Found it, it's in the latest release on sourceforge 1.10-4

oh and it's SecureTilesPlugin with a little in not In for anybody's 
info. Don't know how you managed that, Marino, if you just cut & pasted 
that config.

On 01/21/2004 11:45 AM Adam Hardy wrote:
Hi there,
which jar is SecureTilesPlugIn in? I just looked in struts.jar and 
sslext.jar.

thanks
Adam
On 01/21/2004 01:52 AM Marino A. Jonsson wrote:

heh heh typical :)

btw. you don't need to specify two SecurePlugIns (both SecureTilesPlugIn
_and_ a SecurePlugIn)!  What you want to do is this instead:

  
  
  
  
  
  
  

Like I said - SecureTilesPlugIn is a SecurePlugIn that extends the
TilesPlugIn :)
cheers,
Marin?
"Greg Hess" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,
This one was tricky. It seems that my problem was that I supplied the
wrong className="org.apache.struts.tiles.SecureTilesPlugIn" when the
correct className is org.apache.struts.tiles.SecureTilesPlugin.
There is some inconsistancy in the docs found at
http://struts.ditlinger.com/ that specify the wrong class name to use.
The good people that authord the sslext are aware and will probably
update the docs.
Easy fix if I had of received a ClassNotFoundException, strange that no
error resulted.
All the best,

Greg


-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 9:57 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts 1.1, Tiles and sslext11
Marino,

Hmm, I didn't know what all those plugin's were for thanks for the
explanation but I configure the tiles and ssl plugin as described but


I

still get the same error. I can only seem to make it work as Adam has


it

configured using the standard tiles pluging and just setting the
processorClass to the secure one.
Below is my struts-config that I believe is as you have outlined?


   

type="org.apache.struts.config.SecureActionConfig">

   



   



   



 
  
   
   
   
 
 
   

value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,

   /WEB-INF/validation.xml"/>
 

   






Is this right, still throwing?


javax.servlet.UnavailableException
   at

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j

av

a:

1169)


Thanks,

Greg



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A.


Jonsson

Sent: Tuesday, January 20, 2004 6:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Struts 1.1, Tiles and sslext11
Moreover, the StrutsTilesPlugin overloads the
initRequestProcessorClass(ModuleConfig config) of the TilesPlugin


and

sets

the processorClass attribute of the controller to
SecureTilesRequestProcessor ... so there's no need to specify the
controller
explicitly.
cheers,
Marin?
"Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
That makes sense ... SecureTilesPlugin actually extends


TilesPlugin

so

you're trying to initialize the same plugin twice ;)

cheers,
Marin?
"Greg Hess" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,
I am having difficulty integrating the sslext11 plug-in with


Struts

1.1

using Tiles.

I get the following error when accessing any action:

javax.servlet.UnavailableException
   at

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j

av

a:

1169)
   at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)

   at


javax.servlet.GenericServlet.init(GenericServlet.java:82)

   at


com.caucho.server.http.Application.createServlet(Application.java:2982)

   at

com.caucho.server.http.Application.loadServlet(Application.java:2941)

   at

com.caucho.server.http.Application.initServlets(Application.java:1841)

   at


com.caucho.server.http.Application.init(Application.java:1772)

   at


com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)

   at

com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)

   at


com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648

)

   at


com.caucho.server.http.ServletServer.init(ServletServer.java:483)

   at


com.caucho.server.http.ResinServer.init(ResinServer.java:360)

   at


com.caucho.server.http.ResinServer.main(ResinServer.java:1107)

   at


com.caucho.server.http.HttpServer.main(HttpServer.java:103)

My struts-config.xml:


   

type="org.apache.struts.config.SecureActionConfig">

   .
   


   


processorClass="org.apache.struts.action.SecureTilesRequestProcessor"

  nocache="true"/>



   



 
 
 
 

value="true"

/>

 

 

className="org.apache.struts.validator.ValidatorPlugIn">

 


value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,

   /WEB-INF

Re: Struts 1.1, Tiles and sslext11

2004-01-21 Thread Adam Hardy
Hi there,
which jar is SecureTilesPlugIn in? I just looked in struts.jar and 
sslext.jar.

thanks
Adam
On 01/21/2004 01:52 AM Marino A. Jonsson wrote:
heh heh typical :)

btw. you don't need to specify two SecurePlugIns (both SecureTilesPlugIn
_and_ a SecurePlugIn)!  What you want to do is this instead:

  
  
  
  
  
  
  

Like I said - SecureTilesPlugIn is a SecurePlugIn that extends the
TilesPlugIn :)
cheers,
Marin?
"Greg Hess" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,
This one was tricky. It seems that my problem was that I supplied the
wrong className="org.apache.struts.tiles.SecureTilesPlugIn" when the
correct className is org.apache.struts.tiles.SecureTilesPlugin.
There is some inconsistancy in the docs found at
http://struts.ditlinger.com/ that specify the wrong class name to use.
The good people that authord the sslext are aware and will probably
update the docs.
Easy fix if I had of received a ClassNotFoundException, strange that no
error resulted.
All the best,

Greg


-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 9:57 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts 1.1, Tiles and sslext11
Marino,

Hmm, I didn't know what all those plugin's were for thanks for the
explanation but I configure the tiles and ssl plugin as described but
I

still get the same error. I can only seem to make it work as Adam has
it

configured using the standard tiles pluging and just setting the
processorClass to the secure one.
Below is my struts-config that I believe is as you have outlined?


   type="org.apache.struts.config.SecureActionConfig">

   



   



   



 
  
   
   
   
 
 
   

value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,

   /WEB-INF/validation.xml"/>
 

   






Is this right, still throwing?


javax.servlet.UnavailableException
   at

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j

av

a:

1169)
Thanks,

Greg



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A.
Jonsson

Sent: Tuesday, January 20, 2004 6:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Struts 1.1, Tiles and sslext11
Moreover, the StrutsTilesPlugin overloads the
initRequestProcessorClass(ModuleConfig config) of the TilesPlugin
and

sets

the processorClass attribute of the controller to
SecureTilesRequestProcessor ... so there's no need to specify the
controller
explicitly.
cheers,
Marin?
"Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
That makes sense ... SecureTilesPlugin actually extends
TilesPlugin

so

you're trying to initialize the same plugin twice ;)

cheers,
Marin?
"Greg Hess" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,
I am having difficulty integrating the sslext11 plug-in with
Struts

1.1

using Tiles.

I get the following error when accessing any action:

javax.servlet.UnavailableException
   at

org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j

av

a:

1169)
   at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)

   at
javax.servlet.GenericServlet.init(GenericServlet.java:82)

   at


com.caucho.server.http.Application.createServlet(Application.java:2982)

   at

com.caucho.server.http.Application.loadServlet(Application.java:2941)

   at

com.caucho.server.http.Application.initServlets(Application.java:1841)

   at
com.caucho.server.http.Application.init(Application.java:1772)

   at
com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)

   at

com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)

   at


com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648

)

   at
com.caucho.server.http.ServletServer.init(ServletServer.java:483)

   at
com.caucho.server.http.ResinServer.init(ResinServer.java:360)

   at
com.caucho.server.http.ResinServer.main(ResinServer.java:1107)

   at
com.caucho.server.http.HttpServer.main(HttpServer.java:103)

My struts-config.xml:


   type="org.apache.struts.config.SecureActionConfig">

   .
   


   


processorClass="org.apache.struts.action.SecureTilesRequestProcessor"

  nocache="true"/>



   



 
 
 
 value="true"

/>

 

 className="org.apache.struts.validator.ValidatorPlugIn">

 


value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,

   /WEB-INF/validation.xml"/>
 
 className="org.apache.struts.tiles.SecureTilesPlugIn">

 
 
   
 
 


Any help is much appreciated,

Thanks,

Greg Hess


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Marino A. Jonsson
heh heh typical :)

btw. you don't need to specify two SecurePlugIns (both SecureTilesPlugIn
_and_ a SecurePlugIn)!  What you want to do is this instead:


  
  
  
  
  
  
  


Like I said - SecureTilesPlugIn is a SecurePlugIn that extends the
TilesPlugIn :)

cheers,
Marinó


"Greg Hess" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,

This one was tricky. It seems that my problem was that I supplied the
wrong className="org.apache.struts.tiles.SecureTilesPlugIn" when the
correct className is org.apache.struts.tiles.SecureTilesPlugin.

There is some inconsistancy in the docs found at
http://struts.ditlinger.com/ that specify the wrong class name to use.
The good people that authord the sslext are aware and will probably
update the docs.

Easy fix if I had of received a ClassNotFoundException, strange that no
error resulted.

All the best,

Greg

> -Original Message-
> From: Greg Hess [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 9:57 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts 1.1, Tiles and sslext11
>
> Marino,
>
> Hmm, I didn't know what all those plugin's were for thanks for the
> explanation but I configure the tiles and ssl plugin as described but
I
> still get the same error. I can only seem to make it work as Adam has
it
> configured using the standard tiles pluging and just setting the
> processorClass to the secure one.
>
> Below is my struts-config that I believe is as you have outlined?
>
> 
> 
>
> 
>
> 
> 
>
> 
> 
>
> 
>   
>
>  value="/WEB-INF/tiles-defs.xml" />
> 
>  value="true" />
>   
>
>className="org.apache.struts.validator.ValidatorPlugIn">
>  property="pathnames"
>
>
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
> /WEB-INF/validation.xml"/>
>   
>
> 
> 
> 
> 
> 
> 
>
> 
>
> Is this right, still throwing?
>
> > > javax.servlet.UnavailableException
> > > at
> > >
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> av
> > a:
> > > 1169)
>
> Thanks,
>
> Greg
>
>
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A.
Jonsson
> > Sent: Tuesday, January 20, 2004 6:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Struts 1.1, Tiles and sslext11
> >
> > Moreover, the StrutsTilesPlugin overloads the
> > initRequestProcessorClass(ModuleConfig config) of the TilesPlugin
and
> sets
> > the processorClass attribute of the controller to
> > SecureTilesRequestProcessor ... so there's no need to specify the
> > controller
> > explicitly.
> >
> > cheers,
> > Marinó
> >
> > "Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > That makes sense ... SecureTilesPlugin actually extends
TilesPlugin
> so
> > > you're trying to initialize the same plugin twice ;)
> > >
> > > cheers,
> > > Marinó
> > > "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> > > news:[EMAIL PROTECTED]
> > > Hi All,
> > >
> > > I am having difficulty integrating the sslext11 plug-in with
Struts
> 1.1
> > > using Tiles.
> > >
> > > I get the following error when accessing any action:
> > >
> > > javax.servlet.UnavailableException
> > > at
> > >
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> av
> > a:
> > > 1169)
> > > at
> > >
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> > > at
javax.servlet.GenericServlet.init(GenericServlet.java:82)
> > > at
> > >
>
com.caucho.server.http.Application.createServlet(Application.java:2982)
> > > at
> > >
> com.caucho.server.http.Application.loadServlet(Application.java:2941)
> > > at
> > >
> com.caucho.server.http.Application.initServlets(Application.java:1841)
> > > at
> > com.caucho.server.http.Application.init(Application.java:1772)
> > > at
> com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
> > > at
> > >
> com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
> > > at
> > >
> >
>
com.caucho.server.http.Servlet

RE: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Greg Hess
Hi All,

This one was tricky. It seems that my problem was that I supplied the
wrong className="org.apache.struts.tiles.SecureTilesPlugIn" when the
correct className is org.apache.struts.tiles.SecureTilesPlugin.

There is some inconsistancy in the docs found at
http://struts.ditlinger.com/ that specify the wrong class name to use.
The good people that authord the sslext are aware and will probably
update the docs.

Easy fix if I had of received a ClassNotFoundException, strange that no
error resulted.

All the best,

Greg

> -Original Message-
> From: Greg Hess [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 9:57 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts 1.1, Tiles and sslext11
> 
> Marino,
> 
> Hmm, I didn’t know what all those plugin's were for thanks for the
> explanation but I configure the tiles and ssl plugin as described but
I
> still get the same error. I can only seem to make it work as Adam has
it
> configured using the standard tiles pluging and just setting the
> processorClass to the secure one.
> 
> Below is my struts-config that I believe is as you have outlined?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   
>  value="/WEB-INF/tiles-defs.xml" />
>   
>value="true" />
>   
> 
>className="org.apache.struts.validator.ValidatorPlugIn">
>  property="pathnames"
> 
>
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
>   /WEB-INF/validation.xml"/>
>   
> 
>   
>   
>   
>   
>   
>   
> 
> 
> 
> Is this right, still throwing?
> 
> > > javax.servlet.UnavailableException
> > > at
> > >
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> av
> > a:
> > > 1169)
> 
> Thanks,
> 
> Greg
> 
> 
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A.
Jonsson
> > Sent: Tuesday, January 20, 2004 6:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Struts 1.1, Tiles and sslext11
> >
> > Moreover, the StrutsTilesPlugin overloads the
> > initRequestProcessorClass(ModuleConfig config) of the TilesPlugin
and
> sets
> > the processorClass attribute of the controller to
> > SecureTilesRequestProcessor ... so there's no need to specify the
> > controller
> > explicitly.
> >
> > cheers,
> > Marinó
> >
> > "Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > That makes sense ... SecureTilesPlugin actually extends
TilesPlugin
> so
> > > you're trying to initialize the same plugin twice ;)
> > >
> > > cheers,
> > > Marinó
> > > "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> > > news:[EMAIL PROTECTED]
> > > Hi All,
> > >
> > > I am having difficulty integrating the sslext11 plug-in with
Struts
> 1.1
> > > using Tiles.
> > >
> > > I get the following error when accessing any action:
> > >
> > > javax.servlet.UnavailableException
> > > at
> > >
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> av
> > a:
> > > 1169)
> > > at
> > >
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> > > at
javax.servlet.GenericServlet.init(GenericServlet.java:82)
> > > at
> > >
>
com.caucho.server.http.Application.createServlet(Application.java:2982)
> > > at
> > >
> com.caucho.server.http.Application.loadServlet(Application.java:2941)
> > > at
> > >
> com.caucho.server.http.Application.initServlets(Application.java:1841)
> > > at
> > com.caucho.server.http.Application.init(Application.java:1772)
> > > at
> com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
> > > at
> > >
> com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
> > > at
> > >
> >
>
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648
> )
> > > at
> > com.caucho.server.http.ServletServer.init(ServletServer.java:483)
> > > at
> com.caucho.server.http.ResinServer.init(ResinServer.java:360)
> &g

RE: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Greg Hess
Marino,

Hmm, I didn’t know what all those plugin's were for thanks for the
explanation but I configure the tiles and ssl plugin as described but I
still get the same error. I can only seem to make it work as Adam has it
configured using the standard tiles pluging and just setting the
processorClass to the secure one. 

Below is my struts-config that I believe is as you have outlined?













 









  




 
 



Is this right, still throwing?

> > javax.servlet.UnavailableException
> > at
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
av
> a:
> > 1169)

Thanks,

Greg


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A. Jonsson
> Sent: Tuesday, January 20, 2004 6:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts 1.1, Tiles and sslext11
> 
> Moreover, the StrutsTilesPlugin overloads the
> initRequestProcessorClass(ModuleConfig config) of the TilesPlugin and
sets
> the processorClass attribute of the controller to
> SecureTilesRequestProcessor ... so there's no need to specify the
> controller
> explicitly.
> 
> cheers,
> Marinó
> 
> "Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > That makes sense ... SecureTilesPlugin actually extends TilesPlugin
so
> > you're trying to initialize the same plugin twice ;)
> >
> > cheers,
> > Marinó
> > "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > Hi All,
> >
> > I am having difficulty integrating the sslext11 plug-in with Struts
1.1
> > using Tiles.
> >
> > I get the following error when accessing any action:
> >
> > javax.servlet.UnavailableException
> > at
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
av
> a:
> > 1169)
> > at
> > org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> > at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> > at
> >
com.caucho.server.http.Application.createServlet(Application.java:2982)
> > at
> >
com.caucho.server.http.Application.loadServlet(Application.java:2941)
> > at
> >
com.caucho.server.http.Application.initServlets(Application.java:1841)
> > at
> com.caucho.server.http.Application.init(Application.java:1772)
> > at
com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
> > at
> >
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
> > at
> >
>
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648
)
> > at
> com.caucho.server.http.ServletServer.init(ServletServer.java:483)
> > at
com.caucho.server.http.ResinServer.init(ResinServer.java:360)
> > at
> com.caucho.server.http.ResinServer.main(ResinServer.java:1107)
> > at
com.caucho.server.http.HttpServer.main(HttpServer.java:103)
> >
> > My struts-config.xml:
> >
> > 
> > 
> > .
> > 
> >
> > 
> >  >
> processorClass="org.apache.struts.action.SecureTilesRequestProcessor"
> >nocache="true"/>
> >
> > 
> > 
> >
> > 
> >   
> >> value="/WEB-INF/tiles-defs.xml" />
> >   
> >/>
> >   
> >
> >   
> >> property="pathnames"
> >
> >
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
> > /WEB-INF/validation.xml"/>
> >   
> >
> >   
> >   
> >   
> > 
> >   
> >   
> >
> > 
> >
> >
> > Any help is much appreciated,
> >
> > Thanks,
> >
> > Greg Hess
> > Software Engineer
> > Wrapped Apps Corporation
> > 275 Michael Cowpland Dr.
> > Suite 201
> > Ottawa, Ontario
> > K2M 2G2
> > Tel: (613) 591 -7552
> > Fax: (613) 591-0523
> > 1 (877) 388-6742
> > www.wrappedapps.com
> 
> 
> 
> 
> -
> 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: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Marino A. Jonsson
Moreover, the StrutsTilesPlugin overloads the
initRequestProcessorClass(ModuleConfig config) of the TilesPlugin and sets
the processorClass attribute of the controller to
SecureTilesRequestProcessor ... so there's no need to specify the controller
explicitly.

cheers,
Marinó

"Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> That makes sense ... SecureTilesPlugin actually extends TilesPlugin so
> you're trying to initialize the same plugin twice ;)
>
> cheers,
> Marinó
> "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hi All,
>
> I am having difficulty integrating the sslext11 plug-in with Struts 1.1
> using Tiles.
>
> I get the following error when accessing any action:
>
> javax.servlet.UnavailableException
> at
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
> 1169)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> at
> com.caucho.server.http.Application.createServlet(Application.java:2982)
> at
> com.caucho.server.http.Application.loadServlet(Application.java:2941)
> at
> com.caucho.server.http.Application.initServlets(Application.java:1841)
> at com.caucho.server.http.Application.init(Application.java:1772)
> at com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
> at
> com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
> at
> com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648)
> at
com.caucho.server.http.ServletServer.init(ServletServer.java:483)
> at com.caucho.server.http.ResinServer.init(ResinServer.java:360)
> at com.caucho.server.http.ResinServer.main(ResinServer.java:1107)
> at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
>
> My struts-config.xml:
>
> 
> 
> .
> 
>
> 
> 
processorClass="org.apache.struts.action.SecureTilesRequestProcessor"
>nocache="true"/>
>
> 
> 
>
> 
>   
>value="/WEB-INF/tiles-defs.xml" />
>   
>   
>   
>
>   
>property="pathnames"
>
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
> /WEB-INF/validation.xml"/>
>   
>
>   
>   
>   
> 
>   
>   
>
> 
>
>
> Any help is much appreciated,
>
> Thanks,
>
> Greg Hess
> Software Engineer
> Wrapped Apps Corporation
> 275 Michael Cowpland Dr.
> Suite 201
> Ottawa, Ontario
> K2M 2G2
> Tel: (613) 591 -7552
> Fax: (613) 591-0523
> 1 (877) 388-6742
> www.wrappedapps.com




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



Re: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Marino A. Jonsson
That makes sense ... SecureTilesPlugin actually extends TilesPlugin so
you're trying to initialize the same plugin twice ;)

cheers,
Marinó
"Greg Hess" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,

I am having difficulty integrating the sslext11 plug-in with Struts 1.1
using Tiles.

I get the following error when accessing any action:

javax.servlet.UnavailableException
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1169)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:2982)
at
com.caucho.server.http.Application.loadServlet(Application.java:2941)
at
com.caucho.server.http.Application.initServlets(Application.java:1841)
at com.caucho.server.http.Application.init(Application.java:1772)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
at
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648)
at com.caucho.server.http.ServletServer.init(ServletServer.java:483)
at com.caucho.server.http.ResinServer.init(ResinServer.java:360)
at com.caucho.server.http.ResinServer.main(ResinServer.java:1107)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)

My struts-config.xml:



.









  
  
  
  
  

  
  
  

  
  
  

  
  




Any help is much appreciated,

Thanks,

Greg Hess
Software Engineer
Wrapped Apps Corporation
275 Michael Cowpland Dr.
Suite 201
Ottawa, Ontario
K2M 2G2
Tel: (613) 591 -7552
Fax: (613) 591-0523
1 (877) 388-6742
www.wrappedapps.com







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



Re: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Adam Hardy
Hi Greg,
I'm using the same setup as you, except I use the straight 
org.apache.struts.action.SecurePlugIn and it works.

Haven't seen that exception before.

Adam

On 01/19/2004 09:06 PM Greg Hess wrote:
Hi All,

 

I am having difficulty integrating the sslext11 plug-in with Struts 1.1 
using Tiles.

 

I get the following error when accessing any action:

 

javax.servlet.UnavailableException

at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1169)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)

at javax.servlet.GenericServlet.init(GenericServlet.java:82)

at com.caucho.server.http.Application.createServlet(Application.java:2982)

at com.caucho.server.http.Application.loadServlet(Application.java:2941)

at com.caucho.server.http.Application.initServlets(Application.java:1841)

at com.caucho.server.http.Application.init(Application.java:1772)

at com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)

at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)

at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648)

at com.caucho.server.http.ServletServer.init(ServletServer.java:483)

at com.caucho.server.http.ResinServer.init(ResinServer.java:360)

at com.caucho.server.http.ResinServer.main(ResinServer.java:1107)

at com.caucho.server.http.HttpServer.main(HttpServer.java:103)

 

My struts-config.xml:

 



   

…



 





   processorClass="org.apache.struts.action.SecureTilesRequestProcessor"

   nocache="true"/>

 





 



  

  

value="/WEB-INF/tiles-defs.xml" />

  

  

  

 

  

  

property="pathnames"


value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,

/WEB-INF/validation.xml"/>

  

 

  

  

   

   

 

  

 



 

 

Any help is much appreciated,

 

Thanks,

 

Greg Hess

*Software Engineer*

*Wrapped Apps Corporation*

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com <http://www.wrappedapps.com>

<http://www.wrappedapps.com>

 



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Struts 1.1, Tiles and sslext11

2004-01-19 Thread Greg Hess








Hi All,

 

I am having difficulty integrating the sslext11 plug-in with
Struts 1.1 using Tiles. 

 

I get the following error when accessing any action:

 

javax.servlet.UnavailableException    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1169)    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)    at javax.servlet.GenericServlet.init(GenericServlet.java:82)    at com.caucho.server.http.Application.createServlet(Application.java:2982)    at com.caucho.server.http.Application.loadServlet(Application.java:2941)    at com.caucho.server.http.Application.initServlets(Application.java:1841)    at com.caucho.server.http.Application.init(Application.java:1772)    at com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)    at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)    at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648)    at com.caucho.server.http.ServletServer.init(ServletServer.java:483)    at com.caucho.server.http.ResinServer.init(ResinServer.java:360)    at com.caucho.server.http.ResinServer.main(ResinServer.java:1107)    at com.caucho.server.http.HttpServer.main(HttpServer.java:103) My struts-config.xml: 

<struts-config>

            

    …

    

 



    

   processorClass="org.apache.struts.action.SecureTilesRequestProcessor"

   nocache="true"/>

 



    

 



 
    className="org.apache.struts.tiles.TilesPlugin" >

      

        value="/WEB-INF/tiles-defs.xml"
/>

      

      

 
    

 
    

 
    className="org.apache.struts.validator.ValidatorPlugIn">

      

        property="pathnames"

        value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,

        /WEB-INF/validation.xml"/>

 
    

 
    

 
    className="org.apache.struts.tiles.SecureTilesPlugIn">

      

            

            

          

 
    

 

config>  Any help is much appreciated, Thanks,

 


 
  
  Greg
   Hess
  
 
 
  
  Software
  Engineer
  
 
 
  
  Wrapped
  Apps Corporation
  
 
 
  
  275 Michael Cowpland Dr.
  
 
 
  
  Suite
   201
  
 
 
  
  Ottawa, Ontario
  
 
 
  
  K2M
  2G2
  
 
 
  
  Tel:
  (613) 591 -7552
  
 
 
  
  Fax:
  (613) 591-0523
  
 
 
  
  1 (877) 388-6742
  
 
 
  
  www.wrappedapps.com
  
 
 
  
  
  
 


 








Struts 1.1 on iPlanet 6.05 iws (one more time)

2004-01-13 Thread Fowler, David
I'm a little closer.

I am running Struts 1.1 on iPlanet iws 6.05 (it works fine on tomcat 3.3.1).  I am 
using JDK 1.4.1_05 (JDK 1.4.1_01 is the highest supported on 6.05).  The app is 
running on Windows 2000 - destined for HPUX.  I am also using tiles and validation.

At first, nothing worked.  I changed the action forwards to redirect=true.  I also 
moved the ApplicationResources.properties to the application context root directory 
(instead of WEB-INF/classes).  Now everything seems to work with one exception.  Any 
page using a dto throws a servlet exception.  If I take the dto out, everything works 
(of course the dto is the heart of the matter).

I've increased the maxHeapSize to 67108864 and the StackSize to 1024000 (I'm way out 
of my league here).  I have not set a size for my page output buffer.

Are there any suggestions about what paths I might investigate or what damage I have 
done???

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



Re: Struts 1.1 and iPlanet iws 6.05

2004-01-12 Thread James Mitchell
You should upgrade to 6.1 if you can.  It uses Tomcat under the covers.  All
will work fine once you do that.

James

- Original Message - 
From: "Fowler, David" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Monday, January 12, 2004 10:22 PM
Subject: Struts 1.1 and iPlanet iws 6.05


I have read through the archive and it seems that there are many who have
struggled with iPlanet and Struts.

I have a Struts application running on Tomcat, and I wanted to move it to an
iPlanet web server (6.05).  I'm running into a little trouble.

I get a "RequestDispatcher: forward call failed" error.  It appears to be
finding the action and failing some time after execution.  Any ideas?


Also, I am using tiles.

If this isn't possible, please tell me now...

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



Struts 1.1 and iPlanet iws 6.05

2004-01-12 Thread Fowler, David
I have read through the archive and it seems that there are many who have struggled 
with iPlanet and Struts.

I have a Struts application running on Tomcat, and I wanted to move it to an iPlanet 
web server (6.05).  I'm running into a little trouble.

I get a "RequestDispatcher: forward call failed" error.  It appears to be finding the 
action and failing some time after execution.  Any ideas?


Also, I am using tiles.

If this isn't possible, please tell me now...

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



Re: Tiles in Struts 1.1 - TilesRequestProcessor

2003-12-18 Thread Joe Germuska
The PlugIn takes the liberty of setting your 
RequestProcessor to the TilesRequestProcessor for 
you.

You only really need to worry about it if you 
choose to use a custom RequestProcessor of your 
own; in that case, you'd need to extend the 
TilesRequestProcessor if you want to use Tiles 
functionality -- the PlugIn class is not 
"self-contained".

Since the TilesRequestProcessor is totally 
compatible with non-tiles use, I wonder if we 
ought not just merge it in with the base 
RequestProcessor and eliminate the confusion?

There is an ongoing effort to break up the 
request processing cycle to make it more 
flexible, but until then, I wonder if this would 
be worth pursuing...?

joe

At 7:50 AM +0100 12/18/03, Jan Dirksen wrote:
Hi
i am using Tiles with the Plugin.tag in
the struts-config.xml
now i saw in the source, that TilesPlugin
<> the TilesRequestProcessor.
okay, however - but i saw in one config-file, that
i could add the TilesRequestProcessor in the config of
struts.
since now i only "used" the plugin in the config.

is it better to use the TilesRequestProcessor instead?

-in sources i didn´t found anything like deprecated in
the TilesPlugin.
Thanks Jan

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
 "We want beef in dessert if we can get it there."
  -- Betty Hogan, Director of New Product 
Development, National Cattlemen's Beef Association

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


Tiles in Struts 1.1 - TilesRequestProcessor

2003-12-17 Thread Jan Dirksen
Hi
i am using Tiles with the Plugin.tag in
the struts-config.xml
now i saw in the source, that TilesPlugin
<> the TilesRequestProcessor.

okay, however - but i saw in one config-file, that
i could add the TilesRequestProcessor in the config of
struts.

since now i only "used" the plugin in the config.

is it better to use the TilesRequestProcessor instead?

-in sources i didn´t found anything like deprecated in
the TilesPlugin.

Thanks Jan

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



Re: FormBean error using Struts 1.1 and Tomcat 5

2003-12-05 Thread John Ferguson Smart
Forget it, guys, I called an exorsist and a vodoo-specialist, who told 
me to install Tomcat 5.0.16, and now it works.

John Ferguson Smart wrote:

Anyone got any ideas ?

John Ferguson Smart wrote:

Hi,
   I've run into a strange problem using Struts 1.1 with Tomcat 
5.0.14 . In a page that previously worked fine (of course...), I now 
get a JSP page displays the following message :
   [ServletException in:/admin/tiles/welcomeBody.jsp] Exception 
creating bean of class com.wakaleo.webcat.auth.LogonForm: {1}

The strange thing is, I'm not working on the user interface at the 
moment, so I don't see what could have changed. From what I can 
gather from the source code, Struts calls the 
RequestUtils.applicationInstance() method to instanciate an instance 
of the form bean, and then exploses (see the stack dump below). 
Tomcat (?) doesn't seem to be able to find some of the Struts classes 
(ActionForm, ActionErrors,...). I get the same thing with any other 
Struts forms, but, strangely enough, the bits of the site that don't 
use the  tag seem to work as excepted (they do use Tiles 
and JSTL, though). I also have no idea what on earth Tomcat is trying 
to compile

This one's got me stumped. Any ideas ?

STACK DUMP :

GRAVE: Error creating form bean of class 
com.wakaleo.webcat.auth.LogonForm
java.lang.Error: Unresolved compilation problems:
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   ActionForm cannot be resolved or is not a valid superclass
   ActionErrors cannot be resolved (or is not a valid return 
type) for the
method validate
   ActionMapping cannot be resolved (or is not a valid type) for 
the argume
nt mapping of the method validate
   ActionErrors cannot be resolved or is not a type
   ActionErrors cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type

   at com.wakaleo.webcat.auth.LogonForm.(LogonForm.java:14)
   at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

   at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
   at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
   at 
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
   at java.lang.Class.newInstance0(Class.java:308)
   at java.lang.Class.newInstance(Class.java:261)
   at 
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
   at 
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.jav
a:837)
   at 
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:552)
   at 
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
   ...

TAGLIB WHICH EXPLOSES (works fine if I replace all this with 'HELLO 
WORLD') :

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/log-1.0"; 
prefix="log" %>
<%@ taglib tagdir="/WEB-INF/tags/util" prefix="util" %>

<%-- Login form --%>

<%-- Box Heading --%>


 
   

 
   
 
   
 
 
 
 
 
 
 
 
 
 
 
  
  
border='0'
src=''
name='submit'
type='image'>
  
 
 

   
 


<%-- End Login form --%>

FORM-BEAN in struts-config.xml :
   

(And, yes, LogonForm is derived from ActionForm).


--
John Ferguson Smart, PhD
Directeur de Projet
Département informatique Communicante 
AACOM
email : [EMAIL PROTECTED]

-
AACOM - L'Informatique communicante
120 rue du Marin Blanc - Z.I. des Paluds
13685 Aubagne Cedex
tel : 04.42.72.65.69 - fax : 04.42.72.65.68
Web : http://www.aacom.fr
-


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


Re: FormBean error using Struts 1.1 and Tomcat 5

2003-12-04 Thread Kris Schneider
Couple of questions:

Are the Struts and supporting JAR files installed in your app's WEB-INF/lib or
someplace else like $CATALINA_HOME/common/lib?

Are you intentionally using JSTL 1.0? With TC 5, you probably want JSTL 1.1.

How are you doing your deployment/update? For example, are you copying WAR files
or using TC Ant tasks or...?

Quoting John Ferguson Smart <[EMAIL PROTECTED]>:

> Anyone got any ideas ?
> 
> John Ferguson Smart wrote:
> 
> > Hi,
> >I've run into a strange problem using Struts 1.1 with Tomcat 5.0.14 
> > . In a page that previously worked fine (of course...), I now get a 
> > JSP page displays the following message :
> >[ServletException in:/admin/tiles/welcomeBody.jsp] Exception 
> > creating bean of class com.wakaleo.webcat.auth.LogonForm: {1}
> >
> > The strange thing is, I'm not working on the user interface at the 
> > moment, so I don't see what could have changed. From what I can gather 
> > from the source code, Struts calls the 
> > RequestUtils.applicationInstance() method to instanciate an instance 
> > of the form bean, and then exploses (see the stack dump below). Tomcat 
> > (?) doesn't seem to be able to find some of the Struts classes 
> > (ActionForm, ActionErrors,...). I get the same thing with any other 
> > Struts forms, but, strangely enough, the bits of the site that don't 
> > use the  tag seem to work as excepted (they do use Tiles 
> > and JSTL, though). I also have no idea what on earth Tomcat is trying 
> > to compile
> >
> > This one's got me stumped. Any ideas ?
> >
> > STACK DUMP :
> >
> > GRAVE: Error creating form bean of class 
> > com.wakaleo.webcat.auth.LogonForm
> > java.lang.Error: Unresolved compilation problems:
> >The import org.apache.struts cannot be resolved
> >The import org.apache.struts cannot be resolved
> >The import org.apache.struts cannot be resolved
> >The import org.apache.struts cannot be resolved
> >ActionForm cannot be resolved or is not a valid superclass
> >ActionErrors cannot be resolved (or is not a valid return type) 
> > for the
> > method validate
> >ActionMapping cannot be resolved (or is not a valid type) for 
> > the argume
> > nt mapping of the method validate
> >ActionErrors cannot be resolved or is not a type
> >ActionErrors cannot be resolved or is not a type
> >ActionError cannot be resolved or is not a type
> >ActionError cannot be resolved or is not a type
> >ActionError cannot be resolved or is not a type
> >
> >at com.wakaleo.webcat.auth.LogonForm.(LogonForm.java:14)
> >at 
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> >
> >at 
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
> > orAccessorImpl.java:39)
> >at 
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
> > onstructorAccessorImpl.java:27)
> >at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> >at java.lang.Class.newInstance0(Class.java:308)
> >at java.lang.Class.newInstance(Class.java:261)
> >at 
> > org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
> > java:231)
> >at 
> > org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.jav
> > a:837)
> >at 
> > org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:552)
> >at 
> > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
> >...
> >
> > TAGLIB WHICH EXPLOSES (works fine if I replace all this with 'HELLO 
> > WORLD') :
> >
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
> > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> > <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> > <%@ taglib uri="http://jakarta.apache.org/taglibs/log-1.0"; 
> > prefix="log" %>
> > <%@ taglib tagdir="/WEB-INF/tags/util" prefix="util" %>
> >
> > <%-- Login form --%>
> > 
> > <%-- Box Heading --%>
> > 
> > 
> >  
> > > width="100%&quo

Re: FormBean error using Struts 1.1 and Tomcat 5

2003-12-04 Thread John Ferguson Smart
Anyone got any ideas ?

John Ferguson Smart wrote:

Hi,
   I've run into a strange problem using Struts 1.1 with Tomcat 5.0.14 
. In a page that previously worked fine (of course...), I now get a 
JSP page displays the following message :
   [ServletException in:/admin/tiles/welcomeBody.jsp] Exception 
creating bean of class com.wakaleo.webcat.auth.LogonForm: {1}

The strange thing is, I'm not working on the user interface at the 
moment, so I don't see what could have changed. From what I can gather 
from the source code, Struts calls the 
RequestUtils.applicationInstance() method to instanciate an instance 
of the form bean, and then exploses (see the stack dump below). Tomcat 
(?) doesn't seem to be able to find some of the Struts classes 
(ActionForm, ActionErrors,...). I get the same thing with any other 
Struts forms, but, strangely enough, the bits of the site that don't 
use the  tag seem to work as excepted (they do use Tiles 
and JSTL, though). I also have no idea what on earth Tomcat is trying 
to compile

This one's got me stumped. Any ideas ?

STACK DUMP :

GRAVE: Error creating form bean of class 
com.wakaleo.webcat.auth.LogonForm
java.lang.Error: Unresolved compilation problems:
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   ActionForm cannot be resolved or is not a valid superclass
   ActionErrors cannot be resolved (or is not a valid return type) 
for the
method validate
   ActionMapping cannot be resolved (or is not a valid type) for 
the argume
nt mapping of the method validate
   ActionErrors cannot be resolved or is not a type
   ActionErrors cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type

   at com.wakaleo.webcat.auth.LogonForm.(LogonForm.java:14)
   at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

   at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
   at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
   at java.lang.Class.newInstance0(Class.java:308)
   at java.lang.Class.newInstance(Class.java:261)
   at 
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
   at 
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.jav
a:837)
   at 
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:552)
   at 
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
   ...

TAGLIB WHICH EXPLOSES (works fine if I replace all this with 'HELLO 
WORLD') :

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/log-1.0"; 
prefix="log" %>
<%@ taglib tagdir="/WEB-INF/tags/util" prefix="util" %>

<%-- Login form --%>

<%-- Box Heading --%>


 
   

 
   
 
   
 
 
 
 
 
 
 
 
 
 
 
  
  
border='0'
src=''
name='submit'
type='image'>
  
 
 

   
 


<%-- End Login form --%>

FORM-BEAN in struts-config.xml :
   

(And, yes, LogonForm is derived from ActionForm).

--
John Ferguson Smart, PhD
Directeur de Projet
Département informatique Communicante 
AACOM
email : [EMAIL PROTECTED]

-
AACOM - L'Informatique communicante
120 rue du Marin Blanc - Z.I. des Paluds
13685 Aubagne Cedex
tel : 04.42.72.65.69 - fax : 04.42.72.65.68
Web : http://www.aacom.fr
-


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


RE: Solved super.init() dies silently after migration from struts 1.0 to struts 1.1

2003-12-03 Thread Steve Raeburn
You should really take a look at the Ant  task.
http://ant.apache.org/manual/index.html - look under Ant Tasks/Optional
tasks. It's free and it will allow you to validate your XML files as
part of the build process.

Alternatively, use an editor that will validate the files for you as you
go. I'm sure if you take a look around there are options for IDEs and
standalone editors.

Steve

> -Original Message-
> From: Ralf Hauser [mailto:[EMAIL PROTECTED]
> Sent: December 2, 2003 11:20 PM
> To: [EMAIL PROTECTED]
> Subject: Solved super.init() dies silently after migration from struts
> 1.0 to struts 1.1
>
>
> Hi,
>
> Just for that others do not waste time on this.
>
> Eventually, I found that some error is posted, but not to
> catalina.out.
>
> Unfortunately, the error message was not very telling so I
> posted an RFE to
> make it more helpful
> (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25155).
>
> Essentially, the problem was that I had both,
> 
> and
> 
> in struts-config.xml after migrating.
>
> Rgds
>
>Ralf
>
>
> -
> 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]



Solved super.init() dies silently after migration from struts 1.0 to struts 1.1

2003-12-03 Thread Ralf Hauser
Hi,

Just for that others do not waste time on this.

Eventually, I found that some error is posted, but not to catalina.out.

Unfortunately, the error message was not very telling so I posted an RFE to
make it more helpful
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25155).

Essentially, the problem was that I had both,

and

in struts-config.xml after migrating.

Rgds

   Ralf


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



struts.init() dies silently after migration from struts 1.0 to struts 1.1

2003-12-02 Thread Ralf Hauser
Hi,

Since we installed the new jars and dtd's we no longer can get our
Database.java servlet to start.

We did the move from GenericDataSource to BasicDataSource, but didn't really
change anything else.
We are doing exactly what Craig recommends in
http://marc.theaimsgroup.com/?l=struts-user&m=102948165216751&w=2 :

public class Database extends ActionServlet {

public void init() throws ServletException {
log.debug("before super.init()");
  // Perform standard Struts initialization
  super.init();
  log.debug("after super.init()");
  // Perform my extra initializations
  ...

When starting tomcat 4.1.27, I do see
 DEBUG [main] (Database.java:57) - before super.init()
but never the "after"

Some colleagues are suggesting that this may be due a mix-up in the jars -
how can one find out which jar is wrong?

Any hints would be highly appreciated!

   Thanks Ralf

In http://jakarta.apache.org/struts/faqs/eclipse.html, I see also
commons-resources.jar and commons-service.jar, but I guess I don't need
those.


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



FormBean error using Struts 1.1 and Tomcat 5

2003-12-02 Thread John Ferguson Smart
Hi,
   I've run into a strange problem using Struts 1.1 with Tomcat 5.0.14 
. In a page that previously worked fine (of course...), I now get a JSP 
page displays the following message :
   [ServletException in:/admin/tiles/welcomeBody.jsp] Exception 
creating bean of class com.wakaleo.webcat.auth.LogonForm: {1}

The strange thing is, I'm not working on the user interface at the 
moment, so I don't see what could have changed. From what I can gather 
from the source code, Struts calls the 
RequestUtils.applicationInstance() method to instanciate an instance of 
the form bean, and then exploses (see the stack dump below). Tomcat (?) 
doesn't seem to be able to find some of the Struts classes (ActionForm, 
ActionErrors,...). I get the same thing with any other Struts forms, 
but, strangely enough, the bits of the site that don't use the 
 tag seem to work as excepted (they do use Tiles and JSTL, 
though). I also have no idea what on earth Tomcat is trying to compile

This one's got me stumped. Any ideas ?

STACK DUMP :

GRAVE: Error creating form bean of class com.wakaleo.webcat.auth.LogonForm
java.lang.Error: Unresolved compilation problems:
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   The import org.apache.struts cannot be resolved
   ActionForm cannot be resolved or is not a valid superclass
   ActionErrors cannot be resolved (or is not a valid return type) 
for the
method validate
   ActionMapping cannot be resolved (or is not a valid type) for 
the argume
nt mapping of the method validate
   ActionErrors cannot be resolved or is not a type
   ActionErrors cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type
   ActionError cannot be resolved or is not a type

   at com.wakaleo.webcat.auth.LogonForm.(LogonForm.java:14)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)

   at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
   at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
   at java.lang.Class.newInstance0(Class.java:308)
   at java.lang.Class.newInstance(Class.java:261)
   at 
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
   at 
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.jav
a:837)
   at 
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:552)
   at 
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
   ...

TAGLIB WHICH EXPLOSES (works fine if I replace all this with 'HELLO 
WORLD') :

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/log-1.0"; prefix="log" %>
<%@ taglib tagdir="/WEB-INF/tags/util" prefix="util" %>
<%-- Login form --%>

<%-- Box Heading --%>


 
   

 
   
 
   
 
 
 
 
 
 
 
 
 
 
 
  
  
border='0'
src=''
name='submit'
type='image'>
  
 
 

   
 


<%-- End Login form --%>

FORM-BEAN in struts-config.xml :
   

(And, yes, LogonForm is derived from ActionForm).

--
John Ferguson Smart, PhD
Directeur de Projet
Département informatique Communicante 
AACOM
email : [EMAIL PROTECTED]

-
AACOM - L'Informatique communicante
120 rue du Marin Blanc - Z.I. des Paluds
13685 Aubagne Cedex
tel : 04.42.72.65.69 - fax : 04.42.72.65.68
Web : http://www.aacom.fr
-


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


Problem with Struts 1.1, Tomcat 4.1, SingleSignOn

2003-12-01 Thread Kevin A. Palfreyman
I have a problem using SingleSignOn with a Struts 1.1 app in Tomcat 4.1
(tried 24 & 29).

I have Tomcat set up with the SingleSignOn valve, and a number of web
apps (5) all using FORM based authentication.  The single sign-on seems
to be working fine for 4 out of the 5, but I have a problem with the
sessions in the 5th app.

The problem is that although at first glance the SSO appears to work, in
reality this single app is creating a separate new session for the user
on top of the one they already have.  This causes a problem upon logout,
because the common session is invalidated, but the one that is specific
to the struts app remains valid.  This means that if the user then
navigates directly to the struts application they are still logged in.
This is a Bad Thing.

In an attempt to trace this issue, I set up an HttpSessionListener in
the offending application and dumped the stack in the sessionCreated()
method.  It appears that a new session is created during processing of
the struts RequestProcessor.processLocale() method.  The JavaDoc warns
that this may happen if a session does not exist, but in my case a valid
session must already exist since I have used SSO to login in a different
app (and watched a session being created there using another listener)!

I'm confused.  Why does this one single application not see the existing
session?
Have I missed some silly config?  Is it a bug?

Thanks in advance,

Kev

---
Kev Palfreyman  
Cambridge, UK



dynamic reloading of struts-config and classes for Struts 1.1 and JPlates 3.0 - 99%

2003-12-01 Thread Dan Jacobs
Hi all,

I have implemented a scheme for dynamically reloading classes and struts 
configuration files for JPlates 3.0.1 and Struts 1.1, and welcome anyone 
interested to try it out.  Everything you need is in the JPlates trial 
download at http://www.jplates.com, and the config setup is described in 
the examples on the site and in the Java-doc.  The scheme is designed to 
work even if you don't use JPlates.

As indicated in the subject line, this is only a 99% solution so far, 
even if you don't do anything in your code to thwart the strategy 
(things to avoid are enumerated in the Java-doc).  Here's how it works.

1.  There's a subclass of ActionServlet that uses a class-loader-manager 
to watch for changes in the WEB-INF directory tree of the 
web-application.  It only looks for changes when it responds to the 
first request of a new session (that's both for performance reasons and 
to avoid class-loader collisions within a session).  You can override 
the out-of-date checking behavior by providing your own FileFilter in a 
subclass.

2.  The class-loader takes over loading classes and other resources from 
the WEB-INF/classes directory.  It does not do anything with jar files 
in the WEB-INF/lib directory, since in most cases those files are kept 
open for direct file access.

3.  When changes are detected and a new class-loader is constructed, the 
ActionServlet subclass re-initializes itself, re-loading the 
configuration XML files, etc.  This isn't a very straightforward thing 
to do, and there's probably code in there that's completely Struts-1.1 
specific.

This scheme has been fairly well tested, but only under Tomcat 4.x and 
5.0, and not in a production multi-client environment.

PLEASE NOTE:
I have noticed one peculiar problem that I haven't been able to track 
down.  If you modify classes in the WEB-INF/classes directory and start 
a new session, the changes take effect immediately.  But if you modify 
your struts-config.xml file and start a new session, those changes are 
not seen the first time.  If you touch the file again and start another 
session, the changes are then seen.  In fact, every even numbered change 
to the struts-config file works properly.  If anyone has any insights 
about that, I'd be very interested.  I've seen similar behavior using 
custom class-loaders with Tomcat, but don't know what causes it.

I expected that some J2EE containers will put up a fuss about this 
ActionServlet subclass creating new class-loaders.  You'll have to grant 
permissions in that case.  I also anticipate class-loader collisions 
with multiple concurrent sessions, and I'm working on a design to 
address that problem.

Please try this out.  I've already found it to be a great time-saver, 
despite its current limitations, and I'd like to make it even more 
useful based on your feedback.

All the best,
Dan Jacobs
President, JPlates Inc.


RE: struts 1.1 validation of indexed properties

2003-11-26 Thread Jarnot Voytek Contr AU HQ/SC
Look here for an example:
http://home.earthlink.net/~dwinterfeldt/revision.html update 9/25/2001.
Works like a champ.

--
Voytek Jarnot
Quantum materiae materietur marmota monax si marmota monax materiam possit
materiari?


> -Original Message-
> From: Andreas Wuest [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 26, 2003 1:20 PM
> To: [EMAIL PROTECTED]
> Subject: struts 1.1 validation of indexed properties
> 
> 
> hi,
> 
> i have a small problem validating index properties in my form.
> in the validation.xml file i have the following definition
> to validate my indexed properties. the validation works fine
> for the first (index = 0) property.  but i have a maximum of
> 18 indexed properties.
> 
>
>depends="required,integer,intRange">
> 
> 
> 
> 
>   min
>   0
> 
> 
>   max
>   20
> 
>   
> 
> 
> do i have to add all the 17 other indexed properties with 
> explicit index, just 
> like the one above (only with different indexes), or is there 
> a simpler way 
> to validate all the properties with only one definition ?
> i could not find any documentation about that. 
> i link would be very helpful, too.
> 
> thanks in advance,
> 
> Andreas
> 
> 
> 
> 
> -
> 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]



struts 1.1 validation of indexed properties

2003-11-26 Thread Andreas Wuest
hi,

i have a small problem validating index properties in my form.
in the validation.xml file i have the following definition
to validate my indexed properties. the validation works fine
for the first (index = 0) property.  but i have a maximum of
18 indexed properties.

   
  




  min
  0


  max
  20

  


do i have to add all the 17 other indexed properties with explicit index, just 
like the one above (only with different indexes), or is there a simpler way 
to validate all the properties with only one definition ?
i could not find any documentation about that. 
i link would be very helpful, too.

thanks in advance,

Andreas




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



RE: Tiles problem with / in action forward since struts 1.1

2003-11-24 Thread David Friedman
Lukas,

How are you trying to 'forward' to your tile?  Certain logic:tags don't
foward to tiles - it's in their documentation.  Please provide examples of
your  tags, relevant  tags, and how you are trying to
'forward' to it.

Regards,
David

-Original Message-
From: Lukas Österreicher [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 8:33 AM
To: [EMAIL PROTECTED]
Subject: Tiles problem with / in action forward since struts 1.1


Hello

In latest revisions of struts it seemes to be required to have an action
forward
start with  a /. This is ok under normal situations, however, it seemes to
cause
troubles with tiles, at least for me.

When forwarding to a tile defind in the xml configureation file for tiles
it seemes to be required to forward to a location not starting with / or
it won't find the tile.

Are you aware of this and can confirm it?

Some people to deem to try to bypass this by setting the
referrer url in another parameter rather then the action forward,
but I think this not a good solution, especially if you need many
forward locations.

Do you know a solution for this?

Lukas



>/index.jsp gets translated (as needed) to account for the context path
>automatically. The paths that start with / are evaluated relative to
>your web app. You can use the /index.jsp style paths and deploy your app
>with any context path without having to change anything.
>
>-Max
>
>On Thu, 2003-02-27 at 22:01, Affan Qureshi wrote:
>> I have been using Struts 1.1b2 and tiles in my application and have
defined
>> forwards like:
>>
>> 
>>
>> where forward paths were JSP pages,  whithout the starting "/" for paths
and
>> it worked ok. But this does not work when I installed Strut 1.1rc1 coz it
>> gave the exception:
>>
>> java.lang.IllegalArgumentException: Path index.jsp?selected=1 does not
start
>> with a "/" character
>>
>> Have I been doing it wrong until now? Is this a TilesRequestProcessor
issue?
>> I had done so, so that I can deploy my app under any context/module etc.
and
>> have no dependency on root path.
>>



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



Tiles problem with / in action forward since struts 1.1

2003-11-24 Thread Lukas Österreicher
Hello

In latest revisions of struts it seemes to be required to have an action forward
start with  a /. This is ok under normal situations, however, it seemes to cause
troubles with tiles, at least for me.

When forwarding to a tile defind in the xml configureation file for tiles
it seemes to be required to forward to a location not starting with / or
it won't find the tile.

Are you aware of this and can confirm it?

Some people to deem to try to bypass this by setting the
referrer url in another parameter rather then the action forward,
but I think this not a good solution, especially if you need many
forward locations.

Do you know a solution for this?

Lukas



>/index.jsp gets translated (as needed) to account for the context path
>automatically. The paths that start with / are evaluated relative to
>your web app. You can use the /index.jsp style paths and deploy your app
>with any context path without having to change anything.
>
>-Max
>
>On Thu, 2003-02-27 at 22:01, Affan Qureshi wrote:
>> I have been using Struts 1.1b2 and tiles in my application and have defined
>> forwards like:
>>
>> 
>>
>> where forward paths were JSP pages,  whithout the starting "/" for paths and
>> it worked ok. But this does not work when I installed Strut 1.1rc1 coz it
>> gave the exception:
>>
>> java.lang.IllegalArgumentException: Path index.jsp?selected=1 does not start
>> with a "/" character
>>
>> Have I been doing it wrong until now? Is this a TilesRequestProcessor issue?
>> I had done so, so that I can deploy my app under any context/module etc. and
>> have no dependency on root path.
>>



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



Re: struts 1.1 validation problem / question

2003-11-16 Thread Phil
Hi Andreas,

i think the best way is to write your own
validate() method in your action form. There you
can easily check the value of the userAction attribute
and depending on that the other attributes.

example:

public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
  ActionErrors errors = new ActionErrors();

  if (getName().length() < 1) {
   errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("form.error.name.required"));
  }

  return errors;
 }

HTH

Phil

- Original Message -
From: "Andreas Wuest" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 15, 2003 2:36 PM
Subject: struts 1.1 validation problem / question


> Hi,
>
> i have a small problem / question concerning the struts 1.1 validation.
> i have a jsp form that has the following input fields :
>
> id
> name
> password
> userAction
>
> Depending on the userAction value (can be 'show' or 'save') i need to
> validate only the id (when userAction is 'show') or the name, password
> and id (when the userAction is 'save').
> i have one form that contains the 4 properties (with getters and setters)
> and an action class that handles the show and the save action.
>
> the problem that i have is the validation. as far as i understand the
> docuemtneation it is not possible to validate a property only when
> another property has a certain value. in other words it is not possible
> to tell the validator to skip validation of a property when another
property
> has a certain value.
> or am i mistaken ?
>
> how can i solve this problem ? do i need 2 forms and action to handle the
> different userActions or is there another way ??
>
> Thanks in advance,
>
>  Andreas
>
>
> -
> 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: struts 1.1 validation problem / question

2003-11-16 Thread Andreas Wuest
Hi Victor,

thanks for you reply.  the lookupdispatchaction does not really solve
my problem, since handling the different actions is not the problem.
the problems is the validation of the input fields for the different 
action. i need different validations depending on the value of the
userAction html form value.

thanks, 

 Andreas

On Sunday 16 November 2003 10:51, Victor wrote:
> Oi Andre,
>
> Tries to verify the LookupDispatchAction class, this
> class allows to manage diverse actions in simple
> Action and in this way you can better manage its
> validations with the Validator.
>
> Good code.
> Victor Amano Izawa
>
> __
>
> Yahoo! Mail: 6MB, anti-spam e antivírus gratuito! Crie sua conta agora:
> http://mail.yahoo.com.br
>
> -
> 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: struts 1.1 validation problem / question

2003-11-16 Thread Victor
Oi Andre, 

Tries to verify the LookupDispatchAction class, this
class allows to manage diverse actions in simple
Action and in this way you can better manage its
validations with the Validator.

Good code.
Victor Amano Izawa

__

Yahoo! Mail: 6MB, anti-spam e antivírus gratuito! Crie sua conta agora:
http://mail.yahoo.com.br

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



struts 1.1 validation problem / question

2003-11-15 Thread Andreas Wuest
Hi,

i have a small problem / question concerning the struts 1.1 validation.
i have a jsp form that has the following input fields : 

id
name
password
userAction

Depending on the userAction value (can be 'show' or 'save') i need to 
validate only the id (when userAction is 'show') or the name, password
and id (when the userAction is 'save').
i have one form that contains the 4 properties (with getters and setters)
and an action class that handles the show and the save action. 

the problem that i have is the validation. as far as i understand the 
docuemtneation it is not possible to validate a property only when
another property has a certain value. in other words it is not possible
to tell the validator to skip validation of a property when another property
has a certain value. 
or am i mistaken ?

how can i solve this problem ? do i need 2 forms and action to handle the
different userActions or is there another way ??

Thanks in advance,

 Andreas 


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



Re: File upload problem with Struts 1.1

2003-11-12 Thread Martin Cooper
This usually happens when you have your jars in the wrong place and your
container also includes (a different version of) FileUpload. Make sure that
the Commons FileUpload jar file, as well as the Struts jar file and other
Commons jar files, are in your WEB-INF/lib directory, and not in a
container-specific lib directory.

--
Martin Cooper


"Raman Garg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,

 We are getting error while file uploading using struts 1.1. We have a demo
code for file uploading which demostrates the file uploading using struts.
When we run there application code works fine but  when we submit the form
by setting enctype for the form it throws the following error. (Remember we
are not doing anything in the action or in the form just getteer and
setters) so issue is with enctype settings. It may use some internal class
while sending data using enctype. Please advise us what to do.

We downloaded the sample file uploading code from :
http://forum.exadel.com/viewtopic.php?t=120

But according to me the problem can be with setting of enctype.

follwoing is the  code for our form











java.lang.NoSuchMethodError:
org.apache.commons.fileupload.FileUpload.setSizeMax
(I)V
at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
(CommonsMultipartRequestHandler.java:219)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1055)
at org.apache.struts.action.RequestProcessor.processPopulate
(RequestProcessor.java:798)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
com.tavant.lg.controller.servlet.LoanGeniusFrontControllerServlet.service
(LoanGeniusFrontControllerServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
(WebAppServletContext.java:6291)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:97)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3575)
at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

==


Any Suggestion or help will be highly appreciated.


Best Regards
Raman Garg




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



Re: File upload problem with Struts 1.1

2003-11-12 Thread Caoilte O'Connor
hi,
are you using a struts nightly build? it appears that might 
require a different version of commons-upload (cvs 
probably).

c



On Wednesday 12 November 2003 11:20, Garg Raman \(SDinc\) 
wrote:
> Hi Connor,
>
>  Thanks for your reply. We have the
> commons-upload.jar in the lib of our appliction directory
> and as well the struts.jar.
>
> We also have set the Controller size to 2MB which is
> quite nice for any file.
>
> If you want to see the error coming itself we can pass on
> the URL for our development server
>
>
> Any other suggestion will be appreciated .
>
> Looking forward to hear from you.
>
>
> Cheers
> Raman Garg
> - Original Message -
> From: "Caoilte O'Connor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 12, 2003 3:42 PM
> Subject: Re: File upload problem with Struts 1.1
>
> > have you got the commons-upload jar in your lib dir?
> > you need that as well as the struts jars.
> >
> > Also check your controller (in struts-config) has
> > something like this (though i think it's optional
> > actually),
> >
> >> maxFileSize="300K" />
> >
> >
> >
> > c
> >
> > On Wednesday 12 November 2003 08:18, Raman Garg wrote:
> > > Hi,
> > >
> > >  We are getting error while file uploading using
> > > struts 1.1. We have a demo code for file uploading
> > > which demostrates the file uploading using struts.
> > > When we run there application code works fine but 
> > > when we submit the form by setting enctype for the
> > > form it throws the following error. (Remember we are
> > > not doing anything in the action or in the form just
> > > getteer and setters) so issue is with enctype
> > > settings. It may use some internal class while
> > > sending data using enctype. Please advise us what to
> > > do.
> > >
> > > We downloaded the sample file uploading code from :
> > > http://forum.exadel.com/viewtopic.php?t=120
> > >
> > > But according to me the problem can be with setting
> > > of enctype.
> > >
> > > follwoing is the  code for our form
> > >
> > >  > > enctype="multipart/form-data">
> > >
> > > 
> > >
> > > 
> > > 
> > > 
> > >
> > >
> > >
> > > java.lang.NoSuchMethodError:
> > > org.apache.commons.fileupload.FileUpload.setSizeMax
> > > (I)V at
> > > org.apache.struts.upload.CommonsMultipartRequestHandl
> > >er.h andleRequest
> > > (CommonsMultipartRequestHandler.java:219) at
> > > org.apache.struts.util.RequestUtils.populate(RequestU
> > >tils .java:1055) at
> > > org.apache.struts.action.RequestProcessor.processPopu
> > >late (RequestProcessor.java:798)
> > > at
> > > org.apache.struts.action.RequestProcessor.process
> > > (RequestProcessor.java:254)
> > > at
> > > org.apache.struts.action.ActionServlet.process
> > > (ActionServlet.java:1422)
> > > at
> > > org.apache.struts.action.ActionServlet.doPost(ActionS
> > >ervl et.java:523) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.ja
> > >va:7 60) at
> > > com.tavant.lg.controller.servlet.LoanGeniusFrontContr
> > >olle rServlet.service
> > > (LoanGeniusFrontControllerServlet.java:81)
> > > at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.ja
> > >va:8 53) at
> > > weblogic.servlet.internal.ServletStubImpl$ServletInvo
> > >cati onAction.run (ServletStubImpl.java:1053)
> > > at
> > > weblogic.servlet.internal.ServletStubImpl.invokeServl
> > >et (ServletStubImpl.java:387)
> > > at
> > > weblogic.servlet.internal.ServletStubImpl.invokeServl
> > >et (ServletStubImpl.java:305)
> > > at
> > > weblogic.servlet.internal.WebAppServletContext$Servle
> > >tInv ocationAction.run
> > > (WebAppServletContext.java:6291) at
> > > weblogic.security.acl.internal.AuthenticatedSubject.d
> > >oAs (AuthenticatedSubject.java:317)
> > > at
> > > weblogic.security.service.SecurityManager.runAs
> > > (SecurityManager.java:97)
> > > at
> > > weblogic.servlet.internal.WebAppServletContext.invoke
> > >Serv let (WebAppServletContext.java:3575)
> > > at
> > > weblogic.servlet.internal.ServletRequestImpl.execute
> > > (ServletRequestImpl.java:2573)
> > > at
> > > weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
> > >ava: 178) at
> > > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
> > >151)
> > >
> > > ==
> > >
> > >
> > > Any Suggestion or help will be highly appreciated.
> > >
> > >
> > > Best Regards
> > > Raman Garg
> >
> > ---
> >-- 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: File upload problem with Struts 1.1

2003-11-12 Thread Garg Raman \(SDinc\)
Hi Connor,

 Thanks for your reply. We have the commons-upload.jar in the lib of our
appliction directory and as well the struts.jar.

We also have set the Controller size to 2MB which is quite nice for any
file.

If you want to see the error coming itself we can pass on the URL for our
development server


Any other suggestion will be appreciated .

Looking forward to hear from you.


Cheers
Raman Garg
- Original Message -
From: "Caoilte O'Connor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 12, 2003 3:42 PM
Subject: Re: File upload problem with Struts 1.1


> have you got the commons-upload jar in your lib dir? you
> need that as well as the struts jars.
>
> Also check your controller (in struts-config) has something
> like this (though i think it's optional actually),
>
>maxFileSize="300K" />
>
>
>
> c
>
>
> On Wednesday 12 November 2003 08:18, Raman Garg wrote:
> > Hi,
> >
> >  We are getting error while file uploading using struts
> > 1.1. We have a demo code for file uploading which
> > demostrates the file uploading using struts. When we run
> > there application code works fine but  when we submit the
> > form by setting enctype for the form it throws the
> > following error. (Remember we are not doing anything in
> > the action or in the form just getteer and setters) so
> > issue is with enctype settings. It may use some internal
> > class while sending data using enctype. Please advise us
> > what to do.
> >
> > We downloaded the sample file uploading code from :
> > http://forum.exadel.com/viewtopic.php?t=120
> >
> > But according to me the problem can be with setting of
> > enctype.
> >
> > follwoing is the  code for our form
> >
> >  > enctype="multipart/form-data">
> >
> > 
> >
> > 
> > 
> > 
> >
> >
> >
> > java.lang.NoSuchMethodError:
> > org.apache.commons.fileupload.FileUpload.setSizeMax (I)V
> > at
> > org.apache.struts.upload.CommonsMultipartRequestHandler.h
> >andleRequest (CommonsMultipartRequestHandler.java:219)
> > at
> > org.apache.struts.util.RequestUtils.populate(RequestUtils
> >.java:1055) at
> > org.apache.struts.action.RequestProcessor.processPopulate
> > (RequestProcessor.java:798)
> > at
> > org.apache.struts.action.RequestProcessor.process
> > (RequestProcessor.java:254)
> > at org.apache.struts.action.ActionServlet.process
> > (ActionServlet.java:1422)
> > at
> > org.apache.struts.action.ActionServlet.doPost(ActionServl
> >et.java:523) at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:7
> >60) at
> > com.tavant.lg.controller.servlet.LoanGeniusFrontControlle
> >rServlet.service
> > (LoanGeniusFrontControllerServlet.java:81)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:8
> >53) at
> > weblogic.servlet.internal.ServletStubImpl$ServletInvocati
> >onAction.run (ServletStubImpl.java:1053)
> > at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet
> > (ServletStubImpl.java:387)
> > at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet
> > (ServletStubImpl.java:305)
> > at
> > weblogic.servlet.internal.WebAppServletContext$ServletInv
> >ocationAction.run (WebAppServletContext.java:6291)
> > at
> > weblogic.security.acl.internal.AuthenticatedSubject.doAs
> > (AuthenticatedSubject.java:317)
> > at
> > weblogic.security.service.SecurityManager.runAs
> > (SecurityManager.java:97)
> > at
> > weblogic.servlet.internal.WebAppServletContext.invokeServ
> >let (WebAppServletContext.java:3575)
> > at
> > weblogic.servlet.internal.ServletRequestImpl.execute
> > (ServletRequestImpl.java:2573)
> > at
> > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:
> >178) at
> > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> >
> > ==
> >
> >
> > Any Suggestion or help will be highly appreciated.
> >
> >
> > Best Regards
> > Raman Garg
>
>
> -
> 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: File upload problem with Struts 1.1

2003-11-12 Thread Caoilte O'Connor
have you got the commons-upload jar in your lib dir? you 
need that as well as the struts jars.

Also check your controller (in struts-config) has something 
like this (though i think it's optional actually),

  



c


On Wednesday 12 November 2003 08:18, Raman Garg wrote:
> Hi,
>
>  We are getting error while file uploading using struts
> 1.1. We have a demo code for file uploading which
> demostrates the file uploading using struts. When we run
> there application code works fine but  when we submit the
> form by setting enctype for the form it throws the
> following error. (Remember we are not doing anything in
> the action or in the form just getteer and setters) so
> issue is with enctype settings. It may use some internal
> class while sending data using enctype. Please advise us
> what to do.
>
> We downloaded the sample file uploading code from :
> http://forum.exadel.com/viewtopic.php?t=120
>
> But according to me the problem can be with setting of
> enctype.
>
> follwoing is the  code for our form
>
>  enctype="multipart/form-data">
>
> 
>
> 
> 
> 
>
>
>
> java.lang.NoSuchMethodError:
> org.apache.commons.fileupload.FileUpload.setSizeMax (I)V
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.h
>andleRequest (CommonsMultipartRequestHandler.java:219)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils
>.java:1055) at
> org.apache.struts.action.RequestProcessor.processPopulate
> (RequestProcessor.java:798)
> at
> org.apache.struts.action.RequestProcessor.process
> (RequestProcessor.java:254)
> at org.apache.struts.action.ActionServlet.process
> (ActionServlet.java:1422)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServl
>et.java:523) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:7
>60) at
> com.tavant.lg.controller.servlet.LoanGeniusFrontControlle
>rServlet.service
> (LoanGeniusFrontControllerServlet.java:81)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:8
>53) at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocati
>onAction.run (ServletStubImpl.java:1053)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet
> (ServletStubImpl.java:387)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet
> (ServletStubImpl.java:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInv
>ocationAction.run (WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs
> (AuthenticatedSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs
> (SecurityManager.java:97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServ
>let (WebAppServletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute
> (ServletRequestImpl.java:2573)
> at
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:
>178) at
> weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
> ==
>
>
> Any Suggestion or help will be highly appreciated.
>
>
> Best Regards
> Raman Garg


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



File upload problem with Struts 1.1

2003-11-12 Thread Raman Garg
Hi,

 We are getting error while file uploading using struts 1.1. We have a demo code for 
file uploading which demostrates the file uploading using struts. When we run there 
application code works fine but  when we submit the form by setting enctype for the 
form it throws the following error. (Remember we are not doing anything in the action 
or in the form just getteer and setters) so issue is with enctype settings. It may use 
some internal class while sending data using enctype. Please advise us what to do.

We downloaded the sample file uploading code from : 
http://forum.exadel.com/viewtopic.php?t=120 

But according to me the problem can be with setting of enctype.

follwoing is the  code for our form











java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax
(I)V
at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
(CommonsMultipartRequestHandler.java:219)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1055)
at org.apache.struts.action.RequestProcessor.processPopulate
(RequestProcessor.java:798)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at 
com.tavant.lg.controller.servlet.LoanGeniusFrontControllerServlet.service
(LoanGeniusFrontControllerServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet
(ServletStubImpl.java:305)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run
(WebAppServletContext.java:6291)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:97)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:3575)
at weblogic.servlet.internal.ServletRequestImpl.execute
(ServletRequestImpl.java:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
 
==


Any Suggestion or help will be highly appreciated.


Best Regards
Raman Garg

Re: Which version of Commons Digester released with Struts 1.1

2003-11-08 Thread Craig R. McClanahan
Quoting Philip Mark Donaghy <[EMAIL PROTECTED]>:

> I would like to debug a problem that I have with
> Digester. The error is :
> 
> java.lang.NoSuchMethodException: No such accessible
> method: addFormBeanConfig() on object:
> java.lang.String
> 

Well, the error message says that there's no addFormBeanConfig() method on the
java.lang.String class :-).

More seriously, there's no way to know what's really going on without seeing the
kinds of Digester rules you are configuring, and what kind of document you are
trying to parse.

> How can I get the version number that is distributed
> with Struts 1.1.
> 

The Struts release notes describe the included versions of all the commons
libraries.  In addition, the version information about JAR files in general
should be in a META-INF/MANIFEST.MF file in the jar (and it is there for all
the libraries that Struts includes).

> Phil
> 

Craig


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



RE: Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread Karr, David
Well, you should be able to open up the "commons-digester.jar" file and
inspect the "manifest.mf" file.  It has a version number, which appears
to be "1.5" in Struts 1.1.

> -Original Message-
> From: Philip Mark Donaghy [mailto:[EMAIL PROTECTED] 
> 
> I would like to debug a problem that I have with
> Digester. The error is :
> 
> java.lang.NoSuchMethodException: No such accessible
> method: addFormBeanConfig() on object:
> java.lang.String
> 
> How can I get the version number of Commons Digester
> that is distributed with Struts 1.1.
> 
> Phil

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



Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread Philip Mark Donaghy
I would like to debug a problem that I have with
Digester. The error is :

java.lang.NoSuchMethodException: No such accessible
method: addFormBeanConfig() on object:
java.lang.String

How can I get the version number of Commons Digester
that is distributed with Struts 1.1.

Phil

=
Java Web Application Architect
mapimage.com - Java and GIS
struts1.1:tomcat4.1.27:linuxRH8

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Re: Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread David Graham

--- Philip Mark Donaghy <[EMAIL PROTECTED]> wrote:
> I would like to debug a problem that I have with
> Digester. The error is :
> 
> java.lang.NoSuchMethodException: No such accessible
> method: addFormBeanConfig() on object:
> java.lang.String
> 
> How can I get the version number that is distributed
> with Struts 1.1.

It should be in the digester jar's MANIFEST file.

David

> 
> Phil
> 
> =
> Java Web Application Architect
> mapimage.com - Java and GIS
> struts1.1:tomcat4.1.27:linuxRH8
> 
> __
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread Philip Mark Donaghy
I would like to debug a problem that I have with
Digester. The error is :

java.lang.NoSuchMethodException: No such accessible
method: addFormBeanConfig() on object:
java.lang.String

How can I get the version number that is distributed
with Struts 1.1.

Phil

=
Java Web Application Architect
mapimage.com - Java and GIS
struts1.1:tomcat4.1.27:linuxRH8

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



RE: validwhen + struts 1.1

2003-11-06 Thread Marc Dugger
Blank"validwhen" is in CVS right now.  Check out nightly build if it's worth
it to you.

  -Original Message-
  From: Vara Prasad Reddy [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 06, 2003 5:32 AM
  To: struts
  Subject: validwhen + struts 1.1
  Importance: High


  I am currently using struts 1.1. Is there a way I can use the "validwhen"
functionality of future coming struts 1.2.

  Something like I can take only the class files of validwhen and use it
along with struts 1.1

  can someone detail me on this?

  Thanks in advance
  Vara Prasad


validwhen + struts 1.1

2003-11-06 Thread Vara Prasad Reddy



I am currently using struts 1.1. Is there a 
way I can use the "validwhen" functionality of future coming struts 
1.2.
 
Something like I can take only the class 
files of validwhen and use it along with struts 1.1
 
can someone detail me on this?
 
Thanks in advance
Vara Prasad


Re: Oracle data-source problem with struts 1.1

2003-10-30 Thread Yann Cébron
Hi,

I stumbled upon the same thing..

The property "url" is "URL" (all uppercase) with the OracleDataSource ;-)

HTH,
Yann

> I recently upgraded my struts setup to the 1.1 release version.
> Now I find that the data source used by my application to
> connect to the database no longer works:
>
>   
> 
>   
> value="jdbc:oracle:thin:user/[EMAIL PROTECTED]:1521:milk"/>
>   
>   
>   
>  value="oracle.jdbc.pool.OracleConnectionPoolDataSource" />
>   
>   
> 
>   
>
> If left like this, the container (tomcat) fails to start with
> the exception:
>
> java.lang.NullPointerException
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:258)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Unknown Source)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Unknown Source)
> at
>
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:163)
> at
>
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:18
7)
> at
>
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j
ava:813)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:389)
> at javax.servlet.GenericServlet.init(GenericServlet.java)
> at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown
> Source)
> at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
>
>
> I've tried adding type="oracle.jdbc.pool.OracleConnectionPoolDataSource"
> to the data source element. This causes the following exception:
>
> java.sql.SQLException: Invalid Oracle URL specified:
> OracleDataSource.makeURL
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
> at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
> at
> oracle.jdbc.pool.OracleDataSource.makeURL(OracleDataSource.java:966)
> at
> oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:134)
> at
> oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:108)
> at
> taco.struts.GetCourseWorkAction.execute(GetCourseWorkAction.java:39)
> at
>
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:449)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
>
> I've tried giving the URL without the username/password and setting them
> in properties. Nothing seems to work. Any suggestions would be very much
> appreciated. As I said, all this worked before upgrading the struts
> jars.
>
> Richard




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



Re: Multiple -- How to access? Struts 1.1

2003-10-30 Thread Lukas Bradley
It appears as if the properties file can not contain the "." character.
This makes sense, because properties are considered to be Class files at run
time.  The dot-notation probably gets a little confusing.

This works:





Where the properties file is named MyForum.properites.

Lukas


"Lukas Bradley" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I feel rather odd asking about this, because it seems it should be a VERY
> simple task.
>
> I've been using a single message-resource within my struts-config.xml
file.
> It's been working beautifully defined as:
> 
>
> When I have a file "MyTerms.properties" in my /WEB-INF/classes directory.
I
> access my properties as such:
>
> 
>
> And everything the world is perfect.
>
> Except that my properties file has filled up with hundreds of terms, and
it
> is getting impossible to manage.  To make this easier, I decided to define
> multiple message-resources in my struts-config.
>
> 
>
>  null="false" />
>
> 
>
> It is my understanding that the initial "MyTerms" file will be stored
under
> the default resources property, and the other two will be stored as
> "msg.errors" and "msg.forum" respectively.
>
> However, when I try to access them, I get nothing.
>
> 
>
> 
>
> 
>
> None of the tags above work.  I even tried
>
> 
>
> But that gives a NullPointerException.
>
> So I'm stumped.  In the logs, the property file is being loaded during
> startup, and my default property file still returns messages.
>
> Any help?
>
> Lukas




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



RE: Multiple -- How to access? Struts 1.1

2003-10-30 Thread Rabago, Hubert
I'm worried about getting the same problem, except I don't want to go
back into all my components to add "key" parameters later on.  Is there
a way to break down a huge global properties file into several files
which all get added to the global resources?
Is this a feature worth asking for/working on?

-Original Message-
From: Lukas Bradley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 30, 2003 10:26 AM
To: [EMAIL PROTECTED]
Subject: Multiple  -- How to access? Struts 1.1


Hi all,

I feel rather odd asking about this, because it seems it should be a
VERY simple task.

I've been using a single message-resource within my struts-config.xml
file. It's been working beautifully defined as: 

When I have a file "MyTerms.properties" in my /WEB-INF/classes
directory.  I access my properties as such:



And everything the world is perfect.

Except that my properties file has filled up with hundreds of terms, and
it is getting impossible to manage.  To make this easier, I decided to
define multiple message-resources in my struts-config.







It is my understanding that the initial "MyTerms" file will be stored
under the default resources property, and the other two will be stored
as "msg.errors" and "msg.forum" respectively.

However, when I try to access them, I get nothing.







None of the tags above work.  I even tried



But that gives a NullPointerException.

So I'm stumped.  In the logs, the property file is being loaded during
startup, and my default property file still returns messages.

Any help?

Lukas










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



Multiple -- How to access? Struts 1.1

2003-10-30 Thread Lukas Bradley
Hi all,

I feel rather odd asking about this, because it seems it should be a VERY
simple task.

I've been using a single message-resource within my struts-config.xml file.
It's been working beautifully defined as:


When I have a file "MyTerms.properties" in my /WEB-INF/classes directory.  I
access my properties as such:



And everything the world is perfect.

Except that my properties file has filled up with hundreds of terms, and it
is getting impossible to manage.  To make this easier, I decided to define
multiple message-resources in my struts-config.







It is my understanding that the initial "MyTerms" file will be stored under
the default resources property, and the other two will be stored as
"msg.errors" and "msg.forum" respectively.

However, when I try to access them, I get nothing.







None of the tags above work.  I even tried



But that gives a NullPointerException.

So I'm stumped.  In the logs, the property file is being loaded during
startup, and my default property file still returns messages.

Any help?

Lukas










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



Oracle data-source problem with struts 1.1

2003-10-30 Thread Richard Wheeldon
Hi,

I recently upgraded my struts setup to the 1.1 release version.
Now I find that the data source used by my application to
connect to the database no longer works:

  

  
  
  
  

  
  

  

If left like this, the container (tomcat) fails to start with
the exception:

java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:258)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Unknown Source)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Unknown Source)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:163)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:187)
at
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:813)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:389)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown
Source)
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)


I've tried adding type="oracle.jdbc.pool.OracleConnectionPoolDataSource"
to the data source element. This causes the following exception:

java.sql.SQLException: Invalid Oracle URL specified:
OracleDataSource.makeURL
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
at
oracle.jdbc.pool.OracleDataSource.makeURL(OracleDataSource.java:966)
at
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:134)
at
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:108)
at
taco.struts.GetCourseWorkAction.execute(GetCourseWorkAction.java:39)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:449)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)

I've tried giving the URL without the username/password and setting them
in properties. Nothing seems to work. Any suggestions would be very much
appreciated. As I said, all this worked before upgrading the struts
jars.

Richard


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



RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-29 Thread Ruta Thakkar
Hello folks,
Thanks for all ur replies on the upgrade problem
As David suggested, I have got the patch for weblogic 8.1 sp1 from bea.
The patch is called CR112789_81sp1.jar. It has nine tag related classes of the package 
weblogic.servlet.jsp

The compilation errors have now disappeared :)

Thanks again..

Regards,
Ruta
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 10:28 PM
To: Struts Users Mailing List
Subject: RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1
-Compilation errors

I doubt the JDK version upgrade is relevant here.  Are you using WLS 8.1
or 8.1 SP1?  Check with BEA support to get any relevant patches.  It's
possible that patch "CR112789" will resolve this.

-Original Message-
From: Ruta Thakkar 
Sent: Monday, October 27, 2003 9:09 PM
To: '[EMAIL PROTECTED]'
Subject: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation
errors



Dear All,

I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are 
upgrading to weblogic 8.1/jdk1.4

Here is the code that i was using earlier to pass multiple parameters in html:link:





<%
java.util.HashMap params = new java.util.HashMap();
params.put("method", "getAirportDetails");
params.put("airportCode", airportCode );
pageContext.setAttribute("paramsName", params);
%>










this works fine with Weblogic 6.1 and jdk 1.3, But when i upgraded to jdk 1.4 
/weblogic 8.1,
it gives me an error:
cannot resolve symbol airportCode at line : params.put("airportCode", airportCode );


I know that jdk1.4 is stricter when it comes to compilation, but does this imply that 
the bean:define tag is not compiant with jdk1.4??

Pls guide me on how to proceed forward


Regds
Ruta


DISCLAIMER:

Information contained and transmitted by this E-MAIL is proprietary to Hexaware 
Technologies Limited and is intended for use only by the individual or entity to which 
it is addressed and may contain information that is privileged, confidential or exempt 
from disclosure under applicable law. If this is a forwarded message, the content of 
this E-MAIL may not have been sent with the authority of the Company. If you are not 
the intended recipient, an agent of the intended recipient or a person responsible for 
delivering the information to the named recipient, you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this information in 
any way or in any manner is strictly prohibited. If you have received this 
communication in error, please delete this mail & notify us immediately at [EMAIL 
PROTECTED] 

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



trouble with TLD in struts 1.1

2003-10-28 Thread Ishmael Riles

I'm upgrading an app from strtuts 1.0.2 to 1.1 and I keep getting the
following or similar errors on JSP pages that include TLD's

It seems like there's a miss match between the struts.jar and the *.tld
files, So I downloaded the files again and replaced them all. And of course
I moved all the *.tld files in to the /WEB-INF directory. I also deleted the
struts-legacy.jar just to be sure that wasn't getting loaded. But it still
doesn't work.

Does anyone have any ideas about what might be happening?

---ERROR MESSAGE---

 Parsing of JSP File '/index.jsp' failed:




 /index.jsp(3): Error in using tag library uri='/WEB-INF/struts-html.tld'
prefix='html': The Tag class 'org.apache.struts.taglib.html.BaseTag' has no
setter method corresponding to TLD declared attribute 'server', (JSP 1.1
spec, 5.4.1)
probably occurred due to an error in /index.jsp line 3:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>




Tue Oct 28 18:10:33 PST 2003



my jsp page-

<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



...


Thanks, Ishmael



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



RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilatio n errors

2003-10-27 Thread Hajratwala, Nayan (N.)
I actually had this identical problem when upgrading to WL 8.  I was already using jdk 
1.4, so it must be a WS thing.  You should get the WL patch as well.

I switched my scriptlet to do the following, which worked fine.

params.put("airportCode", ((Airport)airportObj).getAirportCode() );

---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-Original Message-
From: Ruta Thakkar [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 10:39 AM
To: [EMAIL PROTECTED]
Subject: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors



Dear All,

I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are 
upgrading to weblogic 8.1/jdk1.4

Here is the code that i was using earlier to pass multiple parameters in html:link:





<%
java.util.HashMap params = new java.util.HashMap();
params.put("method", "getAirportDetails");
params.put("airportCode", airportCode );
pageContext.setAttribute("paramsName", params);
%>










this works fine with Weblogic 6.1 and jdk 1.3, But when i upgraded to jdk 1.4 
/weblogic 8.1,
it gives me an error:
cannot resolve symbol airportCode at line : params.put("airportCode", airportCode );


I know that jdk1.4 is stricter when it comes to compilation, but does this imply that 
the bean:define tag is not compiant with jdk1.4??

Pls guide me on how to proceed forward


Regds
Ruta


DISCLAIMER:

Information contained and transmitted by this E-MAIL is proprietary to Hexaware 
Technologies Limited and is intended for use only by the individual or entity to which 
it is addressed and may contain information that is privileged, confidential or exempt 
from disclosure under applicable law. If this is a forwarded message, the content of 
this E-MAIL may not have been sent with the authority of the Company. If you are not 
the intended recipient, an agent of the intended recipient or a person responsible for 
delivering the information to the named recipient, you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this information in 
any way or in any manner is strictly prohibited. If you have received this 
communication in error, please delete this mail & notify us immediately at [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: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Ruth, Brice
In this particular code, you'd need to use 
pageContext.getAttribute("airportCode"), in your scriptlet, I believe.

Ruta Thakkar wrote:

Dear All,

I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are upgrading to weblogic 8.1/jdk1.4

Here is the code that i was using earlier to pass multiple parameters in html:link:




<%
java.util.HashMap params = new java.util.HashMap();
params.put("method", "getAirportDetails");
params.put("airportCode", airportCode );
pageContext.setAttribute("paramsName", params);
%>









this works fine with Weblogic 6.1 and jdk 1.3, But when i upgraded to jdk 1.4 
/weblogic 8.1,
it gives me an error:
cannot resolve symbol airportCode at line : params.put("airportCode", airportCode );
I know that jdk1.4 is stricter when it comes to compilation, but does this imply that the bean:define tag is not compiant with jdk1.4??

Pls guide me on how to proceed forward

Regds
Ruta
DISCLAIMER:

Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies Limited and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at [EMAIL PROTECTED] 

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Karr, David
I doubt the JDK version upgrade is relevant here.  Are you using WLS 8.1
or 8.1 SP1?  Check with BEA support to get any relevant patches.  It's
possible that patch "CR112789" will resolve this.

> -Original Message-
> From: Ruta Thakkar [mailto:[EMAIL PROTECTED] 
> 
> Dear All,
> 
> I have been using Struts 1.1(stable release) with weblogic 
> 6.1,jdk1.3..now we are upgrading to weblogic 8.1/jdk1.4
> 
> Here is the code that i was using earlier to pass multiple 
> parameters in html:link:
> 
> 
>  property="airportCode" />
> 
> 
> <%
>   java.util.HashMap params = new 
> java.util.HashMap();
>   params.put("method", "getAirportDetails");
>   params.put("airportCode", airportCode );
>   pageContext.setAttribute("paramsName", params);
> %>
> 
>  property="airportCode" />
> 
> 
> 
>   
> 
> 
> 
> 
> this works fine with Weblogic 6.1 and jdk 1.3, But when i 
> upgraded to jdk 1.4 /weblogic 8.1,
> it gives me an error:
> cannot resolve symbol airportCode at line : 
> params.put("airportCode", airportCode );
> 
> 
> I know that jdk1.4 is stricter when it comes to compilation, 
> but does this imply that the bean:define tag is not compiant 
> with jdk1.4??
> 
> Pls guide me on how to proceed forward
> 
> 
> Regds
> Ruta
> 
> 
> DISCLAIMER:
> 
> Information contained and transmitted by this E-MAIL is 
> proprietary to Hexaware Technologies Limited and is intended 
> for use only by the individual or entity to which it is 
> addressed and may contain information that is privileged, 
> confidential or exempt from disclosure under applicable law. 
> If this is a forwarded message, the content of this E-MAIL 
> may not have been sent with the authority of the Company. If 
> you are not the intended recipient, an agent of the intended 
> recipient or a person responsible for delivering the 
> information to the named recipient, you are notified that any 
> use, distribution, transmission, printing, copying or 
> dissemination of this information in any way or in any manner 
> is strictly prohibited. If you have received this 
> communication in error, please delete this mail & notify us 
> immediately at [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]



upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Ruta Thakkar

Dear All,

I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are 
upgrading to weblogic 8.1/jdk1.4

Here is the code that i was using earlier to pass multiple parameters in html:link:





<%
java.util.HashMap params = new java.util.HashMap();
params.put("method", "getAirportDetails");
params.put("airportCode", airportCode );
pageContext.setAttribute("paramsName", params);
%>










this works fine with Weblogic 6.1 and jdk 1.3, But when i upgraded to jdk 1.4 
/weblogic 8.1,
it gives me an error:
cannot resolve symbol airportCode at line : params.put("airportCode", airportCode );


I know that jdk1.4 is stricter when it comes to compilation, but does this imply that 
the bean:define tag is not compiant with jdk1.4??

Pls guide me on how to proceed forward


Regds
Ruta


DISCLAIMER:

Information contained and transmitted by this E-MAIL is proprietary to Hexaware 
Technologies Limited and is intended for use only by the individual or entity to which 
it is addressed and may contain information that is privileged, confidential or exempt 
from disclosure under applicable law. If this is a forwarded message, the content of 
this E-MAIL may not have been sent with the authority of the Company. If you are not 
the intended recipient, an agent of the intended recipient or a person responsible for 
delivering the information to the named recipient, you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this information in 
any way or in any manner is strictly prohibited. If you have received this 
communication in error, please delete this mail & notify us immediately at [EMAIL 
PROTECTED] 

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



RE: "could not deserialize the context attribute .. " (configurat ion: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Shay Cohen
10nx.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 19, 2003 4:25 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: "could not deserialize the context attribute .. "
(configuration: struts 1.1 + web logic 8.1), is it a known bug ?


This is a WL specific issue
"servlet 2.3 spec disallow non serialized objects in the PageContext so
built this into the current
release of Weblogic."

Later on Matt Heaton remarks:
"Struts source and it's trying to use objects which aren't serializable as
JSP page context attributes"

Craig McClanahan replies:
"Yep.  Looking more closely at the error message, it is complaining about a
non-Serializable *context* attribute, not a *session* attribute.  I, like
others, jumped to the wrong conclusion there. The spec provides no
prohibitions on this -- only a warning that you cannot
use a context attribute to share information globally in your application
(the
way that the example app does with its pseudo-database) in a distributed
nvironment.
Is there by chance some WebLogic specific configuration property you have
set that makes it think this (or maybe all) applications should be treated
as distributable?"

A Later comment by Craig:
"I'm afraid that I see no such requirement in the servlet 2.3 spec (and I'm
on
the expert group that came up with it :-).  The only restrictions on
Serializable attributes in the spec itself relate to *session* attributes,
not
*context* attributes.  And that restriction only applies when you mark your
app
as .

Note also that the WebLogic response quoted in the message from Ruslan gave
an
entirely different reasoning (their application server requires all
attributes
to be Serializable if you use the "reload on modify" feature).  That's an
entirely reasonable restriction for WebLogic to place, based on their
container's internal architecture.  It's not, however, a spec compliance
issue.

That all being said, I'm looking at ways to make MessageResources a
Serializable
object.  Unfortunately, java.util.ResourceBundle (which it relies on) is
*not*
Serializable, so a different solution to that is going to be required.

The pseudo-database in the Struts example application (which has nothing to
do
with the framework itself) is not Serializable, and will *not* operate
correctly
in a distributed environment.  I'm NOT planning on changing that in the
short
term, because it's only there to give you a quick "proof of concept" that
Struts
is working, plus some examples of some Struts-related development
techniques."

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01017.html

Weblogic Solution:
"WLS comes with reload-on-modify turned on out of the box. You can turn it
off by setting reload periods to -1 (never check). There are two separate
params for JSP and servlets.
The one for JSPs is set in weblogic.xml descriptor,
the one for servlets is set in the console."

i.e. Turn off reload-on-modify

Sorry for the long-winded response!

-Martin
- Original Message - 
From: "Marc Dugger" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, October 19, 2003 8:36 AM
Subject: RE: "could not deserialize the context attribute .. "
(configuration: struts 1.1 + web logic 8.1), is it a known bug ?


> I had a somewhat similar issue with Tomcat when it came to serializing a
> FormFile.  I got around this by extending the MultipartRequestHandler and
> implementing Serializable.  It appears that you could do the same with the
> RequestProcessor.  Be sure to add this to your struts-config.xml:
>
>  nocache="true" processorClass="your.package.CustomRequestProcessor"
> debug="9" />
>
>
> > -Original Message-
> > From: Shay Cohen [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, October 19, 2003 3:17 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: "could not deserialize the context attribute .. "
> > (configuration: struts 1.1 + web logic 8.1), is it a known bug ?
> >
> >
> > Hi,
> >
> > I've encountered lately the following exception "Could not deserialize
> > context attribute". Reported on the following attribute:
> >
> >
> > Attribute: org.apache.struts.action.REQUEST_PROCESSOR
(object:
> > org.apache.struts.tiles.TilesRequestProcessor)
> >
> > After reading old emails concerning the subject, I've learned that this
is
> > due to weblogic restrictions that require context attributes to be
> > serializable.
> >
> >
> > Is there any workaround to this problem? will it be solved  ?
> >
> > --

Re: "could not deserialize the context attribute .. " (configuration: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Martin Gainty

This is a WL specific issue
"servlet 2.3 spec disallow non serialized objects in the PageContext so
built this into the current
release of Weblogic."

Later on Matt Heaton remarks:
"Struts source and it's trying to use objects which aren't serializable as
JSP page context attributes"

Craig McClanahan replies:
"Yep.  Looking more closely at the error message, it is complaining about a
non-Serializable *context* attribute, not a *session* attribute.  I, like
others, jumped to the wrong conclusion there. The spec provides no
prohibitions on this -- only a warning that you cannot
use a context attribute to share information globally in your application
(the
way that the example app does with its pseudo-database) in a distributed
nvironment.
Is there by chance some WebLogic specific configuration property you have
set that makes it think this (or maybe all) applications should be treated
as distributable?"

A Later comment by Craig:
"I'm afraid that I see no such requirement in the servlet 2.3 spec (and I'm
on
the expert group that came up with it :-).  The only restrictions on
Serializable attributes in the spec itself relate to *session* attributes,
not
*context* attributes.  And that restriction only applies when you mark your
app
as .

Note also that the WebLogic response quoted in the message from Ruslan gave
an
entirely different reasoning (their application server requires all
attributes
to be Serializable if you use the "reload on modify" feature).  That's an
entirely reasonable restriction for WebLogic to place, based on their
container's internal architecture.  It's not, however, a spec compliance
issue.

That all being said, I'm looking at ways to make MessageResources a
Serializable
object.  Unfortunately, java.util.ResourceBundle (which it relies on) is
*not*
Serializable, so a different solution to that is going to be required.

The pseudo-database in the Struts example application (which has nothing to
do
with the framework itself) is not Serializable, and will *not* operate
correctly
in a distributed environment.  I'm NOT planning on changing that in the
short
term, because it's only there to give you a quick "proof of concept" that
Struts
is working, plus some examples of some Struts-related development
techniques."

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01017.html

Weblogic Solution:
"WLS comes with reload-on-modify turned on out of the box. You can turn it
off by setting reload periods to -1 (never check). There are two separate
params for JSP and servlets.
The one for JSPs is set in weblogic.xml descriptor,
the one for servlets is set in the console."

i.e. Turn off reload-on-modify

Sorry for the long-winded response!

-Martin
- Original Message - 
From: "Marc Dugger" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, October 19, 2003 8:36 AM
Subject: RE: "could not deserialize the context attribute .. "
(configuration: struts 1.1 + web logic 8.1), is it a known bug ?


> I had a somewhat similar issue with Tomcat when it came to serializing a
> FormFile.  I got around this by extending the MultipartRequestHandler and
> implementing Serializable.  It appears that you could do the same with the
> RequestProcessor.  Be sure to add this to your struts-config.xml:
>
>  nocache="true" processorClass="your.package.CustomRequestProcessor"
> debug="9" />
>
>
> > -Original Message-
> > From: Shay Cohen [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, October 19, 2003 3:17 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: "could not deserialize the context attribute .. "
> > (configuration: struts 1.1 + web logic 8.1), is it a known bug ?
> >
> >
> > Hi,
> >
> > I've encountered lately the following exception "Could not deserialize
> > context attribute". Reported on the following attribute:
> >
> >
> > Attribute: org.apache.struts.action.REQUEST_PROCESSOR
(object:
> > org.apache.struts.tiles.TilesRequestProcessor)
> >
> > After reading old emails concerning the subject, I've learned that this
is
> > due to weblogic restrictions that require context attributes to be
> > serializable.
> >
> >
> > Is there any workaround to this problem? will it be solved  ?
> >
> > -
> > 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: "could not deserialize the context attribute .. " (configuration: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Marc Dugger
I had a somewhat similar issue with Tomcat when it came to serializing a
FormFile.  I got around this by extending the MultipartRequestHandler and
implementing Serializable.  It appears that you could do the same with the
RequestProcessor.  Be sure to add this to your struts-config.xml:




> -Original Message-
> From: Shay Cohen [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 19, 2003 3:17 AM
> To: '[EMAIL PROTECTED]'
> Subject: "could not deserialize the context attribute .. "
> (configuration: struts 1.1 + web logic 8.1), is it a known bug ?
>
>
> Hi,
>
> I've encountered lately the following exception "Could not deserialize
> context attribute". Reported on the following attribute:
>
>
> Attribute: org.apache.struts.action.REQUEST_PROCESSOR (object:
> org.apache.struts.tiles.TilesRequestProcessor)
>
> After reading old emails concerning the subject, I've learned that this is
> due to weblogic restrictions that require context attributes to be
> serializable.
>
>
> Is there any workaround to this problem? will it be solved  ?
>
> -
> 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]



"could not deserialize the context attribute .. " (configuration: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-19 Thread Shay Cohen
Hi,

I've encountered lately the following exception "Could not deserialize
context attribute". Reported on the following attribute:


Attribute: org.apache.struts.action.REQUEST_PROCESSOR (object:
org.apache.struts.tiles.TilesRequestProcessor)

After reading old emails concerning the subject, I've learned that this is
due to weblogic restrictions that require context attributes to be
serializable.
 

Is there any workaround to this problem? will it be solved  ?

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



"could not deserialize the context attribute .. " (configuration: struts 1.1 + web logic 8.1), is it a known bug ?

2003-10-16 Thread Shay Cohen
Hi,

 

I've encountered lately the following exception "Could not deserialize
session date "  On the following attribute:



Attribute: org.apache.struts.action.REQUEST_PROCESSOR (object:
org.apache.struts.tiles.TilesRequestProcessor)

 

After reading old emails concerning the subject, I've learned that this is
due to weblogic restrictions that any context

attribute must be serializable.

 

 

My question is:

 

Is there any workaround to this problem? will it be solved  ?



Re: struts 1.1 and multiple applications

2003-10-15 Thread Craig R. McClanahan
Scott Tiger wrote:

We have one struts application working on a weblogic server 5.1 service pack 13. 

I have put all the struts and apache libraries(struts.jar and commo**.jar, xerces.jar etc ) in the server class path. They are  not in the web-inf/lib directory.

This is not a supported configuration.

 http://jakarta.apache.org/struts/userGuide/configuration.html#config_add

Craig



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


  1   2   3   4   5   6   7   8   9   10   >