Mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holman, Cal" <Cal.Hol...@paymentech.com>
Subject RE: Quartz Struts Plugin Errors
Date Fri, 23 May 2003 13:27:32 GMT
I modified the quartz.properties file in the quartz.jar.  Open it with winzip extract change
and rezip/jar.  Evidently the one in the quartz.jar is the default - I am not sure where to
put a quartz.properties file - I tried the usual location WEB-INF/classes to no avail.

Cal 

http://www.calandva.com/            Last update 04/26/03



-----Original Message-----
From: Mick.Knutson@ubsw.com [mailto:Mick.Knutson@ubsw.com]
Sent: Friday, May 23, 2003 08:38
To: struts-user@jakarta.apache.org
Subject: RE: Quartz Struts Plugin Errors

I which file did you add "QuartzScheduler.setSchedulerThreadClassLoader()"?
Where did you add the association "org.quartz.scheduler.useClassLoaderOfInitializer"?

Where is this environment variable "useClassLoaderOfInitializer"?


-----Original Message-----
From: Holman, Cal [mailto:Cal.Holman@paymentech.com]
Sent: Friday, May 23, 2003 2:26 PM
To: Struts Users Mailing List
Subject: RE: Quartz Struts Plugin Errors


I was having a similar issue where the classpath for Quartz was based on my Tomcat home. For
version 1.0.7 I added the property for specifying the class loader as in the release notes
state below and all was good.  For some reason in 1.1.2 I did not have to add the class loader
property.  I do not see where they added some default behavior so I am not sure why 1.1.2
behaves differently.  The properties file is in the quartz.jar.  

It would be great if the Quartz Struts Plug In supported setting the quartz properties from
the XML file.  Does anyone know where the quartz program looks for the property file prior
to using the one included in the JAR?

10- Added QuartzScheduler.setSchedulerThreadClassLoader() - and
   associated "org.quartz.scheduler.useClassLoaderOfInitializer"
   property for StdSchedulerFactory.
  
   If you're using Quartz in an application server environment
   (or servlet container) and experience class loading issues, you
   may wish to try setting the "useClassLoaderOfInitializer" property
   to true.  This instructs Quartz to "steal" the class loader off of the
   thread that is initializing Quartz, and use that class loader for the
   loading of Job classes.  For instance if you initialize Quartz with a
   startup-servlet (in you web-app) then Quartz could grab the class
   loader off of the thread that is initializing the web-app - thus
   providing access to the jobs classes that are defined in jars only
   accessible by the web-app's class loader.

Cal

http://www.calandva.com/            Last update 04/26/03


-----Original Message-----
From: Mick.Knutson@ubsw.com [mailto:Mick.Knutson@ubsw.com]
Sent: Friday, May 23, 2003 02:30
To: struts-user@jakarta.apache.org
Subject: RE: Quartz Struts Plugin Errors

I will try that and let you know.

-----Original Message-----
From: Joe Germuska [mailto:Joe@Germuska.com]
Sent: Thursday, May 22, 2003 6:33 PM
To: Struts Users Mailing List
Cc: Patrick@JGSullivan.com
Subject: RE: Quartz Struts Plugin Errors


At 16:39 +0200 5/22/03, Mick.Knutson@ubsw.com wrote:
>According to this article:
>http://www.onjava.com/lpt/a/onjava/2001/06/26/ejb.html, I have done
>it correctly by adding all 3 quartz related jar files into my
>WEB-INF/lib. So, according to J2EE 1.3 spec, I am in compliace and
>the quartz.xml file is found. So, this is quite distressing!
>
>What does this QuartzConfig file do?

The QuartzConfig object was created to facilitate using XML to
configure Quartz.

Ultimately, the problem is that the call made in Digester's
ObjectCreateRule to instantiate a QuartzConfig is using a ClassLoader
that can't find the class.

Looking into the Digester code, it appears that Digester defaults to
using the same ClassLoader that loaded it -- does JBoss use Digester
itself?  That could explain the problem.

http://jakarta.apache.org/commons/digester/xref/org/apache/commons/digester/ObjectCreateRule.html#252
http://jakarta.apache.org/commons/digester/xref/org/apache/commons/digester/Digester.html#405

Odds are good that if you snuck into SchedulerBuilder and added
        digester.setUseContextClassLoader(true)
at line 197 or so, you might solve the problem.

http://demo.jgsullivan.com/quartz/maven/xref/com/jgsullivan/quartz/SchedulerBuilder.html#199

You can download the source at
http://demo.jgsullivan.com/quartz/maven/download.html

If that works, let us know and we can update the distribution.

Joe



At 13:07 +0200 5/21/03, Mick.Knutson@ubsw.com wrote:
>java.lang.ClassNotFoundException: No ClassLoaders found for:
>com.jgsullivan.quartz.config.QuartzConfig
>         at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:156)
>         at
>org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:161)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>         at
>org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
>         at org.apache.commons.digester.Rule.begin(Rule.java:200)
>         at
>org.apache.commons.digester.Digester.startElement(Digester.java:1273)
>         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
>         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
>         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
>         at
>org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
>         at org.apache.commons.digester.Digester.parse(Digester.java:1548)
>         at
>com.jgsullivan.quartz.SchedulerBuilder.buildScheduler(SchedulerBuilder.java:199)

Is Digester being loaded from the webapp classpath?
--
--
Joe Germuska          
Joe@Germuska.com
http://blog.germuska.com  
"If nature worked that way, the universe would crash all the time."
        --Jaron Lanier

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

 
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary and
confidential information intended only for the use of the recipient(s) named above.  If you
are not the intended recipient, you may not print, distribute, or copy this message or any
attachments.  If you have received this communication in error, please notify the sender by
return e-mail and delete this message and any attachments from your computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary and
confidential information intended only for the use of the recipient(s) named above.  If you
are not the intended recipient, you may not print, distribute, or copy this message or any
attachments.  If you have received this communication in error, please notify the sender by
return e-mail and delete this message and any attachments from your computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message