Re: Suggestion needed on good Struts book

2004-03-08 Thread Steve Hill
Struts In Action does cover the basics in more detail than some of the other
books available, but I have to agree there really are a lot of irritating
typos in there, and the provided examples sometimes don't match up with the
code presented in the book. The Spielman book is a quick overview of the
basics but does not go into much detail. There's a SAMS book called Struts
Kick Start that has some good information in it. The O'Reilly book,
Programming Jakarta Struts, is a good overview (most O'Reilly books are
pretty decent), although it seems a little more segmented than Husted's
book. O'Reilly also puts out a Jakarta Struts Pocket Reference that is handy
to have around. Each book has its good points and bad points - for FredB,
the best thing to do is take a look at all of them at the local bookstore
and decide which best fits the user's learning level and style.

-Steve

- Original Message - 
From: "Frank Burns" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 08, 2004 9:07 AM
Subject: Re: Suggestion needed on good Struts book


I would say I'm smack bang in the middle of my Struts learning curve and, in
my opinion, the single most useful resource I have found is this six-part
series of articles:

http://www.ftponline.com/javapro/2002_09/online/servletsjsp_bkurniawan_09_13_02/

In terms of books, I've got both "Struts In Action" and "Programming Jakarta
Struts".

Each have their strengths and weaknesses in terms of the depth and breadth
of information that they contain.

However, in terms of *how* the information is presented, I personally find
the "Struts In Action" really frustrating. It's as though the content has
been *forced* into the "In Action" format. And the result, unfortunately, is
that it works neither as a good hand-held tour through Struts (very
long-winded, and repetitive), nor as a useful reference book (the useful
information is scattered throughout its various sections). And, finally, I
have the FOURTH *corrected* reprint, and it's still riddled with typos.

My recommendation would be the above-mentioned series of articles and
"Programming Jakarta Struts".

Frank.

- Original Message - 
From: "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 08, 2004 8:23 AM
Subject: Re: Suggestion needed on good Struts book


> Programming Jakarta Struts  - OReilly
>
> [EMAIL PROTECTED] wrote:Hi,
>
> I am a newbie to Struts.
> I have been looking for books on Struts and found these on Amazon
>
> Programming Jakarta Struts - OReilly
> Struts in Action - Manning
> Struts Framework - Morgan Kaufmann
> Struts Survival Guide - ObjectSource
> Professional Jakarta Struts - Wrox
> Struts Kick Start - Sams
>
> Can anybody suggest which is good?
>
> Thanks.
>
>
> -
> 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.


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



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]



Tomcat5.0.18 with Struts1.1 example: zip file closed error?

2004-02-09 Thread Steve Hill
Has anyone had problems getting the Struts1.1example to work with Tomcat
5.0.18? I have been getting the following errors (only first 2 lines each
shown here, for abbreviation - entire error message at bottom):

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)

root cause:
java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)

Searching previous archives show there was a Sun-confirmed similar bug in an
earlier version with Tomcat 4, but if someone has these two versions
coexisting, then let me know as it is then probably something local that I
need to chase down. The whole error message is below:

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)



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