Re: re-Logon after session timeout

2001-09-06 Thread Jon Brisbin

this sounds like you're wanting to use Tomcat's role-based
authentication...if you look in the example webapp that comes with the
tomcat distro, you can find settings in web.xml that set up a secure
area...if you edit tomcat's server.xml file and find the "Realm" stuff, you
can set up an authentication scheme that uses a form-based login...

if you protect urls of say "/member/whatever" then when anyone requests
"/member/whatever/stuff?query-string" then if they're not logged in, it
forwards them to your login page, then if successful sends the to whatever
they originally requested...

this functionality is part of tomcat and requires no extra code on your
part...

jb

- Original Message -
From: "Ralph vd Houdt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 9:18 AM
Subject: Re: re-Logon after session timeout


> Too bad, I'm using Tomcat 3.2.2 together with JBoss.
>
> Keep me in touch with your development it sound good.
>
> Greetings Ralph
>
> - Original Message -
> From: "Erik Hatcher" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 06, 2001 3:29 PM
> Subject: Re: re-Logon after session timeout
>
>
> > I'm accomplishing this very thing using Resin's Servlet 2.3 Filter
> support.
> > The filter determines the user is not logged in, saves the requesting
URI
> in
> > a session attribute, and forwards to the login page.   The login action
> > checks for the existence of the session attribute with the saved URI and
> > forwards to that upon a successful login.
> >
> > I'm sure it could be done in a Servlet 2.2 environment also, but would
> > require more effort.
> >
> > Erik
> >
> >
> > - Original Message -
> > From: "Ralph vd Houdt" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, September 06, 2001 12:09 AM
> > Subject: re-Logon after session timeout
> >
> >
> > > Hi All,
> > >
> > > I developed a struts application and re-used the checkLogon tag from
the
> > > login example from Ted Husted. It works quite well but when a client
> loses
> > > the session in case of a session timeout and a new request is done the
> > > Action is cancelled because the User object isn't in the session
> anymore.
> > Is
> > > there a possibility to:
> > >
> > > - route the user to the logonform. (And re-add the User object)
> > > - after logon, repost the initial request.
> > > - continue based on the initial request
> > >
> > > Greetings Ralph.
> > >
> > >
> >
> >
> >
>
>




Re: Really need you to get me out of a jam!!!!

2001-08-28 Thread Jon Brisbin

also double-check your classpath and make *sure* that struts.jar is nowhere
in it at server startup...it should only be in the WEB-INF/lib directory and
not explicitly referenced by any script, or put in the CLASSPATH...

jb

- Original Message -
From: "Roumen Ganeff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 7:38 AM
Subject: RE: Really need you to get me out of a jam


> check to see if you have the file application.resources in your classpath,
> or where the web server expects it to be
>
> Ganeff
>
> -Original Message-
> From: Rakesh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 28, 2001 3:24 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Really need you to get me out of a jam
>
>
> check for struts.jar in the classpath or an error in your struts-config
(may
> be an unclosed tag or a missing parenthesis ).
>
> good luck
>
>  Rakesh
>
> [EMAIL PROTECTED]
>
>
> - Original Message -
> From: "Alex Colic" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 28, 2001 2:44 AM
> Subject: Really need you to get me out of a jam
>
>
> > Hi,
> >
> > Big problem. I have a major demo tommorow and I can't get my web apps to
> work with struts. I am
> > using Tomcat 3.2 + the latest nightly build of struts. I needed the
> iterate tag. All my apps work
> > within JBuilder but I cannot get them to work on there own. Every time I
> access a page I get an
> > error that the message keys cannot be found.
> >
> > eg:
> >
> > exception javax.servlet.jsp.JspException: Missing message for key
> logon.title.bar
> > Message Missing message for key logon.title.bar
> >
> > Localized Message Missing message for key logon.title.bar
> >
> > Stack trace javax.servlet.jsp.JspException: Missing message for
> key logon.title.bar
> > at
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298)
> > at
> >
>
_0002fpwEmpLogin_0002ejsppwEmpLogin_jsp_0._jspService(_0002fpwEmpLogin_0002e
> jsppwEmpLogin_jsp_0.java:115)
> > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> >
> > In my web.xml file I have:
> >
> > 
> >   
> > action
> >
> com.popware.rd.action.genericActionServlet
> > 
> >   application
> >   euApplicationResources
> > 
> >
> > and the euApplicationResources file is in the class directory in
web-inf.
> I can read the struts
> > documentation but the struts-example gives me the same error.
> >
> > I downloaded Tomcat 4 beta 7 and that did not help.
> >
> > Can someone tell me exactly how to get the latest version of struts to
> work with tomcat?
> >
> > Any help is figuring this out is appreciated.
> >
> > Alex
> >
> >
> >
> >
> >
> >
> >
> >
> > =
> > Regards
> >
> > Alex Colic, HBA, B. Ed
> > PopWare Inc. "Driving down the cost of conversions!"
> > E-Mail: [EMAIL PROTECTED]
> > Tel: 1-905-777-8171 ext. 104
> > Fax: 1-905-777-0132
> >
> > __
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
>
>




Re: Really need you to get me out of a jam!!!!

2001-08-28 Thread Jon Brisbin

this appears to be an XML parser issue...did you put jaxp.jar/parser.jar in
catalina's lib/ directory??  alternatively you can use xerces...but catalina
doesn't provide an xml parser to your apps by default, so you have to put
something in lib/ for them to be able to use the messages and numerous other
small problems that will show up without it...

jb

- Original Message -
From: "Roumen Ganeff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 7:38 AM
Subject: RE: Really need you to get me out of a jam


> check to see if you have the file application.resources in your classpath,
> or where the web server expects it to be
>
> Ganeff
>
> -Original Message-
> From: Rakesh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 28, 2001 3:24 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Really need you to get me out of a jam
>
>
> check for struts.jar in the classpath or an error in your struts-config
(may
> be an unclosed tag or a missing parenthesis ).
>
> good luck
>
>  Rakesh
>
> [EMAIL PROTECTED]
>
>
> - Original Message -
> From: "Alex Colic" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 28, 2001 2:44 AM
> Subject: Really need you to get me out of a jam
>
>
> > Hi,
> >
> > Big problem. I have a major demo tommorow and I can't get my web apps to
> work with struts. I am
> > using Tomcat 3.2 + the latest nightly build of struts. I needed the
> iterate tag. All my apps work
> > within JBuilder but I cannot get them to work on there own. Every time I
> access a page I get an
> > error that the message keys cannot be found.
> >
> > eg:
> >
> > exception javax.servlet.jsp.JspException: Missing message for key
> logon.title.bar
> > Message Missing message for key logon.title.bar
> >
> > Localized Message Missing message for key logon.title.bar
> >
> > Stack trace javax.servlet.jsp.JspException: Missing message for
> key logon.title.bar
> > at
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298)
> > at
> >
>
_0002fpwEmpLogin_0002ejsppwEmpLogin_jsp_0._jspService(_0002fpwEmpLogin_0002e
> jsppwEmpLogin_jsp_0.java:115)
> > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> >
> > In my web.xml file I have:
> >
> > 
> >   
> > action
> >
> com.popware.rd.action.genericActionServlet
> > 
> >   application
> >   euApplicationResources
> > 
> >
> > and the euApplicationResources file is in the class directory in
web-inf.
> I can read the struts
> > documentation but the struts-example gives me the same error.
> >
> > I downloaded Tomcat 4 beta 7 and that did not help.
> >
> > Can someone tell me exactly how to get the latest version of struts to
> work with tomcat?
> >
> > Any help is figuring this out is appreciated.
> >
> > Alex
> >
> >
> >
> >
> >
> >
> >
> >
> > =
> > Regards
> >
> > Alex Colic, HBA, B. Ed
> > PopWare Inc. "Driving down the cost of conversions!"
> > E-Mail: [EMAIL PROTECTED]
> > Tel: 1-905-777-8171 ext. 104
> > Fax: 1-905-777-0132
> >
> > __
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
>
>




