Hello Najeeb,
I too experienced the same problem for a long time and i dont know know what
i did but i got things working later.
But you can try this :
C:\Documents and Settings\najela\ode\bpel-test
Open the above module in eclipse (ie go to bpel-test then give mvn
eclipse:eclipse ..I think you know this..)
open the file present in bpel-test\src\test\java\org\apache\ode\test\
There you will find :BpelTest.java file. This file will interact with ODE
runtime pro- grammatically rather using sendsoap.bat . This
BpelTest.javawill start - deploy a bpel process-invokes the operations
- gets the
response from ODE .
Just create an obj for that class and call setUp()
then call go("target/test-classes/bpel/2.0/HelloWorld2");
and finally tearDown();
For simplicity,
Just print the response : ie there will be a line
mex.invoke(request);
below that type this :
Message response = mex.getResponse();
String resp=DOMUtils.domToString(response.getMessage());
System.out.println("Ode response : ",+resp);
ignore the switch case as of now...
Just in case i have given below entire go method of BPELTest.java with
modifications
Modifications here are like i have given all test.properties values
directly.
protected void go(String deployDir) throws Exception {
Collection<QName> procs = store.deploy(new File(deployDir));
for (QName procName : procs) {
server.register(store.getProcessConfiguration(procName));
}
QName serviceId = new QName("http://ode/bpel/unit-test.wsdl
","HelloService");
String operation ="hello";
System.out.println("Operation ="+operation);
MyRoleMessageExchange mex = server.getEngine()
.createMessageExchange("", serviceId, operation);
String in="<message><TestPart>Hello</TestPart></message>";
System.out.println("Input String :"+in);
mexContext.clearCurrentResponse();
Message request = mex.createMessage(null);
Element elem = DOMUtils.stringToDOM(in);
request.setMessage(elem);
System.out.println("Elem = "+elem.toString());
mex.invoke(request);
System.out.println("Mex invoked ");
Message response = mex.getResponse();
System.out.println("Output from ODE runtime: ");
String resp = (response == null) ? "null" : DOMUtils
.domToString(response.getMessage());
System.out.println(resp);
}
_____________________________________________
Sam...
Msc Software Engg.
PSG College of Technology
India.
On 12/7/06, Najeeb Elahi <[EMAIL PROTECTED]> wrote:
Hi,
I got the same problem as described below by Sam,
I've tried both classpath
1) C:\...\ode\tools-bin\target\stage\bin
2) C:\ .. .\ode\tools-bin\src\main\dist\bin
For sendsoap.bat, in any case result was same
C:\Documents and Settings\najela\ode\axis2
examples\src\examples\HelloWorld2>sen
dsoap http://localhost:8080/ode/processes/HelloWorld2 testRequest.soap
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/ode/tools/sendsoap/cline/HttpSoapSender
C:\Documents and
Settings\najela\ode\axis2-examples\src\examples\HelloWorld2>sen
dsoap http://localhost:8080/ode/processes/HelloWorld testRequest.soap
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/ode/tools/sendsoap/cline/HttpSoapSender
Any suggestions?
Thanks in anticipation,
Best Regards!
Najeeb Elahi
MSc Software Engineering of Distributed Systems,
Royal Institute of Technology (KTH),
Stockholm,Sweden
Cell # : 0046-704255681
Emails: [EMAIL PROTECTED] , [EMAIL PROTECTED]
////////////////////////////////////////////////
Hello !
I followed as per Instructions given in :
http://wiki.apache.org/ode/Building
Now in running the sample HelloWorld :
I copied the folders present in C:\ode\axis2-examples\src\examples [
HelloWorld2,DynPartner,MagicSession ] into
C:\Tomcat\webapps\ode\WEB-INF\processes
Started Tomcat ! I see three new files being created as
HelloWorld2.deployed / DynPartner.deployed / MagicSession.deployed
I have helloworld Service listed in:
http://localhost:8080/ode/services/listServices
Now i move into tomcat/webapps/ode/WEB_INF/processess/HelloWorld2
directory
in command prompt
Now i type in sendsoap command:
sendsoap
http://localhost:8080/ode/processes/helloWorld/axis2-examples/src/examples/HelloWorld2/testRequest.soap
I get error displayed as : Input line too long . Syntax is not correct .
Now i try again by following Readme.txt that is present in
C:\ode\axis2-examples\src\examples
=> sendsoap http://localhost:8080/ode/processes/helloWorld
testRequest.soap
Now i get
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/ode/tools/sendsoap/cline/HttpSoapSender
I know usually the NoClassDefFoundError comes due to that JVM not able to
get the correct class files. This is correctd by setting properly the
CLASSPATH environ. variable
For sendsoap command: I have set the PATH & the CLASSPATH too environ.
variable to :
C:\ode\tools-bin\target\stage\bin
Also i use Jdk1.5.0_08
Plz shed some light on this issue !
Regards,
Sam
> Can you try the following:
>
> 1) mvn clean
> 2) mvn install
>
> using solely the command prompt? if it doesn't work, please send the
full
> log.
>
> thanks,
> alex
>
>
> On 12/6/06, Najeeb Elahi <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> I tried to run ODE on both Eclipse and on Command prompt as you ppl
>> suggested. But I got error on both platforms :)
>>
>> So far I've ODE,,, SVN in Eclipse and also have plug-in of Maven2
>> Error:
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact: org.apache.ode:distro-jbi-2.0-SNAPSHOT.pom
>>
>> When I'm trying to run through Command prompt with this command
>>
>> Root> mvn install
>> I've also tried these commands
>>
>> cd dao-hibernate-db-derby
>> mvn install
>> cd ..
>> mvn install
>>
>> Than I got this error:
>>
>> [ERROR] FATAL ERROR
>> [INFO]
>>
-------------------------------------------------------------------------
>> ---
>> [INFO] An invalid artifact was detected.
>>
>> This artifact might be in your project's POM, or it might have been
>> included tra
>> nsitively during the resolution process. Here is the information we do
>> have for
>> this artifact:
>>
>> o GroupID: org.apache.ode
>> o ArtifactID: ode-dao-hibernate-db-derby
>> o Version: 2.0-SNAPSHOT
>> o Type: tar
>>
>> Any suggestions?
>> Thanks in anticipation,
>> Best Regards!
>>
>> Najeeb Elahi
>> MSc Software Engineering of Distributed Systems,
>> Royal Institute of Technology (KTH),
>> Stockholm,Sweden
>> Cell # : 00353-86 2444 094
>> Emails: [EMAIL PROTECTED] , [EMAIL PROTECTED]
>>
>>
>>
>>
>