Hi,

Can you try to use maven-surefire-plugin 2.3.1 or 2.4? You probably need to get 
the maven build going before you run it inside Eclipse because the mvn build 
will create a derdy DB for ODE.

Thanks,
Raymond

  ----- Original Message ----- 
  From: Moberg Dale 
  To: [email protected] 
  Sent: Thursday, January 24, 2008 12:13 PM
  Subject: Helloword-bpel initialization issues, follow up information


>>Moberg, first of all, welcome to Tuscany. Thank you. >>Could you please check 
>>if there is anything wrong in your derby.log>>inside 
>>samples/helloworld-bpel/target/derby.log  No, derby.log was blank initially. 
>>>>and also certify that the ODE server db is available 
>>in>>/samples/helloworld-bpel/target/test-classes/jpadb. There was no 
>>test-classes subdirectory under target! I then ran mvn in the subdirectory 
>>and it created the test-classes subdirectorybut mvn did not complete 
>>successfully. I moved to mvn 2.0.5, rebuilt repository,tried pom.xml fix 
>>concerning (readme says version 2.2, and pom had 2.3- tried both)             
>>      <plugin>

                          <groupId>org.apache.maven.plugins</groupId>

                          <artifactId>maven-surefire-plugin</artifactId>

                                  <!-- 
http://jira.codehaus.org/browse/SUREFIRE-322 -->

                                  <version>2.3</version>

                          <configuration>

                                <useFile>false</useFile>

                                <trimStackTrace>false</trimStackTrace>

                                          

                                
<useSystemClassLoader>true</useSystemClassLoader>

                                          

                          </configuration>

                    </plugin>

        At any rate, the failure has now gotten to the following under maven 
[INFO] Nothing to compile - all classes are up to date[INFO] [dependency:unpack 
{execution: unpack}][INFO] Configured Artifact: 
org.apache.ode:ode-dao-jpa-ojpa-derby:1.1:zip[INFO] Expanding: C:\Documents and 
Settings\dmoberg\.m2\repository\org\apache\ode\ode-dao-jpa-ojpa-derby\1.1\ode-dao-jpa-ojpa-derby-1.1.zip
 into 
C:\OpenSource\tuscany\tuscany-sca-1.0.1-incubating\samples\helloworld-bpel\target\test-classes[INFO]
 [surefire:test][INFO] Surefire report directory: 
C:\OpenSource\tuscany\tuscany-sca-1.0.1-incubating\samples\helloworld-bpel\target\surefire-reports[INFO]
 Building jar: 
C:\DOCUME~1\dmoberg\LOCALS~1\Temp\surefirebooter60806.jarjava.lang.NoClassDefFoundError:
 org/apache/maven/surefire/booter/SurefireBooterException in thread 
"main"[INFO] 
------------------------------------------------------------------------[ERROR] 
BUILD FAILURE (I see no surefirebooter60806.jar and I think there is a failure 
to create it.) If I turn off the readme update for  pom.xml by reverting to 
<!-- useSystemClassLoader>true</useSystemClassLoader -->

 I now see that the derby.log now contains 
----------------------------------------------------------------2008-01-24 
20:04:48.112 GMT: Booting Derby version The Apache Software Foundation - Apache 
Derby - 10.1.3.1 - (417277): instance c013800d-0117-ad67-0c77-000000138078on 
database directory 
C:\OpenSource\tuscany\tuscany-sca-1.0.1-incubating\samples\helloworld-bpel\target\test-classes\jpadb
 Database Class Loader started - derby.database.classpath=''  and there is a 
lot of errors in the surefire-reports (attached) But within eclipse, I still 
obtain: INFO - GeronimoLog.info(79) | Using embedded Geronimo transaction 
manager

  Starting BPELHelloWorldComponent 
org.apache.tuscany.sca.core.assembly.RuntimeComponentImpl

  INFO - GeronimoLog.info(79) | Using Embedded Derby: 
jdbc:derby:file:\C:\OpenSource\tuscany\tuscany-sca-1.0.1-incubating\lib\ode-dao-jpa-ojpa-derby-1.1.zip!/jpadb

  INFO - GeronimoLog.info(79) | Using DAO Connection Factory class 
org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl.

  Exception in thread "main" org.osoa.sca.ServiceRuntimeException: 
java.lang.RuntimeException: BPEl Component Type Implementation initialization 
failure : null

        at 
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)

        at 
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)

        at helloworld.BPELClient.main(BPELClient.java:33)

  Caused by: java.lang.RuntimeException: BPEl Component Type Implementation 
initialization failure : null

        at 
org.apache.tuscany.sca.implementation.bpel.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:106)

        at 
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:484)

        at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:189)

        at 
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:230)

        ... 2 more

  Caused by: java.lang.NullPointerException

        at 
org.tranql.connector.jdbc.ConnectionHandle.getMetaData(ConnectionHandle.java:321)

        at 
org.apache.ode.scheduler.simple.JdbcDelegate.guessDialect(JdbcDelegate.java:290)

        at 
org.apache.ode.scheduler.simple.JdbcDelegate.<init>(JdbcDelegate.java:78)

        at 
org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.createScheduler(EmbeddedODEServer.java:187)

        at 
org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.initBpelServer(EmbeddedODEServer.java:145)

        at 
org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer.init(EmbeddedODEServer.java:94)

        at 
org.apache.tuscany.sca.implementation.bpel.provider.BPELImplementationProvider.start(BPELImplementationProvider.java:82)

        ... 5 more I'm taking a deeper look to see if I can find anything that 
might becausing this... Looks like I need to see if I can discover why this 
subdirectory is missing.  



------------------------------------------------------------------------------


  ---------------------------------------------------------------------
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to