method reflection in action classes

2001-08-19 Thread Jon Brisbin

I use a BaseAction class that does all my normal struts stuff like setting
the request, doing authentication checking, managing the object cache,
etc...and have been contemplating implementing this architecture:

In my form, I already use an "action" variable that tells me what i'm doing
in my action class...probably the way most folks do it...but I'd like to
have an action variable that might be like:
"addSomething,addAnother,editSomethingElse"...the action class would then
reflect those methods and call them in order...that way my "real" action
classes only subclass my base class and implement any of the methods i
choose to call from the action variable...i use object-wide variables for
stuff like the request, mapping, etc...

my question, though, is if this would violate any major design concepts, or
introduce an unweildy performance bottleneck in my action classes...i
already use reflection in my form validation code, but that's just
getReadMethod stuff, so no big deal...i was wondering if anyone has
experience with all-around performance with reflection in action classes??
i know someone posted a while back that they had done some testing and found
an insignificant difference between static method calls and reflected stuff,
but i didn't know what *types* of reflection that entailed...i would
basically have to do a lot of getMethod()s, which i've heard can be quite
expensive...

any thoughts/help would be appreciated! :-)

Jon Brisbin
www.jbrisbin.net





disallowing access to action class input forms

2001-08-05 Thread Jon Brisbin

I'm not sure how elegant this solution is, but I thought I'd post this for
the archives...

To disallow "normal" access to your action class' .jsp pages, I've
disallowed access to anything .jsp through normal access...I've put them in
the WEB-INF directory before, but on windows, you'll run into major problems
if your template files get below say three directories deep (the generated
filename becomes too long)...my solution was to use the .jhtml extension for
"normal" jsp pages, while using the .jsp extension just for action class
pages, and put them in the normal directory structure, which reduces the
length of the generated filename for jsp pages...this seems to work ok for
me since those pages are always loaded internally and not redirected to...

Jon Brisbin
www.jbrisbin.net
Lamar, MO




Re: custom XSL struts taglib (was: Re: Taglibs decrease theseparation between designer and developer?)

2001-08-01 Thread Jon Brisbin

> Jakarta TagLibs also have a taglib that does XSL, have you thought about
> merging your result with theirs?

no, but that's certainly an idea...i wanted a little bit different approach
than the jakarta taglib, so i just rolled my own...

> What I think is the big disadvantage with using XSL it is very complex
> to use, especially if you want to take advantage of its more powerful
> features.  If designers are going to have problems understanding
> scriplets and velocity, they're not going to fair much better with XSL
> (probably worse, in fact).

although this might be true now, wysiwyg XSL editors are coming into being
as we speak (the ibm xsl editor is actually pretty neat :-)...the XML/XSL
approach and structure is why i prefer it over scriplets or custom
tags...the whole XML/XSL approach is very OO-centric, where scriptlets or
custom iterative tags are basically hold-overs from structured programming
days...of course, if it ain't broke, yada, yada ;-)

i also find a smaller code size for the same functions, as well as faster
performance in using limited xsl for certain things...especially for ejb
stuff that iterates over records...wow, a big difference ;-)

xml/xsl also makes my EJB infrastructure much more open, as i can request
the data any number of ways and use it in disparate systems and in multiple
instances, without having to code special taglibs for various things...just
a big template file with lots of little stuff in it seems easier to manage
for me than taglib classes, .tld files, etc...

> One good thing about having model data as XML, however, is that you can
> utilize the xpath to access the XML data if you don't need all the bells
> and whistles of XSL

actually i like all the bells and whistles ;-)...

it ain't for everyone, but XSL seems much closer to something my designers
in the past have understood easily...they're more intimidated when they see
a lot of '%' signs ;-)  i also off-load some work from myself by using xsl
instead of taglibs, as a java programmer doesn't have to do that
part...anyone that knows xml and xsl can do that...

Jon Brisbin
www.jbrisbin.net





Re: Struts and Tomcat 4.0 Beta 6

2001-08-01 Thread Jon Brisbin

i haven't successfully got a struts app working in catalina...i have
numerous classloader issues...i can't even get the example app to work
right...i also use xsl, so that's an issue for me, but the basic app itself
doesn't like catalina's classloading very well...not sure on the
specifics...

if you get it working, though, please let me know so i can try it again :-)

Jon Brisbin
www.jbrisbin.net


- Original Message -
From: "Nicky Eshkenazi" <>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 4:51 PM
Subject: Struts and Tomcat 4.0 Beta 6


> Hey guys,
>
> Has anybody tried the Struts with the latest Tomcat 4.0 Beta 6?
> Are there any issues/ problems?
>
> thanks,
> Nicky
>




custom XSL struts taglib (was: Re: Taglibs decrease the separation between designer and developer?)

2001-08-01 Thread Jon Brisbin

Thought I'd put a plug in for my own custom XSL taglib I use in my STRUTS
apps...it helps me clean up the whole scriplet/custom tag thing by letting
me use plain 'ol XSLT templates to output my forms with pre-filled values,
etc...from my EJB's...i also use the struts form tags and a custom property
copier that copies things from my ejb to my form, but this is considerably
slower than using my session bean to extract raw xml from a sql statement,
then transform it into a list or form...

this XSL tag caches the compiled stylesheet into the application scope,
keyed on the filename...this to increase performance, which it does well...

you can nest xml tags and scriptlets in the body of the tag to get dynamic
xml (you could theoretically do a full page of xml this way, with no HTML
whatever...i just haven't migrated that far yet to have my app do that), or
you can get your xml from an attribute...and transform *into* an attribute,
if you wish...

i'm quite pleased with the results of incorporating my xsl into struts this
way...this might also help some out there that would like to try it
too...email me if you want the source code and .tld file...

Jon Brisbin
www.jbrisbin.net
Lamar, MO

- Original Message -
From: "Greg Maletic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 3:07 PM
Subject: RE: Taglibs decrease the separation between designer and developer?


> Hi, Bill--
>
> I completely agree that Struts Taglibs are much cleaner than the pure HTML
> alternative, so I concur that your "select box" example is very simple and
> nice.  I love all of the Struts form input tags, all of which are a real
> pain to implement with pure HTML and JSP.
>
> But I don't think I'm exaggerating very much when I say that the Struts
> taglibs are a new language:  they include tags to define variables,
looping
> constructs, and if-then-else constructs, none of which correspond to
actual
> HTML tags, and all of which I'll need to employ if I'm to completely rid
my
> JSPs of scriptlets.  I view that as pretty much a complete language.  So
my
> novice reaction to the Struts taglibs is that I've swapped a language that
I
> know (Java) for a language that I don't know (Struts taglibs), and my
> designer has swapped a language that he knows (pure HTML) for a language
he
> doesn't know (Struts taglibs), at the benefit of giving the designer the
> potential to write virtual code when I know that he--and at least 95% of
the
> designers I've worked with--won't write view code that I would trust no
> matter what the language is.  (I'm not claiming they're stupid.  My
> experience has been similar to Chris's earlier post, where I let them
> control the look and feel and I write the view code.)
>
> I'm not saying that the Struts taglibs are useless by any stretch of the
> imagination.  But the real benefit I see with taglibs is to clean up the
> JSPs, not usher in a new age of empowered designers capable of building
> views with no developer assistance.
>
> I should have prefaced my comments by saying that I'm quite new to Struts,
> am not an expert, so my comments should be taken in that light.  I am
> impressed with Struts and am absolutely not giving up on it.  My beef
isn't
> so much with Struts as it is with the whole concept of taglibs being "the
> solution" to the MVC separation problem.  The only solution to this
problem
> is to keep business logic out of the view, period.  Scriptlets don't solve
> the problem, but I don't think taglibs do either.  The only real solution
I
> see is developer restraint.
>
> --Greg
>
> ==
> Greg Maletic
> Chief Technical Officer
> Zero G Software, Inc.
> 514 Bryant Street
> San Francisco, CA 94107
>
> tel: +1.415.512.7771 x303
> fax: +1.415.723.7244
> mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> http://www.ZeroG.com <http://www.ZeroG.com>
>
> The leading provider of multi-platform software deployment solutions.
> ==
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> rg]On Behalf Of Bill Clinton
> Sent: Wednesday, August 01, 2001 12:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Taglibs decrease the separation between designer and
> developer?
>
>
> Greg,
> I think you are exagerating a bit when you say that "Struts
> taglibs--and other taglibs--introduce, in essence, yet another language
> that we all have to learn."  Comparing a handful of scripting tags that,
> for the most part, correspond directly to existing html tags to the
> learning of a language is a bit much.
>

