[Mav-user] 2.0rc works fine and a "preDiscard" question

2002-03-15 Thread Dan Finkelstein

Just a little feedback... I'm now on 2.0rc and am not having any 
problems Great work!!

One question though:  In my controller objects, I would like to be notified 
when an instance is about to be deleted.  I'd like to use this opportunity 
to "clean-up", in this case closing a database connection.

Can you suggest a way to do this? I would like something more reliable than 
Java's finalize() method.  Or can an overidable method be easily added at 
this point in the release cycle?

Thanks,
Dan


___
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user



[Mav-user] Configuration for Tomcat??

2002-03-15 Thread Jordan C N Chong

Dear all,

I have installed Apache-Tomcat 4.0 on my Windows 2000 machine, and have
tried to run the friendbook example, but it doesn't work. I wonder do I need
to do any configuration on the Tomcat??

Please help. Thank you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



___
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user



[Mav-user] Howto: Getting the JSP Example Working

2002-03-15 Thread Scott Hernandez

Here is a step-by-step for getting the examples working with the Sun JDK
1.4 and Tomcat 4.0.3 (JDK 1.4 dist.) on WinXP Pro.

1.) Install the 1.4 JDK.

2.) Install Tomcat, make sure it is working. 
(For future ref tc = Tomcat install dir)
Note: I used the "jakarta-tomcat-4.0.3-LE-jdk14.zip" dist. Expanded it
to /temp, ran bin/startup.bat, and pointed my browser to
http://localhost:8080/index.html to test the install.

3.) Deploy the example 
(these instructions are also in friendbook-jsp-readme.txt)
  a.) Get Latest Maverick - 2.0 RC
  b.) Copy maverick/dist/friendbook-jsp.war to tc/webapps
  c.) Copy maverick/lib/log4j.jar to tc/lib

4.) Restart Tomcat and navigate to http://localhost:8080/friendbook-jsp


You will receive the following output:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
log4j:ERROR No appenders could be found for category
org.infohazard.maverick.Dispatcher).
log4j:ERROR Please initialize the log4j system properly.
Starting service Tomcat-Apache
Apache Tomcat/4.0.3

To init the log4j system, read this FAQ:
http://mav.sourceforge.net/maverick-manual.html#faq

HTH,
Scott

___
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user



RE: [Mav-user] Howto: Getting the JSP Example Working

2002-03-15 Thread Jeff Schnitzer

In addition to Scott's instructions, if you're using the JDK 1.3, you'll
have to add the JAXP classes to your environment.  Put the
maverick/lib/jaxp.jar in your tomcat/lib directory.  If you are using
XSLT, you'll need a processor as well; the latest Xalan release
(download separately) works fine.

The JDK 1.4 has both the JAXP and Xalan classes in the standard
platform.

If this doesn't work, let us know what the error is.

Jeff Schnitzer
[EMAIL PROTECTED]

> -Original Message-
> From: Scott Hernandez
> Sent: Friday, March 15, 2002 10:15 AM
> To: 'mav-user'
> Subject: [Mav-user] Howto: Getting the JSP Example Working
> 
> Here is a step-by-step for getting the examples working with the Sun
JDK
> 1.4 and Tomcat 4.0.3 (JDK 1.4 dist.) on WinXP Pro.
> 
> 1.) Install the 1.4 JDK.
> 
> 2.) Install Tomcat, make sure it is working.
> (For future ref tc = Tomcat install dir)
> Note: I used the "jakarta-tomcat-4.0.3-LE-jdk14.zip" dist. Expanded it
> to /temp, ran bin/startup.bat, and pointed my browser to
> http://localhost:8080/index.html to test the install.
> 
> 3.) Deploy the example
> (these instructions are also in friendbook-jsp-readme.txt)
>   a.) Get Latest Maverick - 2.0 RC
>   b.) Copy maverick/dist/friendbook-jsp.war to tc/webapps
>   c.) Copy maverick/lib/log4j.jar to tc/lib
> 
> 4.) Restart Tomcat and navigate to
http://localhost:8080/friendbook-jsp
> 
> 
> You will receive the following output:
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.3
> log4j:ERROR No appenders could be found for category
> org.infohazard.maverick.Dispatcher).
> log4j:ERROR Please initialize the log4j system properly.
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.3
> 
> To init the log4j system, read this FAQ:
> http://mav.sourceforge.net/maverick-manual.html#faq
> 
> HTH,
> Scott
> 
> ___
> Mav-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mav-user

