From: gxdev D. <gx...@ya...> - 2005-05-26 15:33:52
|
hi I disabled shib before I did the build. Thanks. --- Alistair Young <ali...@sm...> wrote: > did you build with shibb enabled? I had problems > with log4j-1.2.5.jar > being in WEB-INF/lib > > Alistair > > On 26 May 2005, at 16:14, gxdev Developer wrote: > > > hi > > > > I checkout the bod source code from the CVS head > at > > 3pm. > > > > Did a build using ANT everything went fine. > > Then did a setup using bodington.war everything > went > > fine. > > > > But when I hit the browser at the following URL : > > > > http://mywebserver/bodington/site/ > > > > I get the following exception throw at me: > > > > java.lang.NoClassDefFoundError > > > > > org.bodington.servlet.template.XmlTemplate.class$(XmlTemplate.java:96) > > > > > org.bodington.servlet.template.XmlTemplate.compile(XmlTemplate.java: > > > 630) > > > > > org.bodington.servlet.template.XmlTemplate.compile(XmlTemplate.java: > > > 747) > > > > > org.bodington.servlet.template.XmlTemplate.getProcessor(XmlTemplate.jav > > > a:413) > > > > > org.bodington.servlet.template.Template.getXmlTemplateProcessor(Templat > > > e.java:357) > > > > > org.bodington.servlet.BuildingServlet.doProcessing(BuildingServlet.java > > > :570) > > > > > org.bodington.servlet.BuildingServlet.doGet(BuildingServlet.java:423) > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > > > > Thanks. > > > > > > > > > > > > > > > ___________________________________________________________ > > Yahoo! Messenger - NEW crystal clear PC to PC > calling worldwide with > > voicemail http://uk.messenger.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Yahoo. > > Introducing Yahoo! Search Developer Network - > Create apps using Yahoo! > > Search APIs Find out how you can build Yahoo! > directly into your own > > Applications - visit > > > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > > _______________________________________________ > > Bodington-developers mailing list > > Bod...@li... > > > https://lists.sourceforge.net/lists/listinfo/bodington-developers > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create > apps using Yahoo! > Search APIs Find out how you can build Yahoo! > directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers > ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com |
From: gxdev D. <gx...@ya...> - 2005-05-26 16:11:03
|
Hi I am using: * java 1.5 * Tomcat 5.5.9 * Red Hat 9 In my $CATALINA_HOME/webapps/bodington/WEB-INF/lib: -rw-r--r-- 1 root root 54829 May 26 15:05 activation.jar -rw-r--r-- 1 root root 1201588 May 26 15:07 bodserver.jar -rw-r--r-- 1 root root 288528 May 26 15:05 ldap.jar -rw-r--r-- 1 root root 352291 May 26 15:05 log4j.jar -rw-r--r-- 1 root root 347137 May 26 15:05 mail.jar -rw-r--r-- 1 root root 2956 May 26 15:07 res.jar As you can see I only have one log4j.jar in it. And I don't have a another log4j.jar on my class path. Thanks. --- Matthew Buckett <mat...@co...> wrote: > gxdev Developer wrote: > > hi > > > > I checkout the bod source code from the CVS head > at > > 3pm. > > > > Did a build using ANT everything went fine. > > Then did a setup using bodington.war everything > went > > fine. > > > > But when I hit the browser at the following URL : > > > > http://mywebserver/bodington/site/ > > > > I get the following exception throw at me: > > > > java.lang.NoClassDefFoundError > > Just a few background questions: > What JVM are you using (eg: Sun 1.5)? > What servlet container are you using (eg: Tomcat > 5.0)? > > -- > +--Matthew > Buckett-----------------------------------------+ > | VLE Developer, Learning Technologies Group > | > | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ > | > +------------Computing Services, University of > Oxford------+ > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create > apps using Yahoo! > Search APIs Find out how you can build Yahoo! > directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com |
From: Colin T. <col...@co...> - 2005-05-27 10:05:58
|
Did you get this problem sorted Atif? Colin ____________________________________ Colin Tatham VLE Team Oxford University Computing Services www.oucs.ox.ac.uk/ltg/vle/ www.bodington.org > -----Original Message----- > From: bod...@li... > [mailto:bod...@li...]On Behalf Of > Matthew Buckett > Sent: 26 May 2005 17:33 > To: bod...@li... > Subject: Re: [Bodington-developers] Bodington bug > > > gxdev Developer wrote: > > hi > > > > I checkout the bod source code from the CVS head at > > 3pm. > > > > Did a build using ANT everything went fine. > > Then did a setup using bodington.war everything went > > fine. > > > > But when I hit the browser at the following URL : > > > > http://mywebserver/bodington/site/ > > > > I get the following exception throw at me: > > > > java.lang.NoClassDefFoundError > > > > > org.bodington.servlet.template.XmlTemplate.class$(XmlTemplate.java:96) > > This is the line that attempts to setup the Logger for the > class which > has now been removed in HEAD (a few minutes ago). You could try a CVS > update and a new build, although my builds worked fine before > and after > removing this line. > > > > org.bodington.servlet.template.XmlTemplate.compile(XmlTemplate > .java:630) > > This is the line that tries to call the Java compiler to compile the > template. Are you running Tomcat with the JDK rather than the JRE? > > One way round this might be to turn template compilation on in the > build.properties so that it doesn't happen in the servlet > container world. > > If you have somewhere (website?) you can put the WAR you built that I > can grab it from I'll have a look and see if I can figure out > what is wrong. > > -- > +--Matthew Buckett-----------------------------------------+ > | VLE Developer, Learning Technologies Group | > | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | > +------------Computing Services, University of Oxford------+ > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ Bodington-developers mailing list Bod...@li... https://lists.sourceforge.net/lists/listinfo/bodington-developers |
From: gxdev D. <gx...@ya...> - 2005-05-27 10:48:45
|
hi checkout a new version of bodington from cvs head. Did the build it worked fine. I had following setup on my build.properties template compilation on shib disabled set build.templates.xmlwarn=yes Did the setup it worked fine. But when I hit the browser at the following URL : http://mywebserver/bodington/site/ I now get the following exception throw at me: java.lang.NoClassDefFoundError: com/sun/tools/javac/Main org.bodington.servlet.template.XmlTemplate.compile(XmlTemplate.java:663) org.bodington.servlet.template.XmlTemplate.compile(XmlTemplate.java:746) org.bodington.servlet.template.XmlTemplate.getProcessor(XmlTemplate.java:412) org.bodington.servlet.template.Template.getXmlTemplateProcessor(Template.java:357) org.bodington.servlet.BuildingServlet.doProcessing(BuildingServlet.java:570) org.bodington.servlet.BuildingServlet.doGet(BuildingServlet.java:423) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) It seams it can't find the java compiler. I am using: Sun jdk 1.5 Tomcat 5.5.9 Ant version 1.6.2 Is there property that you need to set for bod to make it work with jdk 1.5??????? I thought we got bod sorted for jdk 1.5, or am i wrong? Some good work was done to get it sort. Thanks Atif. --- Colin Tatham <col...@co...> wrote: > > Did you get this problem sorted Atif? > > Colin > > ____________________________________ > Colin Tatham > VLE Team > Oxford University Computing Services > www.oucs.ox.ac.uk/ltg/vle/ > www.bodington.org > > > > > -----Original Message----- > > From: > bod...@li... > > > [mailto:bod...@li...]On > Behalf Of > > Matthew Buckett > > Sent: 26 May 2005 17:33 > > To: bod...@li... > > Subject: Re: [Bodington-developers] Bodington bug > > > > > > gxdev Developer wrote: > > > hi > > > > > > I checkout the bod source code from the CVS head > at > > > 3pm. > > > > > > Did a build using ANT everything went fine. > > > Then did a setup using bodington.war everything > went > > > fine. > > > > > > But when I hit the browser at the following URL > : > > > > > > http://mywebserver/bodington/site/ > > > > > > I get the following exception throw at me: > > > > > > java.lang.NoClassDefFoundError > > > > > > > > > org.bodington.servlet.template.XmlTemplate.class$(XmlTemplate.java:96) > > > > This is the line that attempts to setup the Logger > for the > > class which > > has now been removed in HEAD (a few minutes ago). > You could try a CVS > > update and a new build, although my builds worked > fine before > > and after > > removing this line. > > > > > > > > org.bodington.servlet.template.XmlTemplate.compile(XmlTemplate > > .java:630) > > > > This is the line that tries to call the Java > compiler to compile the > > template. Are you running Tomcat with the JDK > rather than the JRE? > > > > One way round this might be to turn template > compilation on in the > > build.properties so that it doesn't happen in the > servlet > > container world. > > > > If you have somewhere (website?) you can put the > WAR you built that I > > can grab it from I'll have a look and see if I can > figure out > > what is wrong. > > > > -- > > +--Matthew > Buckett-----------------------------------------+ > > | VLE Developer, Learning Technologies Group > | > > | Tel: +44 (0) 1865 283660 > http://www.oucs.ox.ac.uk/ | > > +------------Computing Services, University of > Oxford------+ > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Yahoo. > > Introducing Yahoo! Search Developer Network - > Create apps using Yahoo! > > Search APIs Find out how you can build Yahoo! > directly into your own > > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create > apps using Yahoo! > Search APIs Find out how you can build Yahoo! > directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers > ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com |
From: Matthew B. <mat...@co...> - 2005-05-27 11:02:32
|
gxdev Developer wrote: > hi > > checkout a new version of bodington from cvs head. > > Did the build it worked fine. > I had following setup on my build.properties > template compilation on If you had template compilation turned on in your build I'm supprised that Bod is trying to compile templates. Do we still have the timestamp bug when unpacking the WAR (are you using a WAR?). > But when I hit the browser at the following URL : > > http://mywebserver/bodington/site/ > > I now get the following exception throw at me: > > java.lang.NoClassDefFoundError: > com/sun/tools/javac/Main Ok, it looks like your running Tomcat with a JRE rather than a JDK. Do you have multiple copies of java installed? When tomcat starts up normally it logs where it thinks JAVA_HOME is: Using JAVA_HOME: /usr/lib/j2sdk1.4-sun/ Does your tomcat startup look to be using a JDK? > org.bodington.servlet.template.XmlTemplate.compile(XmlTemplate.java:663) > Is there property that you need to set for bod to make > it work with jdk 1.5??????? Not as far as I know. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |
From: gxdev D. <gx...@ya...> - 2005-05-27 11:06:17
|
It seams the entry point for the compiler(1.5) has moved to: com.sun.tools.javac.main.Main Thanks. ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com |
From: Matthew B. <mat...@co...> - 2005-05-27 11:21:45
|
gxdev Developer wrote: > It seams the entry point for the compiler(1.5) has > moved to: > com.sun.tools.javac.main.Main Although java 1.5 does have this class the other class still exists: com.sun.tools.javac.Main and I can sucessfully compile the Bodington templates using old current entry point. buckett@oucs-matthewb:~/workspace/bodington_head $ java -version java version "1.5.0_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing) buckett@oucs-matthewb:~/workspace/bodington_head $ ant compile-templates Buildfile: build.xml init: [copy] Copying 1 file to /home/buckett/workspace/bodington_head/build compile: rmi-it: build: prepare-compile-task: compile-templates: [template-compiler] Compiling 468 templates to /home/buckett/workspace/bodington_head/build/bodington/WEB-INF/template_classes BUILD SUCCESSFUL Total time: 1 minute 15 seconds -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |
From: gxdev D. <gx...@ya...> - 2005-05-27 11:13:51
|
> > Ok, it looks like your running Tomcat with a JRE > rather than a JDK. Do > you have multiple copies of java installed? When > tomcat starts up > normally it logs where it thinks JAVA_HOME is: > > Using JAVA_HOME: /usr/lib/j2sdk1.4-sun/ > > Does your tomcat startup look to be using a JDK? output from my tomcat when it starts: Using CATALINA_BASE: /root/makejt/jakarta-tomcat-5.5.9 Using CATALINA_HOME: /root/makejt/jakarta-tomcat-5.5.9 Using CATALINA_TMPDIR: /root/makejt/jakarta-tomcat-5.5.9/temp Using JRE_HOME: /usr/java/jdk1.5.0_02 As you can see I am using jdk not jre. Thanks. ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com |
From: Matthew B. <mat...@co...> - 2005-05-27 11:33:28
|
gxdev Developer wrote: >>Ok, it looks like your running Tomcat with a JRE >>rather than a JDK. Do >>you have multiple copies of java installed? When >>tomcat starts up >>normally it logs where it thinks JAVA_HOME is: >> >>Using JAVA_HOME: /usr/lib/j2sdk1.4-sun/ >> >>Does your tomcat startup look to be using a JDK? > > > output from my tomcat when it starts: > Using CATALINA_BASE: > /root/makejt/jakarta-tomcat-5.5.9 > Using CATALINA_HOME: > /root/makejt/jakarta-tomcat-5.5.9 > Using CATALINA_TMPDIR: > /root/makejt/jakarta-tomcat-5.5.9/temp > Using JRE_HOME: /usr/java/jdk1.5.0_02 > > As you can see I am using jdk not jre. Well it's pointing to your JDK but only treating it as a JRE. When tomcat starts up it doesn't add the tools.jar to the classpath. The way to fix this is to add tools.jar to your tomcat classpath. If you had template compilation turned on I am still supprise your saw this message. We need to change this error to something MUCH more helpful (Eg: Bodington cannot find the java compiler. Please make sure you are running bodington with a JDK and that tools.jar is on the servlet container classpath). -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |
From: Matthew B. <mat...@co...> - 2005-05-27 13:19:04
|
Matthew Buckett wrote: >> Using JRE_HOME: /usr/java/jdk1.5.0_02 >> >> As you can see I am using jdk not jre. > > Well it's pointing to your JDK but only treating it as a JRE. When > tomcat starts up it doesn't add the tools.jar to the classpath. Maybe we should think about allowing the template compilation to use the Eclipse JDT that is shipped with Tomcat 5.5 if it is available. This isn't simple as it would probably mean having a template compiler factory that spits out a template compiler of either javac type or eclipse type depending on what is available. If nothing else it shows that if we want Bodington to be easy to install we should have the templates compiled by default (they currently are) so that people don't see this problem until they start trying to customize Bodington. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |
From: Adam M. <ada...@co...> - 2005-05-27 13:48:12
|
Yes - a better error message is v desirable. Adam | | Well it's pointing to your JDK but only treating it as a JRE. When | tomcat starts up it doesn't add the tools.jar to the classpath. | | The way to fix this is to add tools.jar to your tomcat classpath. | If you had template compilation turned on I am still supprise your saw | this message. | | We need to change this error to something MUCH more helpful (Eg: | Bodington cannot find the java compiler. Please make sure you are | running bodington with a JDK and that tools.jar is on the servlet | container classpath). | | -- | +--Matthew Buckett-----------------------------------------+ | | VLE Developer, Learning Technologies Group | | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | | +------------Computing Services, University of Oxford------+ | | | ------------------------------------------------------- | This SF.Net email is sponsored by Yahoo. | Introducing Yahoo! Search Developer Network - Create apps using Yahoo! | Search APIs Find out how you can build Yahoo! directly into your own | Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 | _______________________________________________ | Bodington-developers mailing list | Bod...@li... | https://lists.sourceforge.net/lists/listinfo/bodington-developers |
From: gxdev D. <gx...@ya...> - 2005-05-27 12:11:59
|
> Well it's pointing to your JDK but only treating it > as a JRE. Well spoted Matthew. I think I need glasses. > When tomcat starts up it doesn't add the tools.jar to the > classpath. > The way to fix this is to add tools.jar to your > tomcat classpath. Yes you are right. Thanks. Bod starts up fine now. > We need to change this error to something MUCH more > helpful (Eg: > Bodington cannot find the java compiler. Please make > sure you are > running bodington with a JDK and that tools.jar is > on the servlet > container classpath). Good idea. ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com |