Re: Custom tags hiding JSP error messages

2001-08-01 Thread Jon Brisbin

i've had this problem also...what i've found, though, is that the root error
will get logged into the tomcat/logs/servlet.log file...it won't display in
the jboss log, that's the jsp exception...check your tomcat log to see if it
logged it there (my action classes always log a NPE to the tomcat log)...

Jon Brisbin

- Original Message -
From: "Jamie Tsao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 11:44 AM
Subject: Custom tags hiding JSP error messages


Custom tags hiding JSP error messages

Hi,

I was curious whether other people encountered this problem.  I've used tag
libraries before, and am currently using struts' template tag library.  I
have found that runtime JSP errors, such as null pointer exceptions, are
hard to debug because the custom tags "hide" the error message.  The only
message that usually comes up is a JSPException, which isn't really too
helpful.  Without custom tags, you get exact line numbers with exact errors
(NullPointerException).  Perhaps I'm doing something wrong.  Can anybody
give an opinion ?

Thanks,

Jamie






Re: Indexed tags - Dave Hays code

2001-07-30 Thread Jon Brisbin

looks like you need xalan-j *2* in your classpath when building...the
javax.xml.transform stuff is a new addition to xalan...

Jon Brisbin
Lamar, MO

- Original Message -
From: "Nathan Coast" <[EMAIL PROTECTED]>
To: "Struts-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 9:37 AM
Subject: Indexed tags - Dave Hays code


> Hi,
>
> I'm trying to use the Indexed tags from Dave Hays:
> http://husted.com/about/struts/indexed-tags.htm
>
> anyone got a replacement struts.jar with the relevant code changes in?
>
> It's not that I'm lazy, I'm just having trouble getting the code built
using
> ant 1.3
>
> java.lang.NoClassDefFoundError: javax/xml/transform/Source
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.ja
> va:229)
> at
> org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:13
> 7)
> at org.apache.tools.ant.Target.execute(Target.java:153)
> at org.apache.tools.ant.Project.runTarget(Project.java:898)
> at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> at org.apache.tools.ant.Project.executeTargets(Project.java:510)
> at org.apache.tools.ant.Main.runBuild(Main.java:421)
> at org.apache.tools.ant.Main.main(Main.java:149)
>
>
>
>
> **
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.mimesweeper.com
> **




Re: Hot to get the iterated objects ?

2001-07-24 Thread Jon Brisbin

it looks like you just need to change your logic:iterate to point to
name="rec" without specifing a property...

jb

- Original Message -
From: Raghvendra Sinha <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 2:03 PM
Subject: RE: Hot to get the iterated objects ?


>
> > I'm new to struts, I'm trying to use the iterate tag with to retrieve
data
> > from a db and display it. We have the functionality working with our
java
> > classes and now I'm trying to incorporate it using struts. The following
> > code illustrates how we are doing it now.
> >
> > <%
> > try {
> > sai.db.IRecordIterator it =
> > invoiceService.getStatusSummary();
> > while (it.next()!=null) {
> > aig.its.db.RecordInvoice rec =
> > (aig.its.db.RecordInvoice) it.current();
> >
> > %>
> > <%=rec.getGroupCount ()%>
> > $<%=rec.getGroupSum
> >
(aig.its.db.Tables.Invoice.InvoiceTotal).setScale(2,java.math.BigDecimal.R
> > OUND_DOWN)%>
> > <%
> >
> > if (currentSwapColor==0) currentSwapColor=1; else
> > currentSwapColor=0;
> > }
> > }
> > catch (java.sql.SQLException E) {
> > %><%=E.toString()%><%
> > }
> > %>.
> >
> > Now I'm trying to convert the above iteration using the iterate tag of
> > struts, what I've done is this
> >
> > <%
> > try {
> > sai.db.IRecordIterator it =
> > invoiceService.getStatusSummary();
> > pageContext.setAttribute("it", it, PageContext.PAGE_SCOPE);
> > while (it.next()!=null) {
> > aig.its.db.RecordInvoice rec =
> > (aig.its.db.RecordInvoice) it.current();
> > pageContext.setAttribute("rec", rec,
> > PageContext.PAGE_SCOPE);
> >
> > %>
> > 
> >
> > 
> >   > filter="true"/>
> > 
> > 
> >  
> > 
> >
> > 
> >
> > <%
> >
> > if (currentSwapColor==0) currentSwapColor=1; else
> > currentSwapColor=0;
> > }
> > }
> > catch (java.sql.SQLException E) {
> > %><%=E.toString()%><%
> > }
> > %>
> > .
> >
> > I'm getting the exception
> > javax.servlet.ServletException: No getter method for property rec of
> > bean it.
> >
> > I have no idea where I'm going wrong, but I would appreciate if you
could
> > help me sort this problem out.
> >
> > Another problem that I'm facing is to convert the following to a struts
> > equivalent command, here I guess the jsp is called based on the multiple
> > params passed to it, I couldn't find anything similar in struts. Please
> > help.
> >  >
href="invoice/list.jsp?numFields=1&wo0=eq&wf0=InvoiceStatus&wv0=<%=rec.get
> > InvoiceStatus()%>"><%=rec.getInvoiceStatusDescription ()%>
> >
> > B Rgds
> > Raghu
> >
> >
> >
> > -Original Message-
> > From: Ted Husted [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 23, 2001 4:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Hot to get the iterated objects ?
> >
> >
> > The Struts tags often throw exceptions, but I don't believe any write to
> > a log. They do record the Exception in the request context though, so it
> > can be reported elsewhere (e.g. an JSP error page). Here's an example
> > from interate:
> >
> >else {
> > JspException e = new JspException
> > (messages.getMessage("iterate.iterator"));
> > RequestUtils.saveException(pageContext, e);
> > throw e;
> > }
> >
> > The messages for the exceptions are in <
> > taglib\logic\LocalStrings.properties >.
> >
> > Sorry I could help with committing the indexed tag, but I haven't had a
> > chance to use it myself.
> >
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Hi Hal,
> > >
> > > Oleg has siad he will incorporate the tag changes - just mailed him to
> > inquire
> > > when he thinks this will take place (I'm on vacation for 2 weeks from
> > this
> > > Friday).
> > >
> > > Am very happy to insert an exception - wasn't sure how the rest of
> > Struts tags
> > > handle this type of situation.
> > >
> > > Does anyone else have a problem with throwing exception, rather than
> > just
> > > writing to log?
> > >
> > > Cheers,
> > >
> > > Dave
> > >
> > > "Deadman, Hal" <[EMAIL PROTECTED]> on
> > 07/23/2001
> > > 01:14:00 PM
> > >
> > > Please respond to [EMAIL PROTECTED]
> > >
> > > To:   "'Struts Dev List'"
> > <[EMAIL PROTECTED]>
> > > cc:(bcc: David Hay/Lex/Lexmark)
> > > Subject:  RE: Hot to get the iterated objects ?
> > >
> > > I am looking forward to the seeing indexed tags in the nightly build.
> > Has a
> > > commiter signed up to incorporate the indexed tag changes?
> > >
> > > As for feedback on the code, I don't think it's appropriate to blow
off
> > the
> > > whole tag without comment if the tag with indexed="true" is not nested
> > in an
> > > iterate tag. I think an exception should be thrown instead. If an
> > exception
> > > isn't thrown then something needs to be written to the log file.
> > >
> > > change:
> > >   IterateTag iterateTag = (IterateTag) findAncestorWithClass(this,
> > > IterateTag.class);
> > >   if (iterateTag == null)
> > >   {
> > >  // this

loader constraints violated when loading mapping file

2001-07-24 Thread Jon Brisbin

when i go to load my own struts app in tomcat 4, i get the following error
when ANY servlet in that webapp tries to start...it has to do with the whole
xerces/struts/tomcat4 issue, but i'm not sure why the servlet won't load for
this app, but it will for the struts example app...same message when loading
servlet "jsp" too...
java.lang.LinkageError: loader constraints violated when linking
org/xml/sax/HandlerBase class
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:857)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:219)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2251)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
984)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074
)
at java.lang.Thread.run(Thread.java:484)






