You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Willis C White <wh...@us.ibm.com> on 2009/06/13 21:54:35 UTC

Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)

I am looking for an example of running Dojo with Tuscany on Eclipse with 
Websphere (Rational Application Developer). Can some one point me to a 
working example?

If there is no example to do exactly what I need could I get some 
assistance getting the example below to work.

I tried to convert the example at the following address to work on Eclipse 
with Websphere and I ran into problems. 
https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/helloworld-dojo-webapp/

I am not sure what the issue was but i think it had something to do with 
the sca-contribution.xml  and the web.xml file or possibly not having jars 
in the WEB-INF/lib dir (not sure which jars to put in there)

RAD 7.5
Eclipse 3.4
Websphere 7

It goes to this address 
http://localhost:9081/HelloWorld/HelloWorldJSONRPC.html

and I get this error

Error 500: javax.servlet.ServletException: Filter [tuscany]: Could not 
find required filter class - 
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.class 




Willis White

 

 

Re: Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)

Posted by Luciano Resende <lu...@gmail.com>.
On Sat, Jun 13, 2009 at 12:54 PM, Willis C White<wh...@us.ibm.com> wrote:
>
> I am looking for an example of running Dojo with Tuscany on Eclipse with
> Websphere (Rational Application Developer). Can some one point me to a
> working example?
>
> If there is no example to do exactly what I need could I get some assistance
> getting the example below to work.
>
> I tried to convert the example at the following address to work on Eclipse
> with Websphere and I ran into problems.
> https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/helloworld-dojo-webapp/


I'm not sure what do you mean by "convert the example"  to work in
eclipse. If you follow [1], it should give you the necessary steps to
get your development environment working, and [2] give you details on
how to generate the eclipse IDE artifacts (and I assume RAD is same)
and then import the project into eclipse/RAD.


[1] http://tuscany.apache.org/sca-java-development-guide.html
[2] http://tuscany.apache.org/sca-java-development-guide.html#SCAJavaDevelopmentGuide-IDE

>
> I am not sure what the issue was but i think it had something to do with the
> sca-contribution.xml  and the web.xml file or possibly not having jars in
> the WEB-INF/lib dir (not sure which jars to put in there)
>

If you just build the war (e.g mvn clean install) and then deploy it
to WebSphere, what do you get ?
Also, Are you running plain WAS ? or does it have the SCA FeP
Installed ? If you do have the FeP, please check the following blog
post [3]

[3] http://lresende.blogspot.com/2009/03/how-to-use-apache-tuscany-with.html

> RAD 7.5
> Eclipse 3.4
> Websphere 7
>
> It goes to this address
> http://localhost:9081/HelloWorld/HelloWorldJSONRPC.html
>
> and I get this error
>
> Error 500: javax.servlet.ServletException: Filter [tuscany]: Could not find
> required filter class -
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.class
>
>
>
> Willis White
>
>

Hope this help you get further, otherwise please let us know what
other issues you are seeing.

-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)

Posted by ant elder <an...@gmail.com>.
>From that first stacktrace the error is:

"IWAE0037E Could not open C:\Program>
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\config\cells\IBM-8D73E7986F4Node02Cell\applications\HelloWorldEAR.ear\HelloWorldEAR.ear"

That makes it sound like something didn't go right when depolying the
application, is it possible something is wrong with the ear or there
was something else like some other program locking it while it was
being deployed?

   ...ant

