Hello,

It looks like something is requiring the Apache Commons Logging
component-- though from my quick investigation, I haven't determined
what.  commons-lang, commons-collections and commons-configuration are
all required by the library, but none seem to use commons-logging
classes.  We don't do any production-level logging in this sample
(just System.err.println statements)

One thing to try (if you're just using the sample for learning
purposes) would be to copy the commons-logging.jar file into
<TOMCAT_HOME>/shared/lib and restarting?

This may work-- if not, please let me know and I'll take a look into
this further.

Cheers,
-Ryan

On Aug 1, 11:31 pm, venkyengineer <[EMAIL PROTECTED]> wrote:
> Hai Friends,
>      I am running a sample program named EventPublisher Program. I am
> using Eclipse to execute the build.xml from the gdata\mashups\
> folder.
>
>     After compiling i get the result as
>
> Buildfile: D:\Tools\gdata\java\mashups\eventpub\build.xml
> clean:
>    [delete] Deleting directory D:\Tools\gdata\java\mashups\eventpub
> \build
>    [delete] Deleting directory D:\Tools\gdata\java\mashups\eventpub
> \deploy
> checkdeps:
> copydeps:
> build:
>     [mkdir] Created dir: D:\Tools\gdata\java\mashups\eventpub\build
>     [javac] Compiling 5 source files to D:\Tools\gdata\java\mashups
> \eventpub\build
> deploy:
>     [mkdir] Created dir: D:\Tools\gdata\java\mashups\eventpub\deploy
>     [mkdir] Created dir: D:\Tools\gdata\java\mashups\eventpub\deploy
> \content
>     [mkdir] Created dir: D:\Tools\gdata\java\mashups\eventpub\deploy
> \content\WEB-INF
>     [mkdir] Created dir: D:\Tools\gdata\java\mashups\eventpub\deploy
> \content\WEB-INF\lib
>      [copy] Copying 1 file to D:\Tools\gdata\java\mashups\eventpub
> \deploy\content\WEB-INF
>      [copy] Copying 15 files to D:\Tools\gdata\java\mashups\eventpub
> \deploy\content\WEB-INF\lib
>      [copy] Copying 6 files to D:\Tools\gdata\java\mashups\eventpub
> \deploy\content\WEB-INF\classes
>      [copy] Copying 6 files to D:\Tools\gdata\java\mashups\eventpub
> \deploy\content\WEB-INF\jsp
>      [copy] Copying 1 file to D:\Tools\gdata\java\mashups\eventpub
> \deploy\content
>       [jar] Building jar: D:\Tools\gdata\java\mashups\eventpub\deploy
> \EventPublisher.war
> all:
> BUILD SUCCESSFUL
> Total time: 2 seconds
>
> Now i have copied the EventPublisher.war file to the tomcat/webaps
> directory also and deployed the file. while deploying the file i get a
> error message as
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Error instantiating servlet class
> mashups.eventpub.EventPublisherServlet
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> 104)
>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 261)
>         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 844)
>         org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:581)
>         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 447)
>         java.lang.Thread.run(Unknown Source)
>
> root cause
>
> java.lang.NoClassDefFoundError: org/apache/commons/logging/Log
>         mashups.eventpub.EventPublisherServlet.<init>(Unknown Source)
>         sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>         sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>         java.lang.reflect.Constructor.newInstance(Unknown Source)
>         java.lang.Class.newInstance0(Unknown Source)
>         java.lang.Class.newInstance(Unknown Source)
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> 104)
>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 261)
>         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 844)
>         org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:581)
>         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 447)
>         java.lang.Thread.run(Unknown Source)
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/6.0.13 logs.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to