servlet error with struts 1.0 (release) and tomcat 4

2001-07-24 Thread Jon Brisbin

i get the following with some (but not all) struts 1.0 webapps in tomcat
4...any help would be appreciated:

jb

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:219)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2251)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
984)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074
)
at java.lang.Thread.run(Thread.java:484)

Root Cause:
java.lang.LinkageError: loader constraints violated when linking
org/xml/sax/EntityResolver class
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:198)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:263)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:857)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:219)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2251)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
984)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074
)
at java.lang.Thread.run(Thread.java:484)






Re: Baisc q 2 Cannot find message resources u/key -

2001-07-24 Thread Jon Brisbin

it looks like you need to remove crimson.jar from your classpath
still...maybe it's in the system classpath before you start tomcat??  struts
does not like anything but xerces 1.3.1, for some reason, in the newer
containers...

jb

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 10:26 AM
Subject: Re: Baisc q 2 Cannot find message resources u/key -


>
> Jon,
>
> That did something.  Before when I was starting my server, the console
> read:
>
> -
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0-b6
> Starting service Tomcat-Apache
> Apache Tomcat/4.0-b6
>
> --
>
> Now the console shows:
>
> --

>
> A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL
> relocation target' has occurred in :
> 'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting
method.
> Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0-b6
> register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
>
'jar:file:/C:/Tomcat/bin/../webapps/struts-example/WEB-INF/lib/struts.jar!/o
rg/apache/struts/resources/struts-config_1_0.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
>
'jar:file:/C:/Tomcat/bin/../webapps/struts-example/WEB-INF/lib/struts.jar!/o
rg/apache/struts/
> resources/web-app_2_2.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
> 'jar:file:/C:
>
/Tomcat/bin/../webapps/struts-example/WEB-INF/lib/struts.jar!/org/apache/str
uts/
> resources/web-app_2_3.dtd'
> register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
> 'jar
>
:file:/C:/Tomcat/bin/../webapps/struts-blank/WEB-INF/lib/struts.jar!/org/apa
che/
> struts/resources/struts-config_1_0.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
> 'jar:file:/C:
>
/Tomcat/bin/../webapps/struts-blank/WEB-INF/lib/struts.jar!/org/apache/strut
s/re
> sources/web-app_2_2.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
> 'jar:file:/C:
>
/Tomcat/bin/../webapps/struts-blank/WEB-INF/lib/struts.jar!/org/apache/strut
s/re
> sources/web-app_2_3.dtd'
> Starting service Tomcat-Apache
> Apache Tomcat/4.0-b6
>
> ----------

>
> When the index.jsp page for the struts-example application attempts to
> load, it seems to get caught in a loop..  Still no joy, but at least
> something different is happening.
>
> Thanks,
> Brian
>
>
>
>
>
> "Jon Brisbin"
> 
> net> cc: "Chuck Amadi"
<[EMAIL PROTECTED]>
>  Subject: Re: Baisc q 2 Cannot
find message resources u/key -
> 07/24/2001
> 10:02 AM
> Please
> respond to
> struts-user

>
>
>
>
>
>
> > Hi, there only promlem is that i am not running tomcat 4.
>
> i know that... :-)  ok...let's try this worded a different way:
>
> the problem is an xml parser issue, as this question has come up a lot
> lately and i got my own servlet container to work by carefully analyzing
> where and when my xml parsers were getting loaded...
>
> your solution will *obviously* be different, but the problem seems to come
> from classloading of xml parsers...you'll of course need to look through
> your lib directories and make sure no other jaxp or crimson parsers are
> there, replacing them with xerces 1.3.1 (1.4.1 will also give some issues
> with some containers, specifically tomcat)...
>
> i was only using my solution as an *example* of how everyone having this
> problem can analyze their own servlet container to help fix the problem.
i
> was getting pretty irritated because NO ONE was helping me fix this
> problem,
> or even offering constructive advice on the deeper issue i knew it had to
> be...one deeper than just making sure my config files were accurate...
>
> it's something worth trying, anyway...
>
> jb
>
>
>
>
>
>




Re: Baisc q 2 Cannot find message resources u/key -

2001-07-24 Thread Jon Brisbin

> Hi, there only promlem is that i am not running tomcat 4.

i know that... :-)  ok...let's try this worded a different way:

the problem is an xml parser issue, as this question has come up a lot
lately and i got my own servlet container to work by carefully analyzing
where and when my xml parsers were getting loaded...

your solution will *obviously* be different, but the problem seems to come
from classloading of xml parsers...you'll of course need to look through
your lib directories and make sure no other jaxp or crimson parsers are
there, replacing them with xerces 1.3.1 (1.4.1 will also give some issues
with some containers, specifically tomcat)...

i was only using my solution as an *example* of how everyone having this
problem can analyze their own servlet container to help fix the problem.  i
was getting pretty irritated because NO ONE was helping me fix this problem,
or even offering constructive advice on the deeper issue i knew it had to
be...one deeper than just making sure my config files were accurate...

it's something worth trying, anyway...

jb





Re: Struts + JBoss

2001-07-24 Thread Jon Brisbin

i've had trouble with jboss 2.2.2/tomcat 3.2.2...for this reason i dropped
back to the 2.2.1/3.2.1 version and everything worked fine...

in my experimentation, it seems to be a classloader issue...any classes you
want to access from another class must be either on the same level, or
higher in your classpath...if a .jar file that is located in the
jboss/lib/ext directory is accessing a struts class or action class that is
in your WEB-INF/lib/this.jar file, then it will give you this message...

it's been a real pain :-)

Jon Brisbin
Lamar, MO

- Original Message -
From: ecn11 <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 9:46 AM
Subject: Struts + JBoss