___
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user



RE: [Mav-user] Howto: Getting the JSP Example Working

2002-03-15 Thread Jordan C N Chong

Dear Jeff

Thousand thanks for your tip. I got this error when I start up the Tomcat:
log4j:ERROR No appenders could be found for category
(org.infohazard.maverick.Di
spatcher).
log4j:ERROR Please initialize the log4j system properly.

What does it mean???

And when I run the friendbook example, the following problems happened:

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:875)
... ...

Root Cause:
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(Unknown Source)
... ...

Something wrong with my configuration, I presume...

Please help. Thank you very much.


p.s I am using JDK <1.4.


thank you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer
> Sent: Wednesday, March 13, 2002 4:04 PM
> To: mav-user
> Subject: RE: [Mav-user] Howto: Getting the JSP Example Working
>
>
> In addition to Scott's instructions, if you're using the JDK 1.3, you'll
> have to add the JAXP classes to your environment.  Put the
> maverick/lib/jaxp.jar in your tomcat/lib directory.  If you are using
> XSLT, you'll need a processor as well; the latest Xalan release
> (download separately) works fine.
>
> The JDK 1.4 has both the JAXP and Xalan classes in the standard
> platform.
>
> If this doesn't work, let us know what the error is.
>
> Jeff Schnitzer
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Scott Hernandez
> > Sent: Friday, March 15, 2002 10:15 AM
> > To: 'mav-user'
> > Subject: [Mav-user] Howto: Getting the JSP Example Working
> >
> > Here is a step-by-step for getting the examples working with the Sun
> JDK
> > 1.4 and Tomcat 4.0.3 (JDK 1.4 dist.) on WinXP Pro.
> >
> > 1.) Install the 1.4 JDK.
> >
> > 2.) Install Tomcat, make sure it is working.
> > (For future ref tc = Tomcat install dir)
> > Note: I used the "jakarta-tomcat-4.0.3-LE-jdk14.zip" dist. Expanded it
> > to /temp, ran bin/startup.bat, and pointed my browser to
> > http://localhost:8080/index.html to test the install.
> >
> > 3.) Deploy the example
> > (these instructions are also in friendbook-jsp-readme.txt)
> >   a.) Get Latest Maverick - 2.0 RC
> >   b.) Copy maverick/dist/friendbook-jsp.war to tc/webapps
> >   c.) Copy maverick/lib/log4j.jar to tc/lib
> >
> > 4.) Restart Tomcat and navigate to
> http://localhost:8080/friendbook-jsp
> >
> >
> > You will receive the following output:
> > Starting service Tomcat-Standalone
> > Apache Tomcat/4.0.3
> > log4j:ERROR No appenders could be found for category
> > org.infohazard.maverick.Dispatcher).
> > log4j:ERROR Please initialize the log4j system properly.
> > Starting service Tomcat-Apache
> > Apache Tomcat/4.0.3
> >
> > To init the log4j system, read this FAQ:
> > http://mav.sourceforge.net/maverick-manual.html#faq
> >
> > HTH,
> > Scott
> >
> > ___
> > Mav-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/mav-user
>
> ___
> Mav-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mav-user
>


___
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user



RE: [Mav-user] 2.0rc works fine and a "preDiscard" question

2002-03-15 Thread Jeff Schnitzer

I'm not quite sure what you mean.  Why not just at the end of your
perform() method?  Or are you using a ControllerSingleton, and you want
to be notified when a new configuration is loaded and the old is being
discarded?

Jeff Schnitzer
[EMAIL PROTECTED]

