incubator-photark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Subash Chaturanga <subash...@gmail.com>
Subject Class Not Found Exception due to a newly created component in web.composite
Date Wed, 06 Oct 2010 12:35:28 GMT
Hi,

For giving support to album subscription in UI , I created a component in
web.composite which should expose the service which contains methods to get
all images of a given url and also to retrieve all such albums so that i can
use it in the init function in gallery.js to show those albums .

I created the relevant class and interface to make it a  service. for the
moment i didn't use any references in the component as i just wanted to
check whether this works roughly. This is the component.

    <component name="PicasaAlbumSubscription">
<implementation.java
class="org.apache.photark.album.picasa.PicasaSubscription"/>

<service name="PicasaAlbumSubscription">
   <interface.java
interface="org.apache.photark.services.gallery.SubscribedAlbumGallery"/>
   <!--<binding.sca name="local"/>-->
   <tuscany:binding.jsonrpc uri="/PicasaAlbumSubscription"/>
   </service>
</component>


When I tried to deploy this on tomcat it gives the following error. But when
I removed the component , then it deploys. So the problem is in the
component.

Oct 6, 2010 5:45:01 PM
org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcessor
[Contribution:
file:/home/siddhi/webutils/apache-tomcat-6.0.29/webapps/photark/, Composite:
{http://org.apache.photoark}photo-gallery-jcr] (ClassNotFoundException)
SEVERE: *Class Not Found Exception*:
org.apache.photark.album.picasa.PicasaSubscription
Oct 6, 2010 5:45:01 PM
org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcessor
[Contribution:
file:/home/siddhi/webutils/apache-tomcat-6.0.29/webapps/photark/, Composite:
{http://org.apache.photoark}photo-gallery-jcr] (ClassNotFoundException)
SEVERE: Class Not Found Exception:
org.apache.photark.album.picasa.PicasaSubscription
Oct 6, 2010 5:45:01 PM
org.apache.tuscany.sca.builder.impl.ComponentBuilderImpl [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component:
PicasaAlbumSubscription] (UnresolvedComponentImplementation)
SEVERE: [ASM60030,JCI50004,JCI80001] Component implementation not resolved:
Component = PicasaAlbumSubscription Uri = PicasaAlbumSubscription
Oct 6, 2010 5:45:01 PM
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter init
SEVERE: org.oasisopen.sca.ServiceRuntimeException: [Contribution:
file:/home/siddhi/webutils/apache-tomcat-6.0.29/webapps/photark/, Composite:
{http://org.apache.photoark}photo-gallery-jcr] - Class Not Found Exception:
org.apache.photark.album.picasa.PicasaSubscription
java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException:
[Contribution:
file:/home/siddhi/webutils/apache-tomcat-6.0.29/webapps/photark/, Composite:
{http://org.apache.photoark}photo-gallery-jcr] - Class Not Found Exception:
org.apache.photark.album.picasa.PicasaSubscription
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:173)
at
org.apache.tuscany.sca.host.webapp.WebAppHelper.createAndStartNode(WebAppHelper.java:215)
at
org.apache.tuscany.sca.host.webapp.WebAppHelper.init(WebAppHelper.java:169)
at
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:63)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.oasisopen.sca.ServiceRuntimeException: [Contribution:
file:/home/siddhi/webutils/apache-tomcat-6.0.29/webapps/photark/, Composite:
{http://org.apache.photoark}photo-gallery-jcr] - Class Not Found Exception:
org.apache.photark.album.picasa.PicasaSubscription
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:199)
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:310)
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:127)
... 30 more
Oct 6, 2010 5:45:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Oct 6, 2010 5:45:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/photark] startup failed due to previous errors
Oct 6, 2010 5:45:01 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
SEVERE: The web application [/photark] registered the JBDC driver
[org.apache.derby.jdbc.AutoloadedDriver] but failed to unregister it when
the web application was stopped. To preven


Regards
/subash

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message