> Hi.
>
> Has anyone of you managed to make Struts and JBoss working together?
>
> This is my current situation: I use JBoss-2.2.2 + Tomcat-3.2.2 (by
> run_with_tomcat.bat - so they are running in one VM) and Struts 1.0.
>
>
> The problem is briefly: When I deploy a .ear-archive that contains a
> .war-archive with the classes Struts should use (e.g. the form and
> action-classes), it throws an exception:
>
> javax.servlet.jsp.JspException: Exception creating bean of class
> /DetailsForm: java.lang.ClassNotFoundException: /DetailsForm
> at
> org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
>
> These are the lines of the Struts source-code where the exception is
thrown:
>try {
>   Class clazz = Class.forName(type);
>   bean = clazz.newInstance();
>   if (bean instanceof ActionForm)
>((ActionForm) bean).setServlet(servlet);
>} catch (Exception e) {
>   throw new JspException
> (messages.getMessage("formTag.create", type,
>  e.toString()));
>}
>
>
> The reason I blame Struts for that is the following:
> When I try to instanciate DetailsForm manually from the .jsp-page there is
> absolutely no problem. But Struts seems to use another classpath.
>
>
> Using the same .jsp-pages/classes/struts-config.xml/web.xml with Tomcat
and
> J2EE-reference implementation works fine. - So I can say for sure that
> struts-config.xml and web.xml okay.
>
>
> This is the way the .ear-File looks like:
>
> .ear
>META-INF\
>   sun-j2ee-ri.xml, Manifest.mf, application.xml
>war-ic.war
> lots of stuff
>   WEB-INF\
>   web.xml, struts-*.tld, struts-config.xml, global.properties
>   classes\
>   Resources.properties
>   all my classes
>ejb-jar-ic.jar
>   the beans (they work fine)
>
>
> I once tried to add the .class-files manually to the classpath (not the
ones
> that are created by jboss, when I deploy the .ear, but the .class-files,
> that I built before building the .ear-file).
>
> After that Struts was able to find the classes, but my classpath was
> completely messed up. The global.properties for example (which is
accessible
> via InputStream is = getClass().getResourceAsStream("/global.properties")
> normally) was not found any more.
>
> Thanks in advance
> Dominic




Re: Baisc q 2 Cannot find message resources u/key -

2001-07-24 Thread Jon Brisbin

i have discovered that this is an xml parser issue of some sort...i have
this problem when running tomcat 4...the fix for that is to remove crimson
and jaxp jars from the catalina/jasper directory and add xerces.jar to the
catalina/lib directory...

your solution may have to do with any other xml parsers in the classpath, or
making sure that there is no duplication of any jars in your classpath...if
xerces is duplicated, this error will probably also appear...

just a thought...

Jon Brisbin






FIXED: can't find message resources error

2001-07-23 Thread Jon Brisbin

the problem i found with tomcat 4 can probably be fixed this way in iPlanet:

delete crimson and parser jars from the catalina/jasper directory and put
xerces.jar into the catalina/lib directory...this fixed it for me...

Jon Brisbin




still no luck with struts in tomcat 4 (was: Re: iPlanet - Cannot find message resources u/key)

2001-07-23 Thread Jon Brisbin

i get this same error on the plain binary download of tomcat 4 and try to
fire the struts example...

jb

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 3:26 PM
Subject: Re: iPlanet - Cannot find message resources u/key


>
> All,
>
> Has anyone with iPlanet Webserver 4.x, 6.x been able to get Struts to
work?
> If so, have you run into the:
>
> javax.servlet.ServletException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE  error?
>
> If so, how were you able to fix it?
>
> Thanks,
> Brian
>
>
>
>
> Brian.Duchouquette@tran
> splace.com To:
[EMAIL PROTECTED]
>cc:
> 07/23/2001 02:50 PMSubject: Re:
iPlanet - Cannot find message resources u/key
> Please respond to
> struts-user
>
>
>
>
>
>
>
> Does iPlanet Webserver 6.0 know how to use web.xml? Or is it like iPlanet
> Webserver 4.2 which uses rules.properties to handle essentially the same
> thing?  (I have a call into iPlanet technical support for this question
> since I think I am getting too much into the container implementation of a
> particular vendor.  However if someone has already solved this problem
with
> iPlanet, then please feel free to let me know!).
>
> I did have the mapping in my Web.xml file from your last message, but I
> think that the iPlanet servlet container doesn't know how to use it.  This
> is just a guess... Maybe there is some other configuration I need to do in
> the administration console for iPlanet Webserver 6.0 to map to a servlet
> directory to get this to work?
>
> Brian
>
>
>
>
> Matt Raible
>
>  [EMAIL PROTECTED]
> yahoo.com>   cc:
>
>  Subject: Re: iPlanet - Cannot
> find message resources u/key
> 07/23/2001
>
> 02:25 PM
>
> Please
>
> respond to
>
> struts-user
>
>
>
>
>
>
>
> Make sure your web.xml has the following entry for the action class:
>
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   application
>   ApplicationResources
> 
>
> --- [EMAIL PROTECTED] wrote:
> >
> > Matt,
> >
> > Oops, I suppose I should have specified Webserver or Appserver.  I'm
> using
> > iPlanet Webserver 6.0.  My classpath points to the directory containing
> > ApplicationResources.properties which is: c:
> >
>
\iPlanet\Servers\docs\webapps\struts\WEB-INF\classes\ApplicationResources.pr
operties
>
>
> >
> > This does not seem to work even after updating the server startup
> classpath
> > in jvm12.conf.
> >
> > Here is that entry in jvm12.conf:
> >
> > jvm.classpath=c:
> > \iPlanet\Servers\docs\webapps\struts\WEB-INF\lib\struts.jar;c:
> > \iPlanet\Servers\docs\webapps\struts\WEB-INF\;c:
> > \iPlanet\Servers\docs\webapps\struts\WEB-INF\lib;c:
> > \iPlanet\Servers\docs\webapps\struts\WEB-INF\classes;c:
> > \iPlanet\Servers\docs\WEB-INF\classes\beanutils.jar; c:
> > \iPlanet\Servers\docs\WEB-INF\classes\collections.jar;c:
> >
>
\iPlanet\Servers\docs\WEB-INF\classes\digester.jar;C:/iPlanet/Servers/plugin
s/servlets/examples/legacy/beans.10/SDKBeans10.jar
>
>
> >
> > Thanks,
> > Brian
> >
> >
> >
> >
> >
>
> >
> > Matt Raible
>
> >
> >  > [EMAIL PROTECTED]
> > yahoo.com>   cc:
>
> >
> >  Subject: Re: iPlanet -
> Cannot
> > find message resources u/key
> > 07/23/2001
>
> >
> > 02:08 PM
>
> >
> > Please
>
> >
> > respond to
>
> >
> > struts-user
>
> >
> >
>
> >
> >
>
> >
> >
> >
> >
> >
> > iPlanet Web Server or App Server?  The fix on the appserver is a
> classpath
> > thing - probably the same on Web Server.
> >
> > --- [EMAIL PROTECTED] wrote:
> > > All,
> > >
> > > Can someone please post their iPlanet 6x configuration files for the
> > > struts_example.war web application?  I'm sure the answer to my problem
> is
> > > entering the descriptor xml to point to the location of the resources
> > file,
> > > but since iPlanet does not support Webapps and WAR files, this is not
a
> > > straightforward process.
> > > Any hints appreciated...
> > >
> > > Thanks,
> > > Brian
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
> >
> >
> >
>
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
>
>
>
>
>
>
>




Re: Baisc q 2 Cannot find message resources u/key -

2001-07-23 Thread Jon Brisbin

are you using tomcat 4?  i get this message in tomcat 4 with struts
applications as well...

it's an issue with catalina working with struts, though i can't get anyone
to help me figure out what it is...

Jon Brisbin

- Original Message -
From: Chuck Amadi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 10:49 AM
Subject: Re: Baisc q 2 Cannot find message resources u/key -


