Home » Archived » BIRT » Problems with Tomcat deployments failing on classpath
Problems with Tomcat deployments failing on classpath [message #152991] |
Wed, 12 April 2006 15:29 |
Eclipse User |
|
|
|
Originally posted by: stranm.genevaonline.com
Help!
I've been working in BIRT now for weeks and everything has gone fairly well,
I've gotten through what I think is a complex development and I'm impressed
with exactly how much BIRT can do...however, that was when I was doing
development. I use Eclipse 3.1 and the Tomcat plugin, which starts up tomcat
(Tomcat version is 5.5) so you can do debugging. I deploy BIRT along with my
application as opposed to separtately since I need to have a mix of scripted
and regular data sources (and the scripted sources need session stored
information about the user) so it doesn't really work for me to deploy it
separately but as I said it all works fine. Yesterday I went to deploy it on
Tomcat (same exact instance that works) and run it standalone without
Eclipse starting Tomcat up. NOTHING works, not even the sample web viewer I
get class path failures, I cannot begin to explain why? I even tried the
samples (both 2.0.1 and 2.1M5 on a clean machine with a tomcat install and I
always get the same failure, I get the intro page but when I try and run the
test helloworld report it generates a no class def found, (I verified that
the model.jar file is in the lib folder). My application gets a different
failure stack trace but it's really just more of the same thing, the driver
class doesn't load. Yet when I switch back to Eclipse and startup tomcat,
everything is just fine... This is frustrating, I've gone back through your
notes carefully and I think I've got everything configured correctly, any
ideas?
I'm completely stuck!
Here is the exception that's thrown:
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError:
org/eclipse/birt/report/model/api/extension/IMessages
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.access$100(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source) ...etc
|
|
|
Re: Problems with Tomcat deployments failing on classpath [message #153077 is a reply to message #152991] |
Wed, 12 April 2006 22:06 |
|
Mike,
If you download the Runtime and copy the Web Viewer Example directory
(adding iText and prototype.js) to the web apps directory on Tomcat does
this work?
Jason
"Mike Stan" <stranm@genevaonline.com> wrote in message
news:e1j6i0$qhe$1@utils.eclipse.org...
> Help!
>
> I've been working in BIRT now for weeks and everything has gone fairly
> well, I've gotten through what I think is a complex development and I'm
> impressed with exactly how much BIRT can do...however, that was when I was
> doing development. I use Eclipse 3.1 and the Tomcat plugin, which starts
> up tomcat (Tomcat version is 5.5) so you can do debugging. I deploy BIRT
> along with my application as opposed to separtately since I need to have a
> mix of scripted and regular data sources (and the scripted sources need
> session stored information about the user) so it doesn't really work for
> me to deploy it separately but as I said it all works fine. Yesterday I
> went to deploy it on Tomcat (same exact instance that works) and run it
> standalone without Eclipse starting Tomcat up. NOTHING works, not even the
> sample web viewer I get class path failures, I cannot begin to explain
> why? I even tried the samples (both 2.0.1 and 2.1M5 on a clean machine
> with a tomcat install and I always get the same failure, I get the intro
> page but when I try and run the test helloworld report it generates a no
> class def found, (I verified that the model.jar file is in the lib
> folder). My application gets a different failure stack trace but it's
> really just more of the same thing, the driver class doesn't load. Yet
> when I switch back to Eclipse and startup tomcat, everything is just
> fine... This is frustrating, I've gone back through your notes carefully
> and I think I've got everything configured correctly, any ideas?
> I'm completely stuck!
>
>
> Here is the exception that's thrown:
> javax.servlet.ServletException: Servlet execution threw an exception
>
>
> root cause
>
> java.lang.NoClassDefFoundError:
> org/eclipse/birt/report/model/api/extension/IMessages
> java.lang.ClassLoader.defineClass1(Native Method)
> java.lang.ClassLoader.defineClass(Unknown Source)
> java.security.SecureClassLoader.defineClass(Unknown Source)
> java.net.URLClassLoader.defineClass(Unknown Source)
> java.net.URLClassLoader.access$100(Unknown Source)
> java.net.URLClassLoader$1.run(Unknown Source)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(Unknown Source)
> java.lang.ClassLoader.loadClass(Unknown Source)
> java.lang.ClassLoader.loadClass(Unknown Source) ...etc
>
>
|
|
|
Re: Problems with Tomcat deployments failing on classpath [message #153131 is a reply to message #153077] |
Thu, 13 April 2006 01:17 |
Eclipse User |
|
|
|
Originally posted by: stranm.genevaonline.com
Jason:
Thanks for responding, I appreciate it. Backtracking a bit I tried shutting
off the switch in the eclipse tomcat plugin that includes the project in
tomcats classpath and when I do this it fails in the exact same way so I was
very sure it was classpath. I had the plugin write out for me what it
basically adds to tomcats path and decided that I would try simply including
all the plugin jar files in the web-inf/lib folder. Once I did this my
application works fine... I'm still a bit in the dark on why this happens
though I'm more or less just happy to be moving forward again... any
thoughts? Is there some variable I need to set? I saw that early on
BIRT_HOME needed to be set but I see that bug is officially listed as
closed, just wondering if there is something obvious that I overlooked? Note
that the runtime and the web viewer didn't seem to quite cover everything I
needed, the JDBC drivers didn't get found for some reason, I was getting a
null pointer exception when it tried to load them...when I pull all the jars
(including the ones in the plugins folders) into web-inf/lib it appears to
work.
MJS
"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:e1jtkn$344$1@utils.eclipse.org...
> Mike,
>
> If you download the Runtime and copy the Web Viewer Example directory
> (adding iText and prototype.js) to the web apps directory on Tomcat does
> this work?
>
> Jason
>
> "Mike Stan" <stranm@genevaonline.com> wrote in message
> news:e1j6i0$qhe$1@utils.eclipse.org...
>> Help!
>>
>> I've been working in BIRT now for weeks and everything has gone fairly
>> well, I've gotten through what I think is a complex development and I'm
>> impressed with exactly how much BIRT can do...however, that was when I
>> was doing development. I use Eclipse 3.1 and the Tomcat plugin, which
>> starts up tomcat (Tomcat version is 5.5) so you can do debugging. I
>> deploy BIRT along with my application as opposed to separtately since I
>> need to have a mix of scripted and regular data sources (and the scripted
>> sources need session stored information about the user) so it doesn't
>> really work for me to deploy it separately but as I said it all works
>> fine. Yesterday I went to deploy it on Tomcat (same exact instance that
>> works) and run it standalone without Eclipse starting Tomcat up. NOTHING
>> works, not even the sample web viewer I get class path failures, I cannot
>> begin to explain why? I even tried the samples (both 2.0.1 and 2.1M5 on a
>> clean machine with a tomcat install and I always get the same failure, I
>> get the intro page but when I try and run the test helloworld report it
>> generates a no class def found, (I verified that the model.jar file is in
>> the lib folder). My application gets a different failure stack trace but
>> it's really just more of the same thing, the driver class doesn't load.
>> Yet when I switch back to Eclipse and startup tomcat, everything is just
>> fine... This is frustrating, I've gone back through your notes carefully
>> and I think I've got everything configured correctly, any ideas?
>> I'm completely stuck!
>>
>>
>> Here is the exception that's thrown:
>> javax.servlet.ServletException: Servlet execution threw an exception
>>
>>
>> root cause
>>
>> java.lang.NoClassDefFoundError:
>> org/eclipse/birt/report/model/api/extension/IMessages
>> java.lang.ClassLoader.defineClass1(Native Method)
>> java.lang.ClassLoader.defineClass(Unknown Source)
>> java.security.SecureClassLoader.defineClass(Unknown Source)
>> java.net.URLClassLoader.defineClass(Unknown Source)
>> java.net.URLClassLoader.access$100(Unknown Source)
>> java.net.URLClassLoader$1.run(Unknown Source)
>> java.security.AccessController.doPrivileged(Native Method)
>> java.net.URLClassLoader.findClass(Unknown Source)
>> java.lang.ClassLoader.loadClass(Unknown Source)
>> java.lang.ClassLoader.loadClass(Unknown Source) ...etc
>>
>>
>
>
|
|
|
Re: Problems with Tomcat deployments failing on classpath [message #153464 is a reply to message #153131] |
Thu, 13 April 2006 16:13 |
|
Mike,
I am not exactly sure what is happening here.
If you copy the Web Viewer Example directory to Tomcat there is
a plugin for JDBC drivers
C:\Tomcat
5.5\webapps\birt\plugins\org.eclipse.birt.report.data.oda.jd bc\drivers
All you should have had to do was copy the driver to this location.
Jason
"Mike Stan" <stranm@genevaonline.com> wrote in message
news:e1k90l$o01$1@utils.eclipse.org...
> Jason:
>
> Thanks for responding, I appreciate it. Backtracking a bit I tried
> shutting off the switch in the eclipse tomcat plugin that includes the
> project in tomcats classpath and when I do this it fails in the exact same
> way so I was very sure it was classpath. I had the plugin write out for me
> what it basically adds to tomcats path and decided that I would try simply
> including all the plugin jar files in the web-inf/lib folder. Once I did
> this my application works fine... I'm still a bit in the dark on why this
> happens though I'm more or less just happy to be moving forward again...
> any thoughts? Is there some variable I need to set? I saw that early on
> BIRT_HOME needed to be set but I see that bug is officially listed as
> closed, just wondering if there is something obvious that I overlooked?
> Note that the runtime and the web viewer didn't seem to quite cover
> everything I needed, the JDBC drivers didn't get found for some reason, I
> was getting a null pointer exception when it tried to load them...when I
> pull all the jars (including the ones in the plugins folders) into
> web-inf/lib it appears to work.
>
> MJS
>
>
>
>
> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
> news:e1jtkn$344$1@utils.eclipse.org...
>> Mike,
>>
>> If you download the Runtime and copy the Web Viewer Example directory
>> (adding iText and prototype.js) to the web apps directory on Tomcat does
>> this work?
>>
>> Jason
>>
>> "Mike Stan" <stranm@genevaonline.com> wrote in message
>> news:e1j6i0$qhe$1@utils.eclipse.org...
>>> Help!
>>>
>>> I've been working in BIRT now for weeks and everything has gone fairly
>>> well, I've gotten through what I think is a complex development and I'm
>>> impressed with exactly how much BIRT can do...however, that was when I
>>> was doing development. I use Eclipse 3.1 and the Tomcat plugin, which
>>> starts up tomcat (Tomcat version is 5.5) so you can do debugging. I
>>> deploy BIRT along with my application as opposed to separtately since I
>>> need to have a mix of scripted and regular data sources (and the
>>> scripted sources need session stored information about the user) so it
>>> doesn't really work for me to deploy it separately but as I said it all
>>> works fine. Yesterday I went to deploy it on Tomcat (same exact instance
>>> that works) and run it standalone without Eclipse starting Tomcat up.
>>> NOTHING works, not even the sample web viewer I get class path failures,
>>> I cannot begin to explain why? I even tried the samples (both 2.0.1 and
>>> 2.1M5 on a clean machine with a tomcat install and I always get the same
>>> failure, I get the intro page but when I try and run the test helloworld
>>> report it generates a no class def found, (I verified that the model.jar
>>> file is in the lib folder). My application gets a different failure
>>> stack trace but it's really just more of the same thing, the driver
>>> class doesn't load. Yet when I switch back to Eclipse and startup
>>> tomcat, everything is just fine... This is frustrating, I've gone back
>>> through your notes carefully and I think I've got everything configured
>>> correctly, any ideas?
>>> I'm completely stuck!
>>>
>>>
>>> Here is the exception that's thrown:
>>> javax.servlet.ServletException: Servlet execution threw an exception
>>>
>>>
>>> root cause
>>>
>>> java.lang.NoClassDefFoundError:
>>> org/eclipse/birt/report/model/api/extension/IMessages
>>> java.lang.ClassLoader.defineClass1(Native Method)
>>> java.lang.ClassLoader.defineClass(Unknown Source)
>>> java.security.SecureClassLoader.defineClass(Unknown Source)
>>> java.net.URLClassLoader.defineClass(Unknown Source)
>>> java.net.URLClassLoader.access$100(Unknown Source)
>>> java.net.URLClassLoader$1.run(Unknown Source)
>>> java.security.AccessController.doPrivileged(Native Method)
>>> java.net.URLClassLoader.findClass(Unknown Source)
>>> java.lang.ClassLoader.loadClass(Unknown Source)
>>> java.lang.ClassLoader.loadClass(Unknown Source) ...etc
>>>
>>>
>>
>>
>
>
|
|
|
Goto Forum:
Current Time: Sat Nov 09 03:39:41 GMT 2024
Powered by FUDForum. Page generated in 0.03002 seconds
|