Excellent, thanks for the info, I seem to be up and running now.

For others having problems getting started, here is what I did to get the
samples running in today's (2/1/07) code in Tomcat/Axis:
- Followed the instructions on the "Getting Ode" page to build the war file
into trunk/axis2-war/target
- Added the following to the beginning of my catalina.bat in tomcat\bin -
set JAVA_OPTS=-Dode.persistence=hibernate
- Renamed the ode-XYZ war file to ode.war and deployed it into Tomcat
5.5.20with JDK
1.5
- At this point I was able to run the HelloWorld2 sample using the sendsoap
tool as described on the Ode site by piecing together a fake distribution.
I couldn't find the "attached archive" that is supposed to be attached to
the "Getting Ode" page.  So I made my own with the bin from trunk\tools-bin
and the jars from the deployed web app.

It's worth noting that I started the above steps by wiping out my local
source and re-downloading it, this fixed one of the problems I was having.

I also enabled REST which made viewing the WSDLs / processes easier.  To do
this I went into WEB-INF\conf\axis2.xml and set the
enableRESTInAxis2MainServlet property to true for easier access via the
browser.  This makes it so you can point your browser to
http://localhost:8080/ode/services/listServices and
http://localhost:8080/ode/services/helloWorld?wsdl for example, note this
changes the URL to "services", not "processes" with this change.

Let me know if you don't have time to update the Ode site, I'd be happy to
do it as well (after figuring out how to).

Thanks again, Rich


On 2/1/07, Matthieu Riou <[EMAIL PROTECTED]> wrote:

Hi Rich,

For now our JPA persistence is still not really ready for usage. We have
to
keep at as default in the trunk to facilitate our transition to it in
terms
of development but it's not ideal for usage. Hopefully at some point we'll

have a release and all those conflicts of interest between development and
usage won't be such a problem as now.

So you should configure ODE to start with Hibernate as the persistence
layer. To do so you need to set the system property ' ode.persistence' to
'hibernate'. For Tomcat you can just set the JAVA_OPTS environment
variable:

export JAVA_OPTS="-Dode.persistence=hibernate"

This should work much better. I'll update the building guide as well for
now.

Thanks,
Matthieu

On 1/31/07, Rich Taylor <[EMAIL PROTECTED]> wrote:
>
> Hello gang,
>
> We're looking at using Ode for a project and are excited about the
> prospect.  I'm having some trouble getting started and I'm looking for
> some
> help.
>
> I'm trying to use the Axis2 war file.  I've followed the instructions
> here:
> http://incubator.apache.org/ode/getting-ode.html and can successfully
> build
> (code from 1/31/07), including the Axis2 target and examples.   When I
> deploy the war, the server seems to start ok but I can't seem to deploy
> HelloWorld2.
>
> When I start Tomcat I get the stack trace below (see bottom of
> email).  And
> when I try to hit the sample URL I get "Please enable REST support in
> WEB-INF/conf/axis2.xml and WEB-INF/web.xml".
>
> Are there tweaks that need to be done to todays code to get HelloWorld2
> running.  Or is there another working sample that someone would
> suggest?  I
> searched on the mailing lists but I can't seem to find the info I'm
after.
>
> Thank you!
> Rich
>
> Environment:
> Tomcat 5.5.20
> JDK 1.5.0_06
> Maven 2.0.4
>
> Error:
> 7843  TRACE  [pool-1-thread-1] openjpa.Query - Executing query: select v
> from Ve
> rsionTrackerDAOImpl v
> ERROR - DeploymentPoller.check(137) | Deployment of HelloWorld2 failed,
> aborting
> for now.
> org.apache.ode.bpel.iapi.ContextException: DbError
>         at org.apache.ode.store.ProcessStoreImpl.exec(
> ProcessStoreImpl.java
> :504)
>
>         at org.apache.ode.store.ProcessStoreImpl.deploy(
> ProcessStoreImpl.java:15
> 6)
>         at org.apache.ode.axis2.deploy.DeploymentPoller.check(
> DeploymentPoller.j
> ava:134)
>         at org.apache.ode.axis2.deploy.DeploymentPoller.access$300
> (DeploymentPol
> ler.java:55)
>         at
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run
> (Deploy
> mentPoller.java :179)
> Caused by: java.util.concurrent.ExecutionException:
> <4|false|0.9.6-incubating-SN
> APSHOT> org.apache.openjpa.persistence.ArgumentException: SQL Exception:
> Column
> ' T0.ID' is either not in any table in the FROM list or appears within a
> join
> spe
> cification and is outside the scope of the join specification or appears
> in
> a HA
> VING clause and is not in the GROUP BY list. If this is a CREATE or
ALTER
> TABLE
> statement then 'T0.ID' is not a column in the target table.
>         at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java
> :205)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:80)
>         at org.apache.ode.store.ProcessStoreImpl.exec(
> ProcessStoreImpl.java
> :502)
>
>         ... 4 more
> Caused by: <4|false|0.9.6-incubating-SNAPSHOT>
> org.apache.openjpa.persistence.Ar
> gumentException: SQL Exception: Column 'T0.ID' is either not in any
table
> in
> the
> FROM list or appears within a join specification and is outside the
scope
> of th
> e join specification or appears in a HAVING clause and is not in the
GROUP
> BY li
> st. If this is a CREATE or ALTER TABLE  statement then ' T0.ID' is not a
> column i
> n the target table.
>         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java
:751)
>         at org.apache.openjpa.kernel.QueryImpl.execute (QueryImpl.java
:712)
>         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java
:708)
>         at org.apache.openjpa.kernel.DelegatingQuery.execute(
> DelegatingQuery.jav
> a:512)
>         at org.apache.openjpa.persistence.QueryImpl.execute(
QueryImpl.java
> :213)
>         at org.apache.openjpa.persistence.QueryImpl.getResultList(
> QueryImpl.java
>
>

Reply via email to