> Hi , in my wem.xml i have the following defined for the apllication
> init-param.
>
>
>   application
> helloworld.HelloWorldResources
>
>   1
>
>
> Tried the second option previously and again no joy.
> The first option can i drag & drop into the classes .jar the property
> file as all my jar's are in my WEB-INF/lib dir.
>
> Cheers Chuck
>
> Peter Alfors wrote:
> >
> > In your web.xml, what do you have defined for the application
init-param?
> > where is your properties file located?
> >
> > You have a couple of options:
> > You could place the properties file in your classes jar (in the
appropriate
> > directory structure)
> > or you can place it in the WEB-INF/classes directory (within the
appropriate
> > directory structure specified in the application init-param).
> >
> > Pete
> >
> > Chuck Amadi wrote:
> >
> > > Hi , can anyone work out this one i have followed the correct
procedures
> > > albeit i am missing somthing. (bbnpa the name of my application)
> > >
> > > My path C:\jakarta-tomcat\webapps\bbnpa\helloworld\hello.jsp
> > > 1) declared directives.
> > > 2) created property file.
> > > 3) created web.xml file.
> > > 4)Copied all necessary .tld to /helloworld/WEB-INF/
> > > 5)Copied all necessary .jar's to /WEB-INF/lib
> > > 6)Copied and deployed the struts-trailmap war's to /bbnpa/ my app's
dir.
> > >
> > > Wats left error below
> > >
> > > Error: 500
> > > Location: /bbnpa/helloworld/hello.jsp
> > > Internal Servlet Error:
> > >
> > > javax.servlet.ServletException: Cannot find message resources under
key
> > > org.apache.struts.action.MESSAGE
> > >
> > > Cheers Chuck.
> > >
> > > --
> > > The views expressed by the sender of this message don't
> > > necessarily represent those of Brecon Beacons National Park
> > > Authority. This message is intended for the addressee(s) only
> > > and is sent in confidence; if you receive it in error, please can you
> > > let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> > > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > > mewn camgymeriad, a fyddech gystal  rhoi gwybod i
> > > ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.




Re: Problems with Struts on Weblogic 5.10 sp9

2001-07-18 Thread Jon Brisbin

it's my understanding that sp9 for weblogic has some problems (bugs
;-)...one user had to get a custom solution...

it's "supposed" to be fixed in sp10, for what it's worth... :-)

Jon Brisbin
Lamar, MO

- Original Message -
From: "Upadhye, Sujit (GEAE, Foreign National)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 5:00 PM
Subject: Problems with Struts on Weblogic 5.10 sp9


> Hi,
>
> We are facing some strange problems. The code that runs on Tomcat is not
> running on Weblogic.
>
> We are using Tomcat server on local development machines and Weblogic 5.10
> (sp9) on Development server. Further, we are using Struts model for our
> project. We have observed that the code that runs smoothly on Tomcat has
> some problems while running on Weblogic. They are as follows:
>
> 1. The URL gets modified: The 'wls' inside the URL disappears when a
request
> is submitted. We have traced the cause of this problem to an entry in
> config.xml. When ever we have 'redirect = true' in the action mapping, the
> URL gets modified. If we remove 'redirect = true', then the URL does not
get
> modified.
> However, all our control logic is based on 'redirect = true', which works
> well on Tomcat.
>
> 2. Struts architecture requires FormBeans to be associated with each view
> component (JSP). On Tomcat, when a page is submitted, corresponding
FormBean
> gets updated. However, on Weblogic, the FormBean is not getting updated.
> (In fact, only one out of some 70-odd parameters is getting populated in
the
> FormBean. This is strange - but true!)
> We are NOT using custom tags in the JSPs. We are using simple jsp:usebean
> and then access each property using its getter method.
> We have all setter methods as required.
>
> Any help on the above would be greatly appreciated.
>
> Regards,
>
> Sujit
>
> -Original Message-
> From: Upadhye, Sujit (GEAE, Foreign National)
> [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 14, 2001 3:55 PM
> To: [EMAIL PROTECTED]
> Subject: Question: Struts on Weblogic - Urgent please
>
> Hi,
>
> I am using Struts on Weblogic 5.1 with SP9.
>
> Initially I developed my app on Tomcat. Here, I am forwarding control to
> another action object. So, in my config.xml, I have:
>
> 
>
> I start my app on Tomcat through URL:
> http://localhost/wls/cmweb/detrunselect.do. When I submit this page, the
new
>
> URL I get is:
> http://localhost/wls/cmweb/detcontrol.do.
>
> This is the expected behavior.
>
> However, when I try to run the same on Weblogic, the second URL comes up
as:
>
> http://localhost/cmweb/detcontrol.do.
>
> Please note that 'wls' get dropped from the URL. This causes the app to
> fail.
>
> If I remove the 'redirect = true' from config.xml, then the URL appears
as:
> http://localhost/wls/cmweb/detrunselect.do
>
> Please note, that 'wls' is not dropped. But the action object has also NOT
> changed. This is not what I want.
>
> So, I want to use 'redirect = true'. Can some one tell me how can I still
> get the 'wls' while using 'redirect = true'?
>
> Thanks in advance,
>
> Sujit




URI is null error on ActionForward

2001-07-18 Thread Jon Brisbin

I have a really simple action forward just like many I've used in the past.
I am getting this error on JRun 3.1 EE.  I have included an excerpt from my
struts-config.xml and my action class to see if you y'all see something I
just do not...I just added the redirect="true" and it does the same thing.

Thanks for any help you can give me here! :-)

Jon Brisbin
Lamar, MO
[EMAIL PROTECTED]


java.lang.IllegalArgumentException: URI is null
 at
allaire.jrun.servlet.JRunSE.getRequestDispatcher(../servlet/JRunSE.java:1937
)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1750)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
 at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
 at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
 at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
 at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
 at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
 at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
 at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)


My struts config excerpt follows:

  
  



 


  


My action class forwards like such:

// Set our utility objects
HttpSession session = request.getSession(true);
MessageResources messages = getResources();
CategoryForm form = (CategoryForm)actionForm;

request.setAttribute("formxml", form.getXml());

getServlet().getServletContext().log("Forwarding to success.");
return (new ActionForward("success"));





Re: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Jon Brisbin

my resources file has always been under the WEB-INF/classes folder, but i
only have this problem with Tomcat 4.0.  Tomcat 3.x works fine.

jb

- Original Message -
From: "Melissa Rabin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 11:47 AM
Subject: RE: Error: org.apache.struts.action.MESSAGE


