Re: Does JspC in 5.0 rely on Hibernate?

2005-08-10 Thread Tim Funk

There is definitely no dependency on hibernate.

Since it is looking for: net/sf/hibernate/Lifecycle - I might be *guessing* 
there could be a taglib (or something) somewhere with that might by trying to 
create a net.sf.hibernate.Lifecycle. Otherwise - there might be a class which 
(indirectly) inherits from net.sf.hibernate.Lifecycle.


-Tim

Will Hartung wrote:

Hi all!

I'm working on migrating from Tomcat 4.1.x to 5.0.x, and one of the
components is JspC.

Using the ANT Task presented in the 5.0 docs as inspiration I have:

  target name=jspcx depends=ensure-jsp-src

taskdef classname=org.apache.jasper.JspC name=jasper2 
  classpath id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${tomcat.home}/bin
  include name=*.jar/
/fileset
fileset dir=${tomcat.home}/server/lib
  include name=*.jar/
/fileset
fileset dir=${tomcat.home}/common/lib
  include name=*.jar/
/fileset
  /classpath
/taskdef

jasper2
 validateXml=false
 uriroot=${image}
 webXmlFragment=${jsp.webapp.xml}
 outputDir=${jsp.src.dir}
 verbose=99 /

  /target

I added the verbose tag to get some debugging info.

During the build, I get this:

  [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile
  [jasper2] INFO: Built File: \Common\Calendar.jsp
  [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile
  [jasper2] INFO: Built File: \Common\CancelDialog.jsp
  [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile
  [jasper2] INFO: Built File: \Common\CCMFulfillmentRequestFilterFrame.jsp
  [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile
  [jasper2] INFO: Built File: \Common\CCMFulfillmentRequestFilterNav.jsp
  [jasper2] Error in class org.apache.jasper.JspC

BUILD FAILED
file:c:/ecms/Working/WebServerCode/build.xml:385:
java.lang.NoClassDefFoundError
: net/sf/hibernate/Lifecycle

If I immediately restart Ant, if continues on it merry way, goes farther,
and then I get the NoClassDefFoundError again.

So, it's not my JSPs (which don't use hibernate), and appears to be JspC
itself!

I don't see anything resembling a Hibernate jar in the Tomcat distro, so I'm
just curious where this might cropping up.



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



Does JspC in 5.0 rely on Hibernate?

2005-08-09 Thread Will Hartung
Hi all!

I'm working on migrating from Tomcat 4.1.x to 5.0.x, and one of the
components is JspC.

Using the ANT Task presented in the 5.0 docs as inspiration I have:

  target name=jspcx depends=ensure-jsp-src

taskdef classname=org.apache.jasper.JspC name=jasper2 
  classpath id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${tomcat.home}/bin
  include name=*.jar/
/fileset
fileset dir=${tomcat.home}/server/lib
  include name=*.jar/
/fileset
fileset dir=${tomcat.home}/common/lib
  include name=*.jar/
/fileset
  /classpath
/taskdef

jasper2
 validateXml=false
 uriroot=${image}
 webXmlFragment=${jsp.webapp.xml}
 outputDir=${jsp.src.dir}
 verbose=99 /

  /target

I added the verbose tag to get some debugging info.

During the build, I get this:

  [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile
  [jasper2] INFO: Built File: \Common\Calendar.jsp
  [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile
  [jasper2] INFO: Built File: \Common\CancelDialog.jsp
  [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile
  [jasper2] INFO: Built File: \Common\CCMFulfillmentRequestFilterFrame.jsp
  [jasper2] Aug 9, 2005 4:01:56 PM org.apache.jasper.JspC processFile
  [jasper2] INFO: Built File: \Common\CCMFulfillmentRequestFilterNav.jsp
  [jasper2] Error in class org.apache.jasper.JspC

BUILD FAILED
file:c:/ecms/Working/WebServerCode/build.xml:385:
java.lang.NoClassDefFoundError
: net/sf/hibernate/Lifecycle

If I immediately restart Ant, if continues on it merry way, goes farther,
and then I get the NoClassDefFoundError again.

So, it's not my JSPs (which don't use hibernate), and appears to be JspC
itself!

I don't see anything resembling a Hibernate jar in the Tomcat distro, so I'm
just curious where this might cropping up.

Any ideas?

Regards,

Will Hartung
([EMAIL PROTECTED])


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