On Mon, Jun 15, 2009 at 11:47 PM, Willis C White<wh...@us.ibm.com> wrote:
>
> Sorry for that last post that didn't give much info. After working on this
> all day I am still getting the error.
>
> The output below is when the server is first starting
>
> console says:
>
> [6/15/09 18:38:31:812 EDT] 00000015 WebAppServlet I   ContextPath:
> /HelloWorld
> [6/15/09 18:38:31:890 EDT] 00000015 NodeImpl      I   Creating node: null
> [6/15/09 18:38:32:875 EDT] 00000015 NodeImpl      I   Loading contribution:
> file:/C:/Documents%20and%20Settings/Administrator/IBM/rationalsdp/workspace/HelloWorld/WebContent/
> [6/15/09 18:38:34:078 EDT] 00000015 NodeImpl      I   Starting node: null
> [6/15/09 18:38:34:234 EDT] 00000015 WebAppServlet I   Added Servlet mapping:
> /HelloWorldService/*
> [6/15/09 18:38:34:234 EDT] 00000015 WebAppServlet I   Added Servlet mapping:
> /HelloWorldService
> [6/15/09 18:38:34:250 EDT] 00000015 WebAppServlet I   Added Servlet mapping:
> /HelloWorld/SCADomain/scaDomain.js
> [6/15/09 18:38:34:421 EDT] 00000017 servlet       I
> com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I:
> [HelloWorldEAR] [/HelloWorld] [FilterProxyServlet]: Initialization
> successful.
> [6/15/09 18:38:34:437 EDT] 00000017 FfdcProvider  I
> com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
> emitted on C:\Program
> Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_57025702_09.06.15_18.38.34.4216224.txt
> com.ibm.ws.webcontainer.servlet.FilterProxyServlet.dispatch 312
>
>
>
>
> below is the last thing entered in
> server1_57025702_09.06.15_18.38.34.4216224.txt
>
> [6/15/09 18:38:34:421 EDT]     FFDC
> Exception:com.ibm.ws.webcontainer.webapp.WebAppErrorReport
> SourceId:com.ibm.ws.webcontainer.servlet.FilterProxyServlet.dispatch
> ProbeId:312
> Reporter:com.ibm.ws.webcontainer.servlet.FilterProxyServlet@600c600c
> com.ibm.ws.webcontainer.webapp.WebAppErrorReport: SRVE0190E: File not found:
> /HelloWorldService
>         at
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:839)
>         at
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
>         at
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
>         at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
>         at
> com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
>         at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
>         at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
>         at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
>         at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
>         at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
>         at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
>         at
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
>         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
>         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
>         at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
>         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
>         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
> Caused by: java.io.FileNotFoundException: /HelloWorldService
>         at
> com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:502)
>         ... 16 more
>
> Reporter BEGIN:com.ibm.ws.webcontainer.servlet.FilterProxyServlet@600c600c
> javax.servlet.GenericServlet::LSTRING_FILE:javax.servlet.LocalStrings
> javax.servlet.GenericServlet::lStrings
> BEGIN:java.util.PropertyResourceBundle@28042804
>  java.util.PropertyResourceBundle@28042804
>  END:java.util.PropertyResourceBundle@28042804
>
>
>
> in log another file that was updated 9 seconds earlier
>
> [6/15/09 18:38:25:328 EDT]     FFDC
> Exception:org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException
> SourceId:com.ibm.ws.odc.cell.TreeBuilder ProbeId:Removing:
> /cell/IBM-8D73E7986F4Node02Cell/application/HelloWorldEAR<<c...@3bd13bd1>>
> Reporter:com.ibm.ws.odc.cell.TreeBuilder@6d9c6d9c
> org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException:
> IWAE0037E Could not open C:\Program
> Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\config\cells\IBM-8D73E7986F4Node02Cell\applications\HelloWorldEAR.ear\HelloWorldEAR.ear
> Stack trace of nested exception:
> java.io.FileNotFoundException: IWAE0036E URI Name: C:\Program
> Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\config\cells\IBM-8D73E7986F4Node02Cell\applications\HelloWorldEAR.ear\HelloWorldEAR.ear;
> File name: C:\Program
> Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\config\cells\IBM-8D73E7986F4Node02Cell\applications\HelloWorldEAR.ear\HelloWorldEAR.ear
>         at
> org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.createLoadStrategy(CommonarchiveFactoryImpl.java:513)
>         at
> org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.primOpenArchive(CommonarchiveFactoryImpl.java:1599)
>         at
> org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:1203)
>         at
> com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:552)
>         at com.ibm.ws.odc.cell.TreeBuilder.getEAR(TreeBuilder.java:3647)
>         at
> com.ibm.ws.odc.cell.TreeBuilder.readApplication(TreeBuilder.java:1647)
>         at
> com.ibm.ws.odc.cell.TreeBuilder.obtainAppNode(TreeBuilder.java:2660)
>         at
> com.ibm.ws.odc.cell.TreeBuilder.stateChanged(TreeBuilder.java:370)
>         at
> com.ibm.ws.odc.cell.TreeBuilder$LocalEventListener.stateChanged(TreeBuilder.java:4622)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1114)
>         at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1296)
>         at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:277)
>         at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:928)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:740)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2092)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
>         at
> com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:105)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:928)
>         at
> com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
>         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
>
> Reporter BEGIN:com.ibm.ws.odc.cell.TreeBuilder@6d9c6d9c
> com.ibm.ws.odc.cell.TreeBuilderHelper::tc
> BEGIN:com.ibm.ejs.ras.TraceComponent@35583558
>  com.ibm.ejs.ras.TraceElement::ivLevel:10
>  com.ibm.ejs.ras.TraceElement::ivName:com.ibm.ws.odc.cell.TreeBuilderHelper
>
>
>
>
> Willis C White III
> IQ Technology Projects
> IBM CIO Technology & Innovation
> Home office 845 331-5134
> Cell 845 853-3827
>
>
>
>
> ant elder <an...@gmail.com>
>
> 06/15/2009 03:31 AM
>
> Please respond to
> user@tuscany.apache.org
> To
> user@tuscany.apache.org
> cc
> Subject
> Re: Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)
>
>
>
>
> On Sat, Jun 13, 2009 at 8:54 PM, Willis C White<wh...@us.ibm.com> wrote:
>>
>> I am looking for an example of running Dojo with Tuscany on Eclipse with
>> Websphere (Rational Application Developer). Can some one point me to a
>> working example?
>>
>> If there is no example to do exactly what I need could I get some
>> assistance
>> getting the example below to work.
>>
>> I tried to convert the example at the following address to work on Eclipse
>> with Websphere and I ran into problems.
>>
>> https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/helloworld-dojo-webapp/
>>
>> I am not sure what the issue was but i think it had something to do with
>> the
>> sca-contribution.xml  and the web.xml file or possibly not having jars in
>> the WEB-INF/lib dir (not sure which jars to put in there)
>>
>> RAD 7.5
>> Eclipse 3.4
>> Websphere 7
>>
>> It goes to this address
>> http://localhost:9081/HelloWorld/HelloWorldJSONRPC.html
>>
>> and I get this error
>>
>> Error 500: javax.servlet.ServletException: Filter [tuscany]: Could not
>> find
>> required filter class -
>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.class
>>
>>
>>
>> Willis White
>>
>>
>
> I've just tried the helloworld dojo sample from the Tuscany 1.5
> release in WebSphere 7.0 and it worked ok for me. As with all Tuscany
> webapps in WebSphere you do need to correctly configure the
> classloading, so in the Admin console application configuration click
> on:
>
> "Class loading and update detection" and then set:
>
> Class loader order: "Classes loaded with local class loader first (parent
> last)"
> WAR class loader policy: "Class loader for each WAR file in application"
>
> So you can see what jars are included in the build webapp i've
> uploaded the one that worked for me to:
> http://people.apache.org/~antelder/tuscany/sample-helloworld-dojo-webapp.war
>
>   ...ant
>
>

Re: Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)

Posted by Willis C White <wh...@us.ibm.com>.
Sorry for that last post that didn't give much info. After working on this 
all day I am still getting the error. 

The output below is when the server is first starting

console says:

[6/15/09 18:38:31:812 EDT] 00000015 WebAppServlet I   ContextPath: 
/HelloWorld
[6/15/09 18:38:31:890 EDT] 00000015 NodeImpl      I   Creating node: null
[6/15/09 18:38:32:875 EDT] 00000015 NodeImpl      I   Loading 
contribution: 
file:/C:/Documents%20and%20Settings/Administrator/IBM/rationalsdp/workspace/HelloWorld/WebContent/
[6/15/09 18:38:34:078 EDT] 00000015 NodeImpl      I   Starting node: null
[6/15/09 18:38:34:234 EDT] 00000015 WebAppServlet I   Added Servlet 
mapping: /HelloWorldService/*
[6/15/09 18:38:34:234 EDT] 00000015 WebAppServlet I   Added Servlet 
mapping: /HelloWorldService
[6/15/09 18:38:34:250 EDT] 00000015 WebAppServlet I   Added Servlet 
mapping: /HelloWorld/SCADomain/scaDomain.js
[6/15/09 18:38:34:421 EDT] 00000017 servlet       I 
com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: 
[HelloWorldEAR] [/HelloWorld] [FilterProxyServlet]: Initialization 
successful.
[6/15/09 18:38:34:437 EDT] 00000017 FfdcProvider  I 
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident 
emitted on C:\Program 
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_57025702_09.06.15_18.38.34.4216224.txt 
com.ibm.ws.webcontainer.servlet.FilterProxyServlet.dispatch 312




below is the last thing entered in 
server1_57025702_09.06.15_18.38.34.4216224.txt 

[6/15/09 18:38:34:421 EDT]     FFDC 
Exception:com.ibm.ws.webcontainer.webapp.WebAppErrorReport 
SourceId:com.ibm.ws.webcontainer.servlet.FilterProxyServlet.dispatch 
ProbeId:312 
Reporter:com.ibm.ws.webcontainer.servlet.FilterProxyServlet@600c600c
com.ibm.ws.webcontainer.webapp.WebAppErrorReport: SRVE0190E: File not 
found: /HelloWorldService
        at 
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:839)
        at 
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
        at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
        at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
        at 
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
        at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
        at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
        at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
        at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
        at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
Caused by: java.io.FileNotFoundException: /HelloWorldService
        at 
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:502)
        ... 16 more

Reporter BEGIN:com.ibm.ws.webcontainer.servlet.FilterProxyServlet@600c600c
javax.servlet.GenericServlet::LSTRING_FILE:javax.servlet.LocalStrings
javax.servlet.GenericServlet::lStrings 
BEGIN:java.util.PropertyResourceBundle@28042804
 java.util.PropertyResourceBundle@28042804
 END:java.util.PropertyResourceBundle@28042804



in log another file that was updated 9 seconds earlier

[6/15/09 18:38:25:328 EDT]     FFDC 
Exception:org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException 
SourceId:com.ibm.ws.odc.cell.TreeBuilder ProbeId:Removing: 
/cell/IBM-8D73E7986F4Node02Cell/application/HelloWorldEAR<<c...@3bd13bd1>> 
Reporter:com.ibm.ws.odc.cell.TreeBuilder@6d9c6d9c
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException: 
IWAE0037E Could not open C:\Program 
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\config\cells\IBM-8D73E7986F4Node02Cell\applications\HelloWorldEAR.ear\HelloWorldEAR.ear
Stack trace of nested exception:
java.io.FileNotFoundException: IWAE0036E URI Name: C:\Program 
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\config\cells\IBM-8D73E7986F4Node02Cell\applications\HelloWorldEAR.ear\HelloWorldEAR.ear; 
File name: C:\Program 
Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\config\cells\IBM-8D73E7986F4Node02Cell\applications\HelloWorldEAR.ear\HelloWorldEAR.ear
        at 
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.createLoadStrategy(CommonarchiveFactoryImpl.java:513)
        at 
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.primOpenArchive(CommonarchiveFactoryImpl.java:1599)
        at 
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:1203)
        at 
com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:552)
        at com.ibm.ws.odc.cell.TreeBuilder.getEAR(TreeBuilder.java:3647)
        at 
com.ibm.ws.odc.cell.TreeBuilder.readApplication(TreeBuilder.java:1647)
        at 
com.ibm.ws.odc.cell.TreeBuilder.obtainAppNode(TreeBuilder.java:2660)
        at 
com.ibm.ws.odc.cell.TreeBuilder.stateChanged(TreeBuilder.java:370)
        at 
com.ibm.ws.odc.cell.TreeBuilder$LocalEventListener.stateChanged(TreeBuilder.java:4622)
        at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1114)
        at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1296)
        at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:277)
        at 
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:928)
        at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:740)
        at 
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2092)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
        at 
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:105)
        at 
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:928)
        at 
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)

Reporter BEGIN:com.ibm.ws.odc.cell.TreeBuilder@6d9c6d9c
com.ibm.ws.odc.cell.TreeBuilderHelper::tc 
BEGIN:com.ibm.ejs.ras.TraceComponent@35583558
 com.ibm.ejs.ras.TraceElement::ivLevel:10
 
com.ibm.ejs.ras.TraceElement::ivName:com.ibm.ws.odc.cell.TreeBuilderHelper






Willis C White III 
IQ Technology Projects
IBM CIO Technology & Innovation
Home office 845 331-5134
Cell 845 853-3827
 

 



ant elder <an...@gmail.com> 
06/15/2009 03:31 AM
Please respond to
user@tuscany.apache.org


To
user@tuscany.apache.org
cc

Subject
Re: Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)






On Sat, Jun 13, 2009 at 8:54 PM, Willis C White<wh...@us.ibm.com> wrote:
>
> I am looking for an example of running Dojo with Tuscany on Eclipse with
> Websphere (Rational Application Developer). Can some one point me to a
> working example?
>
> If there is no example to do exactly what I need could I get some 
assistance
> getting the example below to work.
>
> I tried to convert the example at the following address to work on 
Eclipse
> with Websphere and I ran into problems.
> 
https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/helloworld-dojo-webapp/

>
> I am not sure what the issue was but i think it had something to do with 
the
> sca-contribution.xml  and the web.xml file or possibly not having jars 
in
> the WEB-INF/lib dir (not sure which jars to put in there)
>
> RAD 7.5
> Eclipse 3.4
> Websphere 7
>
> It goes to this address
> http://localhost:9081/HelloWorld/HelloWorldJSONRPC.html
>
> and I get this error
>
> Error 500: javax.servlet.ServletException: Filter [tuscany]: Could not 
find
> required filter class -
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.class
>
>
>
> Willis White
>
>

I've just tried the helloworld dojo sample from the Tuscany 1.5
release in WebSphere 7.0 and it worked ok for me. As with all Tuscany
webapps in WebSphere you do need to correctly configure the
classloading, so in the Admin console application configuration click
on:

"Class loading and update detection" and then set:

Class loader order: "Classes loaded with local class loader first (parent 
last)"
WAR class loader policy: "Class loader for each WAR file in application"

So you can see what jars are included in the build webapp i've
uploaded the one that worked for me to:
http://people.apache.org/~antelder/tuscany/sample-helloworld-dojo-webapp.war


   ...ant


Re: Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)

Posted by Willis C White <wh...@us.ibm.com>.
Thank you so much this is moving me in the right direction. Now I am 
getting an error that says

GET http://localhost:9081/HelloWorld/HelloWorldService?smd
http://localhost:9081/HelloWorld/HelloWorldService?smd         404 Not 
Found       3ms 


Error 404: SRVE0190E: File not found: /HelloWorldService





Willis C White III 
IQ Technology Projects
IBM CIO Technology & Innovation
Home office 845 331-5134
Cell 845 853-3827
 

 



ant elder <an...@gmail.com> 
06/15/2009 03:31 AM
Please respond to
user@tuscany.apache.org


To
user@tuscany.apache.org
cc

Subject
Re: Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)






On Sat, Jun 13, 2009 at 8:54 PM, Willis C White<wh...@us.ibm.com> wrote:
>
> I am looking for an example of running Dojo with Tuscany on Eclipse with
> Websphere (Rational Application Developer). Can some one point me to a
> working example?
>
> If there is no example to do exactly what I need could I get some 
assistance
> getting the example below to work.
>
> I tried to convert the example at the following address to work on 
Eclipse
> with Websphere and I ran into problems.
> 
https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/helloworld-dojo-webapp/

>
> I am not sure what the issue was but i think it had something to do with 
the
> sca-contribution.xml  and the web.xml file or possibly not having jars 
in
> the WEB-INF/lib dir (not sure which jars to put in there)
>
> RAD 7.5
> Eclipse 3.4
> Websphere 7
>
> It goes to this address
> http://localhost:9081/HelloWorld/HelloWorldJSONRPC.html
>
> and I get this error
>
> Error 500: javax.servlet.ServletException: Filter [tuscany]: Could not 
find
> required filter class -
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.class
>
>
>
> Willis White
>
>

I've just tried the helloworld dojo sample from the Tuscany 1.5
release in WebSphere 7.0 and it worked ok for me. As with all Tuscany
webapps in WebSphere you do need to correctly configure the
classloading, so in the Admin console application configuration click
on:

"Class loading and update detection" and then set:

Class loader order: "Classes loaded with local class loader first (parent 
last)"
WAR class loader policy: "Class loader for each WAR file in application"

So you can see what jars are included in the build webapp i've
uploaded the one that worked for me to:
http://people.apache.org/~antelder/tuscany/sample-helloworld-dojo-webapp.war


   ...ant


Re: Example of Dojo and Tuscany on Eclipse and WebSphere (RAD)

Posted by ant elder <an...@gmail.com>.
On Sat, Jun 13, 2009 at 8:54 PM, Willis C White<wh...@us.ibm.com> wrote:
>
> I am looking for an example of running Dojo with Tuscany on Eclipse with
> Websphere (Rational Application Developer). Can some one point me to a
> working example?
>
> If there is no example to do exactly what I need could I get some assistance
> getting the example below to work.
>
> I tried to convert the example at the following address to work on Eclipse
> with Websphere and I ran into problems.
> https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/helloworld-dojo-webapp/
>
> I am not sure what the issue was but i think it had something to do with the
> sca-contribution.xml  and the web.xml file or possibly not having jars in
> the WEB-INF/lib dir (not sure which jars to put in there)
>
> RAD 7.5
> Eclipse 3.4
> Websphere 7
>
> It goes to this address
> http://localhost:9081/HelloWorld/HelloWorldJSONRPC.html
>
> and I get this error
>
> Error 500: javax.servlet.ServletException: Filter [tuscany]: Could not find
> required filter class -
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.class
>
>
>
> Willis White
>
>

I've just tried the helloworld dojo sample from the Tuscany 1.5
release in WebSphere 7.0 and it worked ok for me. As with all Tuscany
webapps in WebSphere you do need to correctly configure the
classloading, so in the Admin console application configuration click
on:

"Class loading and update detection" and then set:

Class loader order: "Classes loaded with local class loader first (parent last)"
WAR class loader policy: "Class loader for each WAR file in application"

So you can see what jars are included in the build webapp i've
uploaded the one that worked for me to:
http://people.apache.org/~antelder/tuscany/sample-helloworld-dojo-webapp.war

   ...ant