> The Struts User-Guide specifies: "The important thing is for the resource
> bundle to be found on the class path for your application. "  So, just
like
> a call to a struts class in a web-app will need to be referenced under the
> WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
> directory, you also need to have a root-relative path for any Application
> Resources.  I place mine in the WEB-INF/classes folder as that is
> automatically referenced by my web container.  Ant can be told to copy
that
> file to the classes directory (as it isn't compiled), so that every time
you
> rebuild your application your
> resource file will be copied into the classes dir.
>
> Hope this helps
>
> Melissa
> Web Engineer





Re: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Jon Brisbin

I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the servlet container. > >
Error
> 500 > An error has occured while processing >
> request:<http://xxx.yyy.com/phase3order.jsp> > Message: Server caught
> unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find
message
> resources under key org.apache.struts.action.MESSAGE > > Could some one
> throw some light on this puhlease > > > Regards > Hemant Pathangi >
>




struts 1 and tomcat 4.0b5

2001-07-13 Thread Jon Brisbin

I just tried the sample application on tomcat 4 and since I couldn't find
any reference to problems when searching the web, I thought I'd ask why I
get an error that says it can't find the applicationresources under the key
"org.apache.struts.action.MESSAGE"??  i only copied the .war file into
webapps/ and restarted catalina...it's finding the struts stuff because the
traceback comes from the doStartTag of the  tag...

it appears to be a classloader issue, but not sure if anyone else has
encountered this behavior or has a remedy for this??

thanks!

Jon Brisbin  <><
Lamar, MO
[EMAIL PROTECTED]





Re: Struts debugging in Emacs/JDE

2001-05-09 Thread Jon Brisbin

emacs is part of the gnu project, and is at any gnu.org mirror...i'm using
the windows version as well (NT/Emacs), which is discussed on the emacs home
page...

jde can be obtained at jde.sunsite.dk...

jb

- Original Message -
From: "Rajan Gupta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 2:28 PM
Subject: Re: Struts debugging in Emacs/JDE


> Where can I download emacs/JDE from?
> --- Jon Brisbin <[EMAIL PROTECTED]> wrote:
> >
> > - Original Message -
> > From: "Rajan Gupta" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 09, 2001 11:47 AM
> > Subject: Re: Struts debugging in Emacs/JDE
> >
> >
> > > Are u able to debug JSP Tags using emacs/JDE?
> >
> >
> > yes.  what i did was to set up the right parameters in my jde
> > environment by
> > extracting the jdk1.3 src.jar, and include all that source, the source
> > from
> > tomcat, and the source from jboss in my project (you could also include
> > any
> > source from custom taglibs, etc...into your jde project)...then you just
> > put
> > in your breakpoints, pull up the source of the tomcat startup class and
> > have
> > jde run it...the servlet engine starts and you can request a page in a
> > browser...jde then throws up tons of messages as the request is being
> > processed.
> >
> > the problem i've been running into is that i don't want to see all the
> > tomcat internals working for every debugging session...haven't found a
> > way
> > around it yet, but emacs/jde is so fast to work in that it's just better
> > than using visual age, jbuilder, etc...you can make changes and restart
> > tomcat faster than mucking around in a windows app...
> >
> > jb
> >
> > > --- Jon Brisbin <[EMAIL PROTECTED]> wrote:
> > > > > Emacs is geek overload.
> > > >
> > > > nooo, emacs is geek heaven :-)  it's like Coke or Pepsi.  you have
> > your
> > > > favorite, i have mine :-)
> > > >
> > > > i've tried nearly every ide for java out there and none have the
> > power
> > > > and
> > > > functionality of emacs/jde, including the debugging capability, all
> > with
> > > > an
> > > > acceptable user interface.  i LIKE the emacs keyboard shortcuts,
> > etc...
> > > > :-)
> > > >
> > > > the slurry of menus in windows programs makes them undeisrable for
> > my
> > > > linux-based developement work...not to mention that i continually
> > get
> > > > viruses on my win box, am always reformatting and reinstalling, and
> > just
> > > > flat like linux better ;-)
> > > >
> > > > jb
> > > >
> > > >
> > > > > Try textpad, jbuilder(which is free), or webgain
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "Jon Brisbin" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, May 08, 2001 4:50 PM
> > > > > Subject: Struts debugging in Emacs/JDE
> > > > >
> > > > >
> > > > > > I've been using the awesome Emacs ECB and JDE for my Java (and
> > now
> > > > Struts)
> > > > > > development work and really love it :-)
> > > > > >
> > > > > > Just wondering if anyone else on the list uses this and how they
> > > > handle
> > > > > > debugging in JDEbug??  I can debug with it fine by starting
> > Tomcat
> > > > from
> > > > > > within JDE, but there's a lot of Tomcat internal service stuff I
> > > > don't
> > > > > want
> > > > > > to see until it hits my breakpoint in the Struts forms and
> > actions,
> > > > etc...
> > > > > >
> > > > > > Anyone have any special ways to debug JSP/Struts stuff in JDE??
> > > > (JDE
> > > > also
> > > > > > works awesome with JBoss, which gives me full debugging!  Try to
> > get
> > > > that
> > > > > > anywhere else outside of open source for less than $3k ;-)
> > > > > >
> > > > > > Thanks!
> > > > > >
> > > > > > Jon Brisbin
> > > > > >  ><> <><
> > > > > > [EMAIL PROTECTED]
> > > > > > Lamar, Missouri  USA
> > > > > >
> > > > >
> > > >
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great prices
> > > http://auctions.yahoo.com/
> >
>
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/




Re: Struts debugging in Emacs/JDE

2001-05-09 Thread Jon Brisbin


- Original Message -
From: "Rajan Gupta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 11:47 AM
Subject: Re: Struts debugging in Emacs/JDE


> Are u able to debug JSP Tags using emacs/JDE?


yes.  what i did was to set up the right parameters in my jde environment by
extracting the jdk1.3 src.jar, and include all that source, the source from
tomcat, and the source from jboss in my project (you could also include any
source from custom taglibs, etc...into your jde project)...then you just put
in your breakpoints, pull up the source of the tomcat startup class and have
jde run it...the servlet engine starts and you can request a page in a
browser...jde then throws up tons of messages as the request is being
processed.

the problem i've been running into is that i don't want to see all the
tomcat internals working for every debugging session...haven't found a way
around it yet, but emacs/jde is so fast to work in that it's just better
than using visual age, jbuilder, etc...you can make changes and restart
tomcat faster than mucking around in a windows app...

jb

> --- Jon Brisbin <[EMAIL PROTECTED]> wrote:
> > > Emacs is geek overload.
> >
> > nooo, emacs is geek heaven :-)  it's like Coke or Pepsi.  you have your
> > favorite, i have mine :-)
> >
> > i've tried nearly every ide for java out there and none have the power
> > and
> > functionality of emacs/jde, including the debugging capability, all with
> > an
> > acceptable user interface.  i LIKE the emacs keyboard shortcuts, etc...
> > :-)
> >
> > the slurry of menus in windows programs makes them undeisrable for my
> > linux-based developement work...not to mention that i continually get
> > viruses on my win box, am always reformatting and reinstalling, and just
> > flat like linux better ;-)
> >
> > jb
> >
> >
> > > Try textpad, jbuilder(which is free), or webgain
> > >
> > >
> > > - Original Message -
> > > From: "Jon Brisbin" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, May 08, 2001 4:50 PM
> > > Subject: Struts debugging in Emacs/JDE
> > >
> > >
> > > > I've been using the awesome Emacs ECB and JDE for my Java (and now
> > Struts)
> > > > development work and really love it :-)
> > > >
> > > > Just wondering if anyone else on the list uses this and how they
> > handle
> > > > debugging in JDEbug??  I can debug with it fine by starting Tomcat
> > from
> > > > within JDE, but there's a lot of Tomcat internal service stuff I
> > don't
> > > want
> > > > to see until it hits my breakpoint in the Struts forms and actions,
> > etc...
> > > >
> > > > Anyone have any special ways to debug JSP/Struts stuff in JDE??
> > (JDE
> > also
> > > > works awesome with JBoss, which gives me full debugging!  Try to get
> > that
> > > > anywhere else outside of open source for less than $3k ;-)
> > > >
> > > > Thanks!
> > > >
> > > > Jon Brisbin
> > > >  ><> <><
> > > > [EMAIL PROTECTED]
> > > > Lamar, Missouri  USA
> > > >
> > >
> >
>
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/




Re: Struts debugging in Emacs/JDE

2001-05-08 Thread Jon Brisbin

> Emacs is geek overload.

nooo, emacs is geek heaven :-)  it's like Coke or Pepsi.  you have your
favorite, i have mine :-)

i've tried nearly every ide for java out there and none have the power and
functionality of emacs/jde, including the debugging capability, all with an
acceptable user interface.  i LIKE the emacs keyboard shortcuts, etc... :-)

the slurry of menus in windows programs makes them undeisrable for my
linux-based developement work...not to mention that i continually get
viruses on my win box, am always reformatting and reinstalling, and just
flat like linux better ;-)

jb


> Try textpad, jbuilder(which is free), or webgain
>
>
> - Original Message -
> From: "Jon Brisbin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 08, 2001 4:50 PM
> Subject: Struts debugging in Emacs/JDE
>
>
> > I've been using the awesome Emacs ECB and JDE for my Java (and now
Struts)
> > development work and really love it :-)
> >
> > Just wondering if anyone else on the list uses this and how they handle
> > debugging in JDEbug??  I can debug with it fine by starting Tomcat from
> > within JDE, but there's a lot of Tomcat internal service stuff I don't
> want
> > to see until it hits my breakpoint in the Struts forms and actions,
etc...
> >
> > Anyone have any special ways to debug JSP/Struts stuff in JDE??  (JDE
also
> > works awesome with JBoss, which gives me full debugging!  Try to get
that
> > anywhere else outside of open source for less than $3k ;-)
> >
> > Thanks!
> >
> > Jon Brisbin
> >  ><> <><
> > [EMAIL PROTECTED]
> > Lamar, Missouri  USA
> >
>