> -Original Message-
> From: Dan Finkelstein [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 14, 2002 9:35 PM
> To: [EMAIL PROTECTED]
> Subject: [Mav-user] 2.0rc works fine and a "preDiscard" question
> 
> Just a little feedback... I'm now on 2.0rc and am not having any
> problems Great work!!
> 
> One question though:  In my controller objects, I would like to be
> notified
> when an instance is about to be deleted.  I'd like to use this
opportunity
> to "clean-up", in this case closing a database connection.
> 
> Can you suggest a way to do this? I would like something more reliable
> than
> Java's finalize() method.  Or can an overidable method be easily added
at
> this point in the release cycle?
> 
> Thanks,
> Dan
> 
> 
> ___
> Mav-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mav-user

___
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user



RE: [Mav-user] Howto: Getting the JSP Example Working

2002-03-15 Thread Jeff Schnitzer

> From: Jordan C N Chong [mailto:[EMAIL PROTECTED]]
> 
> Thousand thanks for your tip. I got this error when I start up the
Tomcat:
> log4j:ERROR No appenders could be found for category
> (org.infohazard.maverick.Di
> spatcher).
> log4j:ERROR Please initialize the log4j system properly.
> 
> What does it mean???

It means that the logging system is not initialized :-)  Scott included
a link to the FAQ in his email:
http://mav.sourceforge.net/maverick-manual.html#N10722

If you do not desire detailed logging information, feel free to ignore
the message.

> And when I run the friendbook example, the following problems
happened:
> 
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
>   at
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:875)
>   ... ...
> 
> Root Cause:
> java.lang.SecurityException: sealing violation
>   at java.net.URLClassLoader.defineClass(Unknown Source)
>   ... ...

Hmmm, sealing violations.  I have heard much about these but not
experienced them myself.  Which exact versions of tomcat, jdk, and xslt
processor (if you're using one) are you using?  And what is the
remainder of the Root Cause stack trace?

Jeff Schnitzer
[EMAIL PROTECTED]

___
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user



RE: [Mav-user] Howto: Getting the JSP Example Working

2002-03-15 Thread Jeff Schnitzer


I've got to admit that that stack trace doesn't offer me any clues.  You
should probably upgrade to the 4.0.3 version of Tomcat, because there
are some security issues with prior versions.  I would also try updating
to the latest version of Xalan (you are using xslt, right?).

Switching to JDK1.4, of course, is an option :-)

Does anyone else understand sealing violations?

Jeff

> -Original Message-
> From: Jordan C N Chong [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 11:19 AM
> To: Jeff Schnitzer
> Subject: RE: [Mav-user] Howto: Getting the JSP Example Working
> 
> Dear Jeff... :)
> 
> I am not sure which version xalan and I am using.
> but tomcat is 4.0, jdk is jdk1.3.0_02
> and this is the whole page of exception (man... :))
> 
> To ease the pain, do you think I should switch the whole thing to
jdk1.4??
> thanks.
> 
> Exception Report:
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
>   at
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:875)
>   at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
21
> )
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.
> ja
> va:214)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.
> ja
> va:215)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:236
6)
>   at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:1
> 64
> )
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :5
> 66)
>   at
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :5
> 64)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
ja
> va
> :163)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
av
> a:
> 1005)
>   at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
10
> 98
> )
>   at java.lang.Thread.run(Unknown Source)
> 
> Root Cause:
> java.lang.SecurityException: sealing violation
>   at java.net.URLClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.access$100(Unknown Source)
>   at java.net.URLClassLoader$1.run(Unknown Source)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(Unknown Source)
>   at
>
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLo
ad
> er
> .java:671)
>   at
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
ad
> er
> .java:1090)
>   at
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
ad
> er
> .java:989)
>   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>   at
>
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocatio
ns
> Ca
> che.java:164)
>   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:265)
>   at
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:856)
>   at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
21
> )
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.
> ja
> va:214)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va
> :5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.
> ja
> va:215)
>   at
>
org.apache.catalina.core.