Struts debugging in Emacs/JDE

2001-05-08 Thread Jon Brisbin

I've been using the awesome Emacs ECB and JDE for my Java (and now Struts)
development work and really love it :-)

Just wondering if anyone else on the list uses this and how they handle
debugging in JDEbug??  I can debug with it fine by starting Tomcat from
within JDE, but there's a lot of Tomcat internal service stuff I don't want
to see until it hits my breakpoint in the Struts forms and actions, etc...

Anyone have any special ways to debug JSP/Struts stuff in JDE??  (JDE also
works awesome with JBoss, which gives me full debugging!  Try to get that
anywhere else outside of open source for less than $3k ;-)

Thanks!

Jon Brisbin
 ><> <><
[EMAIL PROTECTED]
Lamar, Missouri  USA




RE: Problem with "webapps" - JBoss 2.2 with embedded Tomcat 3.2.1

2001-05-02 Thread Jon Brisbin

try putting $JDK_HOME/lib/tools.jar into your classpath or put it in your
$TOMCAT_HOME/lib directory...

jb

blah> -Original Message-
blah> From: Storhaug, Henning [mailto:[EMAIL PROTECTED]]
blah> Sent: Wednesday, May 02, 2001 9:28 AM
blah> To: [EMAIL PROTECTED]
blah> Subject: Problem with "webapps" - JBoss 2.2 with embedded Tomcat 3.2.1
blah>
blah>
blah> If you can cure my initial scepsis to a promising framework,
blah> I'd be trilled!
blah> It's a bit urgent, as we have very little time to decide what to do.
blah>
blah> I've succesfully deployed and run the
blah> struts-documentation.war-file. (ie.
blah> http://localhost:8080/struts-documentation/ deploys well and
blah> is browsable).
blah> But the other files; struts-test, struts-example and the example from
blah> Bluestone causes trouble. The deployment works, but when I'm
blah> browsing the
blah> directories I have exceptions:
blah>
blah>
blah> E.g: http://localhost:8080/struts-test/index.jsp results in
blah> the following
blah> browser message:
blah> ---
blah> Error: 500
blah> Location: /struts-test/index.jsp
blah> Internal Servlet Error:
blah>
blah> javax.servlet.ServletException: sun/tools/javac/Main
blah>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
blah>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
blah>   at
blah> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
blah> .java:404)
blah>   at org.apache.tomcat.core.Handler.service(Handler.java:286)
blah>   at
blah> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
blah>   at
blah> org.apache.tomcat.core.ContextManager.internalService(ContextM
blah> anager.java:79
blah> 7)
blah>   at
blah> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
blah>   at
blah> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
blah> nnection(HttpC
blah> onnectionHandler.java:210)
blah>   at
blah> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
blah> t.java:416)
blah>   at
blah> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
blah> ol.java:498)
blah>   at java.lang.Thread.run(Unknown Source)
blah>
blah> Root cause:
blah> java.lang.NoClassDefFoundError: sun/tools/javac/Main
blah>   at
blah> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
blah> iler.java:128)
blah>   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
blah>   at
blah> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
blah>   at
blah> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1
blah> 2.java:146)
blah>   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
blah>   at
blah> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
blah> ecessary(JspSe
blah> rvlet.java:152)
blah>   at
blah> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
blah> (JspServlet.ja
blah> va:164)
blah>   at
blah> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
blah> .java:318)
blah>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
blah>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
blah>   at
blah> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
blah> .java:404)
blah>   at org.apache.tomcat.core.Handler.service(Handler.java:286)
blah>   at
blah> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
blah>   at
blah> org.apache.tomcat.core.ContextManager.internalService(ContextM
blah> anager.java:79
blah> 7)
blah>   at
blah> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
blah>   at
blah> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
blah> nnection(HttpC
blah> onnectionHandler.java:210)
blah>   at
blah> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
blah> t.java:416)
blah>   at
blah> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
blah> ol.java:498)
blah>   at java.lang.Thread.run(Unknown Source)
blah> 
blah>
blah> And the exception in JBoss:
blah> 
blah> 2001-05-02 04:24:48 - Ctx( /struts-test ): Exception in: R(
blah> /struts-test +
blah> /index.jsp + null) - javax.servlet.ServletException:
blah> sun/tools/javac/Main
blah> at
blah> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
blah> at
blah> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
blah> at
blah> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
blah> .java:404)
blah> at org.apache.tomcat.core.Handler.service(Handler.java:286)
blah> at
blah> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
blah> at
blah> org.apache.tomcat.core.ContextManager.internalService(ContextM
blah> anager.java:79
blah> 7)
blah> at
blah> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
blah> at
blah> org.apache.tomcat.serv

Valid XML from struts form taglib?

2001-05-01 Thread Jon Brisbin

How hard would it be to maybe subclass the struts form taglib to output
valid xml blocks, with tagnames coming from the application resources
properties file?

I would like to use some kind of taglib helper to generate form fields and
the optional input box attributes in XML.  I have an XSLT template already
that transforms a block of XML into an HTML form, so I'm trying to find
something that's close to what I need in struts, without having to write
from scratch...

jb




struts+cocoon problems

2001-04-29 Thread Jon Brisbin

the JspGenerator for cocoon works awesome when it's separate from
cocoon...when i put struts.jar into the cocoon example app lib directory
(including all the dtd's etc...), i get the following traceback...any ideas
(i figure something's getting stepped on, but struts.jar is the only thing
in the struts-example app, so didn't think i'd have a prob)??

org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.io.IOException: javax.servlet.ServletException:
javax.servlet.jsp.tagext.TagAttributeInfo: method
(Ljava/lang/String;ZLjava/lang/String;Z)V not found

at org.apache.avalon.CascadingException.(CascadingException.java:40)

at
org.apache.cocoon.ProcessingException.(ProcessingException.java:36)

at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:213)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:307)

at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2974)

at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1221)

at org.apache.cocoon.sitemap.Handler.process(Handler.java:159)

at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:97)

at org.apache.cocoon.Cocoon.process(Cocoon.java:258)

at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:433)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)

at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

at org.apache.tomcat.core.Handler.service(Handler.java:286)

at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)

at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:392)

at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

at java.lang.Thread.run(Thread.java:481)

java.io.IOException: javax.servlet.ServletException:
javax.servlet.jsp.tagext.TagAttributeInfo: method
(Ljava/lang/String;ZLjava/lang/String;Z)V not found

at java.io.IOException.(IOException.java:49)

at
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:103)

at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:205)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:307)

at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2974)

at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1221)

at org.apache.cocoon.sitemap.Handler.process(Handler.java:159)

at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:97)

at org.apache.cocoon.Cocoon.process(Cocoon.java:258)

at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:433)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)

at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

at org.apache.tomcat.core.Handler.service(Handler.java:286)

at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)

at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:392)

at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

at java.lang.Thread.run(Thread.java:481)



 org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.io.IOException: javax.servlet.ServletException:
javax.servlet.jsp.tagext.TagAttributeInfo: method
(Ljava/lang/String;ZLjava/lang/String;Z)V not found

 org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.io.IOException: javax.servlet.ServletException:
javax.servlet.jsp.tagext.TagAttributeInfo: method
(Ljava/lang/String;ZLjava/lang/String;Z)V not found

at org.apache.avalon.CascadingException.(CascadingException.java:40)

at
org.apache.cocoon.ProcessingException.(ProcessingException.java:36)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:319)

at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2974)

at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1221)

at org.apache.cocoon.sitem