Re: Geronimo and Java 1.6

2007-01-22 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello,

I run Geronimo 1.2 with JDK 6. Webservices are working thanks to
converting ANY EJB webservices to JAX-RPC.

Best regards

Dirk

Kevan Miller schrieb:
> Mark,
> Thanks for the information. Sounds interesting...
> 
> On Jan 20, 2007, at 4:28 PM, [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> wrote:
> 
>> I attended a session yesterday at Codemash (http://www.codemash.org )
>> on the new scripting capabilities in 1.6.  Is anyone running Geronimo
>> on 1.6?  Any issues or tips?  This is really powerful mojo!
> 
> Somebody had some problems deploying an Axis2-based web services sample
> on Geronimo 1.1.1 on 1.6. He reported the sample ran fine on a 1.5 jre.
> So, there do seem to be some potential for 1.6 issues.
> 
> Another user was starting to run Geronimo 1.2-beta or 2.0-M1 on 1.6. I
> don't recall hearing any reports back on his progress other than the
> server started...
> 
> Let us know how things go for you...
> 
> --kevan 
> 
>>  
>> The session presenter, Chris Judd (http://www.juddsolutions.com
>> ), demonstrated an application that took a web page text box of
>> dynamicly written java code, submitted it to a servlet with scripting
>> code server side, executed the code within the servlet container (Yes,
>> you read that right), and returned the results to the browser.  This
>> provides a significant level of introspection into the container
>> realtime.  Of course, he was using Tomcat on 1.6 for the demonstration. 
>>  
>> He plans on releasing this code to the public domain in the next
>> week.  I'll update anyone interested when he does.  He uses it
>> primarily to test the container configuration/environment.  It even
>> allows one to see where the Classloader is pulling the library from! 
>> Great for ClassNotFoundException debugging.  I plan on working on any
>> Geronimo specific tuning that might be required once he releases it.
>>  
>> Additional note for those interested:  This was an awesome
>> conference.  Neal Ford did an opening presentation on "Domain Specific
>> Languages".  I didn't really get the difference between statically
>> typed and dynamically typed languages at first, but I do now!  Bruce
>> Eckel out did Neal Ford with his presentation on "The World is
>> Dynamic".  M$ did the last keynote on its new LINQ technology. I
>> caught a great presentation of Ruby and Rails.  It sure demonstrated
>> digging the whole to bury Struts in.  Scott Ambler from IBM was also
>> interesting to hear with his views on database re-factoring and
>> testing, even though his presentation was on the Eclipse Process
>> Framework and OpenUP.  Interestingly Sun was missing from the
>> presenter side of things although they had a vendor table presence. 
>> Apple was completely absent from the conference.
>>  
>> Anyway, it proved that Java, .Net, and OpenSource can all get along.
>>  
>> Mark Aufdencamp
>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFtbwPbiSTaBU+G6oRA9XBAJwKWK/vQrHEJWQGzVS+5py5BiQGYACffRQ9
ph3K3Y2kIFKn1yoGH/hBxf4=
=xeyR
-END PGP SIGNATURE-





___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


Eclipse WTP plugin: not ready for Geronimo 1.2 and buggy?

2007-01-03 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello,

since the paths have changed for Geronimo 1.2, the WTP plugin (at least
the version 1.1.0 here) went offline forever ;) So I updated to 1.2
hoping to get the WTP system back to work.

However, according to some investigation (and please prove): all the
entries in the META-INF/MANIFEST.MF are out-of-date? I mean, when doing
a fresh install, the plugin itself throws some exceptions saying that it
can't find plugin x.y.z version 1.1.0. So I went in all of the jars and
looked for the Bundle-Version entry which was not updated for this release?

After changing all the values the plugin finally thinks that it "might"
work. However, now I get warnings (which is much better than errors ^^):

Plug-in: "org.apache.geronimo.deployment.model" version: "1.1.0"
referenced by this feature is not included at runtime. Runtime includes
plug-in version "1.1.0" supplied by feature
"org.apache.geronimo.feature" version "1.2.0".


What exactly does the WTP plugin wants to tell me?

As I said: I downloaded it from the apache geronimo devtools site.

Best regards

Dirk

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFm7d6biSTaBU+G6oRAyjlAJ9uQPLyCbTKle9pUyJW/LNhDFHF3ACgjlff
9ll8x7eGUyiNNAWghy1lruA=
=q7vl
-END PGP SIGNATURE-





___ 
Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


Re: Webservices problem with JAX-RPC in 1.2?

2007-01-02 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Jason

thx for your response and your tip.

After some try-n-error I got the final solution/dependency:



org.apache.geronimo.modules/geronimo-webservices//jar



It's good that
http://cwiki.apache.org/GMOxDOC12/simple-web-services-sample-application.html
was updated to match that changes ;)

I keep testing the beta.

Best regards

Dirk

Jason Dillon schrieb:
> This is not a valid dependency anymore in Geronimo 1.2 (or 2.x):
>
> geronimo/geronimo-webservices//jar
>
> The groupId has changed for all Geronimo modules.  Something like this
> might get you farther:
>
> org.apache.geronimo/geronimo-webservices//jar
>
> Though... I'd imagine there are probably a few other changes, but don't
> hold me to it ;-)  Probably need to paste the plan you are using to pick
> out any other issues.
>
> --jason
>
>
> On Jan 2, 2007, at 11:05 PM, Kaeto23 wrote:
>
> Hello,
>
> my first try with V1.2 was to deploy my good ol' ws sample. Version 1.1
> was refusing to use EJB webservices so I switched to JAX-RPC. At least
> the war became deployable but not the ear.
>
> For now, I tried to deploy the ear which contained the war and a jar
> file (a session bean). The deploy ended in this:
>
> Caused by: org.apache.geronimo.kernel.config.LifecycleException: load of
> FirefoxWsTest/Ear1_WebApp.war/1.1/car failed
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:294)
>
> at
> org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:115)
>
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:281)
>
> at
> org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:111)
>
> at
> org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:118)
>
> ... 43 more
> Caused by:
> org.apache.geronimo.kernel.repository.MissingDependencyException: Unable
> to resolve dependency geronimo/geronimo-webservices//jar
> at
> org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:123)
>
> at
> org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:102)
>
> at
> org.apache.geronimo.kernel.repository.DefaultArtifactResolver$$FastClassByCGLIB$$e847b746.invoke()
>
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
>
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
>
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>
> at
> org.apache.geronimo.kernel.repository.ArtifactResolver$$EnhancerByCGLIB$$6cf5d406.resolveInClassLoader()
>
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:466)
>
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:425)
>
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:291)
>
> ... 47 more
>
> I like the // path ;)
>
> I'll try to deploy the war file now. But it seems that there is another
> bug involved into this :/
>
> Best regards
>
> Dirk
>
>>
>>
>>

___
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo!
Mail: http://mail.yahoo.de



- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFm2IqbiSTaBU+G6oRA/+6AJwOPD2SLJ9PsvbhytqlYD4e2eSZuwCfZXfI
OH0LQ06+iDTWVR+vOkoWDO4=
=v4n9
-END PGP SIGNATURE-


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Webservices problem with JAX-RPC in 1.2?

2007-01-02 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello,

my first try with V1.2 was to deploy my good ol' ws sample. Version 1.1
was refusing to use EJB webservices so I switched to JAX-RPC. At least
the war became deployable but not the ear.

For now, I tried to deploy the ear which contained the war and a jar
file (a session bean). The deploy ended in this:

Caused by: org.apache.geronimo.kernel.config.LifecycleException: load of
FirefoxWsTest/Ear1_WebApp.war/1.1/car failed
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:294)
at
org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:115)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:281)
at
org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:111)
at
org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:118)
... 43 more
Caused by:
org.apache.geronimo.kernel.repository.MissingDependencyException: Unable
to resolve dependency geronimo/geronimo-webservices//jar
at
org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:123)
at
org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:102)
at
org.apache.geronimo.kernel.repository.DefaultArtifactResolver$$FastClassByCGLIB$$e847b746.invoke()
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
at 
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.kernel.repository.ArtifactResolver$$EnhancerByCGLIB$$6cf5d406.resolveInClassLoader()
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:466)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:425)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:291)
... 47 more

I like the // path ;)

I'll try to deploy the war file now. But it seems that there is another
bug involved into this :/

Best regards

Dirk

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFm1XKbiSTaBU+G6oRA6sHAJwMSZclJrNl2Zx1Ca8oeB//BU1PQwCfZH6e
AAIVNgHfJK78h3Wzr3nnvLA=
=nHwe
-END PGP SIGNATURE-





___ 
Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


Re: Geronimo 1.2beta doesn't start, too

2007-01-02 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Kevan

I changed my JAVA_HOME to match the value of JRE_HOME, and now it seems
to work :P However, I still don't get why previous versions didn't show
that behaviour :/

Regarding the "different" directories: /usr/lib/java is a symbolic link
to /usr/lib/jdk1.6.0. The JRE_HOME was set to ${JAVA_HOME}/jre.

I'll deploy my work now. Hopefully I will not face new problems ;)

Best regards

Dirk

Kevan Miller schrieb:
> 
> On Jan 2, 2007, at 12:31 PM, Peter Petersson wrote:
> 
>> Hi Dirk
>>
>> You probably encounter this problem due to the fact that you are
>> running it on java 1.6 (jdk6).
>> Try running it on java 1.5 (jdk5) instead it worked fine for me.
>>
>> As far as I know ( correct me if I am wrong, I am not part of the G
>> development teem ) Geronimo  1.2 on the Java 5 Virtual Machine
>> and Geronimo 2.0 is to be certified on Java EE 5 and are therefor
>> probably targeted to run on jdk5.
> 
> The target runtime is Java 5. However, we'd certainly expect that
> Geronimo would run on Java 6.
> 
> I think we've seen this problem before... Oh yeah. It was a problem
> related to geronimo.sh/bat:
> 
> http://www.nabble.com/Error-trying-to-start-fresh-trunk-build-%2810-27-2006%29-tf2522436.html#a7037555
> 
> Dirk,
> Double check your JAVA_HOME or JRE_HOME setting. My guess is it's not
> pointing to your java 6 installation...
> 
> From 
> 
> 17:35:56,267 INFO  [root]   System property [java.endorsed.dirs]  =
> /usr/lib/java/lib/endorsed:/opt/geronimo/lib/endorsed
> 
> it looks like JRE_HOME is set to /usr/lib/java. However, you're running
> java out of /usr/lib/jdk1.6.0/jre
> 
> If that doesn't fix your problem, try running Geronimo as follows? It's
> not the recommended method for starting Geronimo, but I bet it will work...
> 
> java -jar /server.jar
> 
> Alternatively, you could try:
> 
> export JAVA_OPTS=-enableassertions
> geronimo.sh run
> 
> --kevan
> 
>  
> 
> 
> 
> 

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFm02rbiSTaBU+G6oRAzp8AJ0eeDv3mElo4cbxcciAm6h+0jUnEgCgg6KE
7yfsQJyizdTHaVPUSmeD5V0=
=PhA+
-END PGP SIGNATURE-


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Geronimo 1.2beta doesn't start, too

2007-01-02 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, David

I also found the time to "test" the beta release of version 1.2. Also:
not startable thanks to the SubjectId class.

As always, I attach the startup crash log for verification. If you need
the config.xml (which is all what I changed) let me know.

Best regards

Dirk

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFmouwbiSTaBU+G6oRA59sAJ47DyN2vXcVFfig0p3h48ukMFPHGACfcf8K
9MzaB/a0qvy4ScljDyyfi9o=
=GrG7
-END PGP SIGNATURE-
Booting Geronimo Kernel (in Java 1.6.0)...
17:35:56,263 INFO  [root] --
17:35:56,264 INFO  [root] Started Logging Service
17:35:56,264 INFO  [root] Runtime Information:
17:35:56,264 INFO  [root]   Install Directory = /opt/geronimo-tomcat-j2ee-1.2-beta
17:35:56,264 INFO  [root]   JVM in use = Sun Microsystems Inc. Java 1.6.0
17:35:56,264 INFO  [root] Java Information:
17:35:56,264 INFO  [root]   System property [java.runtime.name]  = Java(TM) SE Runtime Environment
17:35:56,265 INFO  [root]   System property [java.runtime.version]  = 1.6.0-b105
17:35:56,265 INFO  [root]   System property [os.name] = Linux
17:35:56,265 INFO  [root]   System property [os.version]  = 2.6.15-rc5-git3-2-default
17:35:56,265 INFO  [root]   System property [sun.os.patch.level]  = unknown
17:35:56,265 INFO  [root]   System property [os.arch] = i386
17:35:56,265 INFO  [root]   System property [java.class.version]  = 50.0
17:35:56,265 INFO  [root]   System property [locale]  = en_US
17:35:56,266 INFO  [root]   System property [unicode.encoding]= UnicodeLittle
17:35:56,266 INFO  [root]   System property [file.encoding]   = ANSI_X3.4-1968
17:35:56,266 INFO  [root]   System property [java.vm.name]= Java HotSpot(TM) Client VM
17:35:56,266 INFO  [root]   System property [java.vm.vendor]  = Sun Microsystems Inc.
17:35:56,266 INFO  [root]   System property [java.vm.version] = 1.6.0-b105
17:35:56,266 INFO  [root]   System property [java.vm.info]= mixed mode
17:35:56,266 INFO  [root]   System property [java.home]   = /usr/lib/jdk1.6.0/jre
17:35:56,267 INFO  [root]   System property [java.classpath]  = null
17:35:56,267 INFO  [root]   System property [java.library.path]   = /usr/lib/jdk1.6.0/jre/lib/i386/client:/usr/lib/jdk1.6.0/jre/lib/i386:/usr/lib/jdk1.6.0/jre/../lib/i386:/opt/teamspeak:/usr/local/subversion/lib::/usr/java/packages/lib/i386:/lib:/usr/lib
17:35:56,267 INFO  [root]   System property [java.endorsed.dirs]  = /usr/lib/java/lib/endorsed:/opt/geronimo/lib/endorsed
17:35:56,267 INFO  [root]   System property [java.ext.dirs]   = /usr/lib/java/lib/ext:/opt/geronimo/lib/ext
17:35:56,267 INFO  [root]   System property [sun.boot.class.path] = /opt/geronimo/lib/endorsed/xercesImpl-2.6.2.jar:/opt/geronimo/lib/endorsed/yoko-rmi-spec-1.0-incubating-M2-486709.jar:/opt/geronimo/lib/endorsed/xalan-2.7.0.jar:/opt/geronimo/lib/endorsed/xmlParserAPIs-2.6.2.jar:/opt/geronimo/lib/endorsed/yoko-spec-corba-1.0-incubating-M2-486709.jar:/usr/lib/jdk1.6.0/jre/lib/resources.jar:/usr/lib/jdk1.6.0/jre/lib/rt.jar:/usr/lib/jdk1.6.0/jre/lib/sunrsasign.jar:/usr/lib/jdk1.6.0/jre/lib/jsse.jar:/usr/lib/jdk1.6.0/jre/lib/jce.jar:/usr/lib/jdk1.6.0/jre/lib/charsets.jar:/usr/lib/jdk1.6.0/jre/classes
17:35:56,267 INFO  [root] --
Module  1/22 org.apache.geronimo.configs/rmi-naming/1.2-beta/car  started in  1.948s
Module  2/22 org.apache.geronimo.configs/j2ee-server/1.2-beta/car started in  1.247s
Module  3/22 org.apache.geronimo.configs/transaction/1.2-beta/car started in  1.521s
Module  4/22 org.apache.geronimo.configs/j2ee-security/1.2-beta/car   started in  3.070s
Module  5/22 org.apache.geronimo.configs/axis/1.2-beta/carstarted in   .379s
Module  6/22 org.apache.geronimo.configs/openejb/1.2-beta/car started in 15.360s
Module  7/22 org.apache.geronimo.configs/system-database/1.2-beta/car started in   .000s
Module  8/22 org.apache.geronimo.configs/activemq-broker/1.2-beta/car started in  8.231s
Module  9/22 org.apache.geronimo.configs/activemq/1.2-beta/carstarted in  1.669s
Module 10/22 org.apache.geronimo.configs/tomcat/1.2-beta/car  started in 10.492s
Module 11/22 org.apache.geronimo.configs/geronimo-gbean-deployer/1.2-beta/car started in  3.239s
Module 12/22 org.apache.geronimo.configs/j2ee-deployer/1.2-beta/car   started in  1.503s
Module 13/22 org.apache.geronimo.configs/connector-deployer/1.2-beta/car  started in   .853s
Module 14/22 org.apache.geronimo.configs/openejb-deployer/1.2-beta/car

Geronimo 2.0M1 startup impossible?

2007-01-02 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, David

last time you asked for a detailed log output when I would encounter any
startup issues with any new version that's about to be released.

Here my recent problem with geronimo 2.0 M1 (I attach the log file to
this mail). Seems that the new hashCode() method in the SubjectId class
fails without any good reason (ok, it's a NPE ;) )

Feel free to tell me your config that you used to check this milestone ^_^

Best regards

Dirk
- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFmohobiSTaBU+G6oRA4VpAJ90J+X+tD3UxgByPqnxypEp76LTGACfYM92
zkPU4QYVJavhaLLO2udlvUA=
=XsmY
-END PGP SIGNATURE-
Booting Geronimo Kernel (in Java 1.6.0)...
Module  1/24 org.apache.geronimo.configs/rmi-naming/2.0-M1/car started in  1.985s
Module  2/24 org.apache.geronimo.configs/j2ee-server/2.0-M1/carstarted in   .837s
Module  3/24 org.apache.geronimo.configs/transaction-jta11/2.0-M1/car  started in  1.700s
Module  4/24 org.apache.geronimo.configs/j2ee-security/2.0-M1/car  started in  2.408s
Module  5/24 org.apache.geronimo.configs/axis/2.0-M1/car   started in   .341s
Module  6/24 org.apache.geronimo.configs/openejb/2.0-M1/carstarted in 13.978s
Module  7/24 org.apache.geronimo.configs/system-database/2.0-M1/carstarted in   .000s
Module  8/24 org.apache.geronimo.configs/activemq-broker/2.0-M1/carstarted in  7.920s
Module  9/24 org.apache.geronimo.configs/activemq/2.0-M1/car   started in  1.589s
Module 10/24 org.apache.geronimo.configs/tomcat6/2.0-M1/car   Jan 2, 2007 4:28:56 PM org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Geronimo
Jan 2, 2007 4:28:56 PM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Jan 2, 2007 4:28:56 PM org.apache.catalina.startup.Embedded initNaming
INFO: Catalina naming disabled
Jan 2, 2007 4:28:58 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.0-dev
Jan 2, 2007 4:28:58 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 2, 2007 4:28:58 PM org.apache.catalina.realm.RealmBase start
INFO: This Realm has already been started
Jan 2, 2007 4:29:01 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-0.0.0.0-16080
Jan 2, 2007 4:29:01 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-0.0.0.0-16080
Jan 2, 2007 4:29:01 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-0.0.0.0-16443
Jan 2, 2007 4:29:01 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-0.0.0.0-16443
Jan 2, 2007 4:29:01 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:16009
Jan 2, 2007 4:29:01 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/145  config=null
 started in  8.022s
Module 11/24 org.apache.geronimo.configs/geronimo-gbean-deployer/2.0-M1/carstarted in  1.246s
Module 12/24 org.apache.geronimo.configs/j2ee-deployer/2.0-M1/car  started in  1.070s
Module 13/24 org.apache.geronimo.configs/connector-deployer/2.0-M1/car started in   .713s
Module 14/24 org.apache.geronimo.configs/persistence-jpa10-deployer/2.0-M1/car started in   .352s
Module 15/24 org.apache.geronimo.configs/openejb-deployer/2.0-M1/car   started in  2.542s
Module 16/24 org.apache.geronimo.configs/client-deployer/2.0-M1/carstarted in   .344s
Module 17/24 org.apache.geronimo.configs/axis-deployer/2.0-M1/car  started in  3.276s
Module 18/24 org.apache.geronimo.configs/javamail/2.0-M1/car   started in   .257s
Module 19/24 org.apache.geronimo.configs/sharedlib/2.0-M1/car  started in   .040s
Module 20/24 org.apache.geronimo.configs/tomcat6-deployer/2.0-M1/car   started in   .373s
Module 21/24 org.apache.geronimo.configs/welcome-tomcat/2.0-M1/carJan 2, 2007 4:29:14 PM org.apache.catalina.realm.RealmBase start
INFO: This Realm has already been started
 started in   .713s
Module 22/24 org.apache.geronimo.configs/webconsole-tomcat/2.0-M1/car Jan 2, 2007 4:29:16 PM org.apache.catalina.realm.RealmBase start
INFO: This Realm has already been started
16:29:17,325 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/webconsole-tomcat/2.0-M1/car?J2EEApplication=org.apache.geronimo.configs/webconsole-tomcat/2.0-M1/car,j2eeType=JACCManager,name=JACCManager"
java.lang.NullPointerException
	at org.apache.geronimo.securit

Re: [Bulk] Re: [Bulk] JAX-RPC Webservice deploys with NPE

2006-12-15 Thread Kaeto23
="holeZufall">>>> name="P1_holeZufall_Response">>>> name=
> "r
>>>>  c"
>>>> type="xsd:int"/>>>> name="getPInfo">>>> name="clientAdresse"
>>>> type="xsd:string"/>>>> name="P1_getPInfo_Response">>>> name="rc"
>>>> type="u0:ProxyInfoType"/>>>> name="P1_holeZufall_Request">>>> name="params"/>>>> element="mns0:P1_getPInfo_Response" name="rc"/>>>> name="P1_holeZufall_Response">>>> element="mns0:P1_holeZufall_Response" name="rc"/>>>> name="P1_getPInfo_Request">>>> name="params"/>>>> name="holeZufall">Liefert eine Zufallszahl
>>>> zurück>>> message="tns:P1_holeZufall_Request"/>>>> name="getPInfo">Liefert eine Info an den
>>>> Client>>> message="tns:P1_getPInfo_Response"/>>>> name="P1Binding0" type="tns:P1">>>> transport="http://schemas.xmlsoap.org/soap/http"/>>>> name="holeZufall">>>> soapAction="http://www.ds2/firefox/ws/methoden/#holeZufall"/>>>> use="literal"/>>>> use="literal"/>>>> name="getPInfo">>>> soapAction="http://www.ds2/firefox/ws/methoden/#getPInfo"/>>>> use="literal"/>>>> use="literal"/>>>> name="FirefoxService">>>> name="P1">>>> location="http://localhost/services/Bla"/>
>>>>
>>>>
>>>> 
>>>>
>>>> >>> xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1";
>>>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>FirefoxWsTestWar11.0wargeronimogeronimo-axisjargeronimogeronimo-webservicesjar
>>>>
>>>>
>>>> 
>>>>
>>>> >>> xmlns:p0="http://www.ds2/firefox/ws/xml/";
>>>> xmlns:wsNS="http://www.ds2/firefox/ws/"; version="1.1"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>>> http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd";
>>>> xmlns="http://java.sun.com/xml/ns/j2ee";>firefox.test.ejb.xmlhttp://www.ds2/firefox/ws/xml/firefox.test.ejb.xml.ProxyInfop0:ProxyInfoTypecomplexTypeserverZeitserverZeitstatusstatus
> >>>  
>>>> ava-variable-name>clientSperrenclientSperrenmsgmsgfirefox.test.ws.EPIFwsNS:FirefoxServiceP1P1firefox.test.ws.EPIFwsNS:P1wsNS:P1Binding0holeZufallholeZufallintwsNS:P1_holeZufall_Response
>  s
> dl
>>>>  
>>>> -message-part-name>rcholeProxyInfogetPInfo0java.lang.StringwsNS:P1_getPInfo_RequestclientAdresseINfirefox.test.ejb.xml.ProxyInfowsNS:P1_getPInfo_Responserc
>>>>
>>>>
>>>> 
>>>>
>>>> >>> version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>>>> xmlns="http://java.sun.com/xml/ns/j2ee";>Firefox Webservices
>>>> Testsitefirefox.test.listeners.StartupListenerDie
>>>> Update-RDF-DateiupdateSitefirefox.test.servlets.UpdateSiteupdateSite/update.rdfJaxEPfirefox.test.ws.EPJaxEP/ep1microsummary>>> f
>>>>  
>>>> irefox.test.servlets.Microsummarymicrosummary/ms.xmlindex.jspx/fxws/WEB-INF/fxws.tld
>>>>
>>>>
>>>> 
>>>>
>>>> >>> version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>>> http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd";
>>>> xmlns="http://java.sun.com/xml/ns/j2ee";>Firefox
>>>> WebserviceEin
>>>> Testservice zur Nutzung mit einer
>>>> Extension.FirefoxServiceWEB-INF/wsdl/firefox.wsdlWEB-INF/jaxrpc-mapping.xmlP1>>> xmlns:ws0ns0="http://www.ds2/firefox/ws/

Re: [Bulk] JAX-RPC Webservice deploys with NPE

2006-12-14 Thread Kaeto23
t; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; 
> xmlns="http://java.sun.com/xml/ns/j2ee";>Firefox Webservices 
> Testsitefirefox.test.listeners.StartupListenerDie
>  
> Update-RDF-DateiupdateSitefirefox.test.servlets.UpdateSiteupdateSite/update.rdfJaxEPfirefox.test.ws.EPJaxEP/ep1microsummaryf
>  
> irefox.test.servlets.Microsummarymicrosummary/ms.xmlindex.jspx/fxws/WEB-INF/fxws.tld
> 
> 
> 
> 
>  version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd"; 
> xmlns="http://java.sun.com/xml/ns/j2ee";>Firefox 
> WebserviceEin Testservice 
> zur Nutzung mit einer 
> Extension.FirefoxServiceWEB-INF/wsdl/firefox.wsdlWEB-INF/jaxrpc-mapping.xmlP1  
> xmlns:ws0ns0="http://www.ds2/firefox/ws/";>ws0ns0:P1firefox.test.ws.EPIFJaxEP
> 
> 
> 
> 
> /**
>  * 
>  */
> package firefox.test.ws;
> 
> import java.util.Random;
> 
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> 
> import firefox.test.ejb.xml.ProxyInfo;
> 
> import xd5.annotations.WsdlOperationsArt;
> import xd5.annotations.ejb.XD5EjbInterfaceMethod;
> import xd5.annotations.web.XD5WebServlet;
> import xd5.annotations.ws.XD5WebservicePort;
> 
> import kaeto23.tools.DebugLogger;
> 
> /**
>  * @author kaeto23
>  *
>  */
> @WebService(serviceName="FirefoxService",portName="P1")
> @XD5WebServlet(name="JaxEP", urlMappings={"/ep1"})
> @XD5WebservicePort(portName="P1", 
> serviceNameID="FirefoxService",jaxRpcServletName="JaxEP",jaxRpcServiceIF="firefox.test.ws.EPIF")
> public class EP extends DebugLogger implements EPIF {
>   private Random zufall=null;
> 
>   /**
>* 
>*/
>   public EP() {
>   super();
>   zufall=new Random();
>   }
>   @WebMethod
>   @XD5EjbInterfaceMethod(descr = "Liefert eine Zufallszahl 
> zur\u00fcck",wsdlOperation=WsdlOperationsArt.Notification)
>   public int holeZufall() {
>   return zufall.nextInt();
>   }
>   @XD5EjbInterfaceMethod(descr="Liefert eine Info an den 
> Client",wsdlAlias="getPInfo")
>   @WebMethod(operationName="getPInfo")
>   public ProxyInfo holeProxyInfo(String clientAdresse){
>   finest("Liefere Proxyinfo. Param ist "+clientAdresse);
>   ProxyInfo rc=new ProxyInfo();
>   rc.setClientSperren(false);
>   rc.setMsg("Hello, Client");
>   rc.setStatus(zufall.nextInt(3));
>   return rc;
>   }
> 
> }
> 
> 
> 
> 
> /**
>  * 
>  */
> package firefox.test.ws;
> 
> import java.rmi.Remote;
> import java.rmi.RemoteException;
> 
> import firefox.test.ejb.xml.ProxyInfo;
> 
> /**
>  * @author kaeto23
>  *
>  */
> public interface EPIF extends Remote{
>   public int holeZufall() throws RemoteException;
>   public ProxyInfo holeProxyInfo(String clientAdresse) throws 
> RemoteException;
> }

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFgVfXbiSTaBU+G6oRA20XAKCIjdhnQVBdVwq+BVcNPkasJ4d7ygCfZiEF
d9V4lKDORtAATmp4LMir7wc=
=cG2n
-END PGP SIGNATURE-





___ 
Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


Re: sending email in geronimo

2006-12-07 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Melvin

I remember that someone here on the list had a similar problem. By
including a dependency on javamail (I forgot the details) he was able to
use javamail finally.

Therefore, you may search the archive of this list for javamail. I hope
you will find the answer ^^

Oh, I forgot: he/she was implementing a GBean afaik ...

Best regards

Dirk

Melvin Dave Vivas schrieb:
> I'm still confused on how Geronimo handles sending of mail using
> javamail. I also haven't found any documentation explaining how to
> send mail using Geronimo.
> 
> In my code, I just use the javamail basic stuff but it does not work for
> me.
> 
> Any ideas?
> 
> Thanks.
> 
> On 12/6/06, Melvin Dave Vivas <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have a problem with sending email using javamail 1.4 in Geronimo.
>> Here is the error I am getting.
>>
>> java.lang.UnsupportedOperationException: Method not yet implemented
>> at
>> javax.mail.internet.MimeMessage.addRecipients(MimeMessage.java:287)
>>
>> I suspect that there is a classloading problem with my jars. Any ideas
>> on what workaround I can implement?
>>
>> By the way, can we force the application to load classes first from
>> the web application's WEB-INF/lib directory? This is where I place my
>> javamail libraries.
>>
>> Thanks!
>>
>> Melvin
>>
> 
> 

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFd9cDbiSTaBU+G6oRA9tgAJ49GBypTob44xriIUSiW2qnbw/+cgCdHpv3
kRE0ErOI/Z/dz9cc+pDWAko=
=/mT/
-END PGP SIGNATURE-





___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


Re: CLASSLOADING problem in WAR MultiParentClassLoader ClassNotFoundException

2006-11-21 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Frank

basically, I don't understand your problem. A CNF exception is thrown
when the classloader can't load a class with all of its imports. So,
according to this stack trace, the loading of class
MietverhaeltnisSessionState could not succeed because one of the
imported classes are missing. Usually, the stacktrace should point you
to the line that went wrong.

Is MietverhaeltnisSessionState a bean?

Best regards

Dirk

Pientka, Frank schrieb:
> After invoking the webapplication I’ll get the following Exception.
> 
>  
> 
> 16:15:40,460 FATALJAV0304[I1U2Mzdz] [EMAIL PROTECTED]:
> 
> java.lang.ClassNotFoundException:
> de.beispielanwendung.mietverhaeltnis.web.application.state.MietverhaeltnisSessionState
> (MietverhaeltnisInterface.jar
> 
> ) in classloader Beispielanwendung/EAR/1.0/car
> 
> at
> org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java(Compiled
> Code))
> 
> at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled
> Code))
> 
> at java.lang.Class.forName1(Native Method)
> 
> at java.lang.Class.forName(Class.java(Compiled Code))
> 
> The jar-File with the Class-file is in the surrounding EAR-File and
> referenced in the Manifest-File.
> 
>  
> 
>  
> 
> Beispielanwendung.ear
> 
>  | - geronimo-application.xml
> 
>  | - MietverhaeltnisInterface.jar
> 
>  | - BeispielanwendungWeb.war |
> 
> - META-INF
> 
> | - MANIFEST.MF (Class-Path: MietverhaeltnisInterface.jar)
> 
>  
> 
> How to fix this Problem? Invers Classloading is not possible, because of
> different jar-Versions of the libs.
> 
> regards
> 
>  **Frank Pientka**
> 
>  
> 
>  
> 
>   
> 
>  
> 
>   
> 
>  
> 
>   
> 
>  
> 
>  
> 
>   
> 
>  
> 
>   
> 
>  
> 
>   
> 
>  
> 
>  
> 
>   
> 
>  
> 
>   
> 
>  
> 
>   
> 
>  
> 
>  
> 

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFYv2mbiSTaBU+G6oRA4AkAJ4kBux8CmY+PWBMx2KEXODfVhvnQQCcD8pz
DoHyY5052CIOSeKTGDSbSVk=
=Zlsm
-END PGP SIGNATURE-


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Re: ejbSelect with LIMIT

2006-10-25 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Gianny

sad to hear :/ I always thought that it is a standard clause.

Well, you may implement it (the OFFSET clause is also not spec
compliant?) but you don't need to. I'll try to create workaround in that
case :)

Best regards

Dirk

Gianny Damour schrieb:
> Hello,
> 
> The LIMIT clause is not an EJBQL standard compliant clause and TranQL
> does not support it. Thought, I should be able to add it rather easily.
> 
> Thanks,
> Gianny
> 
> On 25/10/2006, at 10:20 PM, Kaeto23 wrote:
> 
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: RIPEMD160
>>
>> Hello,
>>
>> the main ejbSelect problems are resolved. Now there's another problem
>> which may not be related to a bug but to a missunderstanding.
>>
>> Have this ejbSelect:
>>
>> @XD5EjbSelectMethode(descr="returns the latest post from the forum",
>> ejbQL="select distinct object(p) from Post as p where
>> p.thread.forum.id=?1 order by p.erstellt desc limit 1")
>> public abstract Post ejbSelectLatestPost(long forumId) throws
>> FinderException;
>>
>> which should return the latest post entry from a forum. Unfortunately
>> the TranQL parser thinks that this ejbQL is wrong. Does anyone have the
>> correct syntax for this?
> 
> 

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFP1vNbiSTaBU+G6oRA8DTAJ9+CCyEwLk4GkWEFvb8UXxn5pZrLwCgifDx
Gp/uHeGEc2yv6+gIox6BNUc=
=1fbY
-END PGP SIGNATURE-





___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


ejbSelect with LIMIT

2006-10-25 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello,

the main ejbSelect problems are resolved. Now there's another problem
which may not be related to a bug but to a missunderstanding.

Have this ejbSelect:

@XD5EjbSelectMethode(descr="returns the latest post from the forum",
ejbQL="select distinct object(p) from Post as p where
p.thread.forum.id=?1 order by p.erstellt desc limit 1")
public abstract Post ejbSelectLatestPost(long forumId) throws
FinderException;

which should return the latest post entry from a forum. Unfortunately
the TranQL parser thinks that this ejbQL is wrong. Does anyone have the
correct syntax for this?

Stacktrace at deploy time:

aused by: org.tranql.ql.QueryException: Select [Select
method=[ejbSelectLatestPost]; EJB-QL=[select distinct object(p) from
Post as p where p.thread.forum.id=?1 order by p.erstellt desc limit 1]]
at
org.tranql.sql.EJBQLToPhysicalQuery.buildSelect(EJBQLToPhysicalQuery.java:173)
at
org.tranql.sql.EJBQLToPhysicalQuery.buildSelects(EJBQLToPhysicalQuery.java:109)
... 37 more
Caused by: org.tranql.ql.QueryException: Parser, lexer or Tree-walker
exception
at
org.tranql.sql.EJBQLToPhysicalQuery.getEJBQLQuery(EJBQLToPhysicalQuery.java:235)
at
org.tranql.sql.EJBQLToPhysicalQuery.buildSelect(EJBQLToPhysicalQuery.java:152)
... 38 more
Caused by: org.tranql.ql.QueryException: Tokens left on the stream.
at
org.tranql.sql.EJBQLToPhysicalQuery.getEJBQLQuery(EJBQLToPhysicalQuery.java:227)
... 39 more

Best regards

Dirk

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFP1ambiSTaBU+G6oRA/eWAJ4p8YmkVBWVlOOaW+3nDw3QgO6SnwCfVF0G
ZijW675K1JD/WS2ihWIJBHk=
=3pHa
-END PGP SIGNATURE-


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Re: ejbSelect tutorial?

2006-10-24 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Gianny

glad to tell you that now the second ejbQL

select distinct r.user from ForumRolle r where r.userRolle.id=?1 order
by r.user.username asc

is working :) Well, at least, again no sudden death on deploy time :P

I'll now implement a home method that uses the ejbSelect. I don't expect
any problems from now on.

Don't mind about the problems :P We're here to report you any problems
and discuss them. And I'm glad that you fixed it in such a short time :)

Best regards

Dirk

Gianny Damour schrieb:
> Hello Dirk,
> 
> Thanks for trying this out.
> 
> I looked at your new problem and applied another TranQL fix to resolve
> it. Basically, the prefetch group selection for ejbSelect was wrong as I
> naively applied the same prefetch group selection mechanism than for
> finders... Could you please do me another favor and download the latest
> TranQL-1.4-SNAPSHOT artifact and tried it out?
> 
> BTW, if your "Default" prefetch group selects all the CMP Fields of the
> selected EJB, then you do not need it: by default, all CMP Fields, which
> are not mapped to LOB types are prefetched by default.
> 
> Sorry for these problems,
> Gianny
> 
> 
> On 24/10/2006, at 8:37 PM, Kaeto23 wrote:
> 
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: RIPEMD160
>>
>> Hello, Gianny
>>
>> glad to tell you that this ejbQL
>>
>> select distinct count(p.id) from Post as p where p.thread.forum.id=?1
>>
>> now works. At least I can deploy the ear without any sudden death :P
>> I'll implement the ejbHome method in some minutes to test if the
>> counting is correct ;)
>>
>> Anyway, this ejbQL
>>
>> select distinct r.user from ForumRolle r where r.userRolle.id=?1 order
>> by r.user.username asc
>>
>> from the bean ForumRolle (see the other posts where I included the
>> source file) ends in an exception like this:
>>
>> Caused by: java.lang.IllegalArgumentException: QuerySource
>> [EMAIL PROTECTED] and PrefetchGroup
>> [EMAIL PROTECTED]
>>
>> do not match.
>> at
>> org.tranql.sql.prefetch.PrefetchGroupTransform.(PrefetchGroupTransform.java:65)
>>
>> at
>> org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:219)
>> at
>> org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
>>
>> at
>> org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
>>
>> at
>> org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)
>>
>> ... 32 more
>>
>> I'll recompile the forum project again with another prefetch for the
>> ejbSelect. Maybe that works :/
>>
>> Best regards
>>
>> Dirk
> 
> 

- --
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFPg88biSTaBU+G6oRA3V2AJ48j6YSQljWK51+HAt9sHHig0+c1gCeOFB3
brIa25Hnt5ya79Oqp2iZkGs=
=QOZ0
-END PGP SIGNATURE-


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Re: ejbSelect tutorial?

2006-10-24 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, David

if you're right (of cource, you are :P) then somebody at
http://tranql.codehaus.org/Download hasn't considered an update of that
page "for quite a while".

Fortunately, the pom script from the svn repo contained a url that I tried:

http://snapshots.repository.codehaus.org/org/tranql/tranql/1.4-SNAPSHOT/

The file date of the 1.4 snapshot was Oct, the 22., so I grabbed that
file and included it into geronimo.

Some things about the TranQL trunk: seems that some files are not yet
ready to compile. At least my compiler tells me that you forgot to
implement some abstract methods -> compile failed. See
DatasourceDelegate from the tranql/sql package (one of many files).

Best regards

Dirk

David Jencks schrieb:
> Tranql has been on svn for quite a while.
> 
> try
> svn co https://svn.codehaus.org/tranql/tranql
> 
> You might need one more directory (https://svn.codehaus.org/tranql)   if
> building complains about missing tranql-parent.
> 
> The build is on maven 2 now also.
> 
> I thought these were published, they'd probably be in the codehaus m2 repo.
> 
> thanks
> david jencks
> 
> On Oct 24, 2006, at 12:48 AM, Kaeto23 wrote:
> 
> Hello, Gianny
> 
> can you point me to where to grab the new jar? I tried the download at
> codehaus.org but the file date for the 1.4 snapshot is July 2006?? And
> funnily I can't access the cvs (Could not connect to
> :pserver:[EMAIL PROTECTED]:/home/projects/tranql/scm:
> I/O exception occurred: Connection refused: /home/projects/tranql/scm:
> no such repository
> ).
> 
> Regards
> 
> Dirk
> 
> Gianny Damour schrieb:
>>>> Hi,
>>>>
>>>> Thanks for reporting these problems. They are now fixed in HEAD of
>>>> TranQL. Could you please download the latest TranQL-1.4-SNAPSHOT
>>>> artifact and confirm that these problems are now fixed? You can simply
>>>> drop this artifact in your repository and Geronimo will pick it up as it
>>>> is the latest available version (thanks David J. for the hint).
>>>>
>>>> The Apache JIRA infrastructure is down at the moment. I will open two
>>>> issues to track them when JIRA will become available.
>>>>
>>>> Thanks for your patience,
>>>> Gianny
>>>>
>>>> On 20/10/2006, at 10:18 PM, Kaeto23 wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> OK, I tried your way now and at least Geronimo keeps talking to me. The
>>>>> stacktrace now reads as follows:
>>>>>
>>>>> Caused by: org.tranql.ql.QueryException: Select [Select
>>>>> method=[ejbSelectForumPostsNum]; EJB-QL=[select distinct count(p.id)
>>>>> from Post as p where p.thread.forum.id=?1]] does not return a EJB and
>>>>> defines the prefetch group [Default].
>>>>> at
>>>>> org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:224)
>>>>>
>>>>> at
>>>>> org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
>>>>>
>>>>>
>>>>> at
>>>>> org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
>>>>>
>>>>>
>>>>> at
>>>>> org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)
>>>>>
>>>>>
>>>>> ... 32 more
>>>>>
>>>>>
>>>>> It seems Geronimo wants a EJB in return. Counting is still a problem ;)
>>>>>
>>>>> I just consider to switch to JOnAS or JBoss ;)
>>>>>
>>>>> Milan: how did you count the EJBs? Do you also use the "Default"
>>>>> prefetch group (only the CMP fields are loaded instead of CMP+CMR)?
>>>>>
>>>>> Best regards
>>>>>
>>>>> Dirk
>>>>>
>>>>>
>>>>> Unger, Milan schrieb:
>>>>>> Hello,
>>>>>>
>>>>>> I faced similar problem, the trick to use following EJB QL:
>>>>>>
>>>>>> select distinct count(p.key) from Post as p where
>>>>>> p.thread.forum.id=?1
>>>>>>
>>>>>> notice count(p.key) - where key should be a property of CMP bean.
>>>>>> I'm not sure if such syntax is required by EJB spec or simply a bug in
>>>>>

Re: ejbSelect tutorial?

2006-10-24 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Gianny

glad to tell you that this ejbQL

select distinct count(p.id) from Post as p where p.thread.forum.id=?1

now works. At least I can deploy the ear without any sudden death :P
I'll implement the ejbHome method in some minutes to test if the
counting is correct ;)

Anyway, this ejbQL

select distinct r.user from ForumRolle r where r.userRolle.id=?1 order
by r.user.username asc

from the bean ForumRolle (see the other posts where I included the
source file) ends in an exception like this:

Caused by: java.lang.IllegalArgumentException: QuerySource
[EMAIL PROTECTED] and PrefetchGroup
[EMAIL PROTECTED]
do not match.
at
org.tranql.sql.prefetch.PrefetchGroupTransform.(PrefetchGroupTransform.java:65)
at
org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:219)
at
org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
at
org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
at
org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)
... 32 more

I'll recompile the forum project again with another prefetch for the
ejbSelect. Maybe that works :/

Best regards

Dirk

Gianny Damour schrieb:
> Hi,
> 
> Thanks for reporting these problems. They are now fixed in HEAD of
> TranQL. Could you please download the latest TranQL-1.4-SNAPSHOT
> artifact and confirm that these problems are now fixed? You can simply
> drop this artifact in your repository and Geronimo will pick it up as it
> is the latest available version (thanks David J. for the hint).
> 
> The Apache JIRA infrastructure is down at the moment. I will open two
> issues to track them when JIRA will become available.
> 
> Thanks for your patience,
> Gianny
> 
> On 20/10/2006, at 10:18 PM, Kaeto23 wrote:
> 
>> Hello,
>>
>> OK, I tried your way now and at least Geronimo keeps talking to me. The
>> stacktrace now reads as follows:
>>
>> Caused by: org.tranql.ql.QueryException: Select [Select
>> method=[ejbSelectForumPostsNum]; EJB-QL=[select distinct count(p.id)
>> from Post as p where p.thread.forum.id=?1]] does not return a EJB and
>> defines the prefetch group [Default].
>> at
>> org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:224)
>> at
>> org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
>>
>> at
>> org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
>>
>> at
>> org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)
>>
>> ... 32 more
>>
>>
>> It seems Geronimo wants a EJB in return. Counting is still a problem ;)
>>
>> I just consider to switch to JOnAS or JBoss ;)
>>
>> Milan: how did you count the EJBs? Do you also use the "Default"
>> prefetch group (only the CMP fields are loaded instead of CMP+CMR)?
>>
>> Best regards
>>
>> Dirk
>>
>>
>> Unger, Milan schrieb:
>>> Hello,
>>>
>>> I faced similar problem, the trick to use following EJB QL:
>>>
>>> select distinct count(p.key) from Post as p where
>>> p.thread.forum.id=?1
>>>
>>> notice count(p.key) - where key should be a property of CMP bean.
>>> I'm not sure if such syntax is required by EJB spec or simply a bug in
>>> geronimo/open-ejb.
>>>
>>> Regards, Milan.
>>>
>>> -Original Message-
>>> From: Kaeto23 [mailto:[EMAIL PROTECTED]
>>> Sent: Thursday, October 19, 2006 6:55 PM
>>> To: Geronimo ML
>>> Subject: ejbSelect tutorial?
>>>
>>> Hello,
>>>
>>> today I started to work on a CMP that also provides a ejbSelect for
>>> counting some contents from a database. Basically, a CMP named Post
>>> which should count how much entries exist in the database.
>>>
>>> Nothing so hard ;)
>>>
>>> Anyway, Geronimo has some trouble to use the EJB so I'd like to know
>>> WHAT is the problem :/
>>>
>>> Here the code snippet that, when not commented out, makes the trouble:
>>>
>>>
>>>
>>>
>>> @XD5EjbSelectMethode(descr = "returns the number of entries", ejbQL =
>>> "select distinct count(p) from Post as p where p.thread.forum.id=?1")
>>> public abstract long ejbSelectForumPostsNum(long forumId) throws
>>> FinderException;
>>>
>>>
>>>
>>> Now XD5 creates the fo

Re: ejbSelect tutorial?

2006-10-24 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Gianny

can you point me to where to grab the new jar? I tried the download at
codehaus.org but the file date for the 1.4 snapshot is July 2006?? And
funnily I can't access the cvs (Could not connect to
:pserver:[EMAIL PROTECTED]:/home/projects/tranql/scm:
I/O exception occurred: Connection refused: /home/projects/tranql/scm:
no such repository
).

Regards

Dirk

Gianny Damour schrieb:
> Hi,
> 
> Thanks for reporting these problems. They are now fixed in HEAD of
> TranQL. Could you please download the latest TranQL-1.4-SNAPSHOT
> artifact and confirm that these problems are now fixed? You can simply
> drop this artifact in your repository and Geronimo will pick it up as it
> is the latest available version (thanks David J. for the hint).
> 
> The Apache JIRA infrastructure is down at the moment. I will open two
> issues to track them when JIRA will become available.
> 
> Thanks for your patience,
> Gianny
> 
> On 20/10/2006, at 10:18 PM, Kaeto23 wrote:
> 
>> Hello,
>>
>> OK, I tried your way now and at least Geronimo keeps talking to me. The
>> stacktrace now reads as follows:
>>
>> Caused by: org.tranql.ql.QueryException: Select [Select
>> method=[ejbSelectForumPostsNum]; EJB-QL=[select distinct count(p.id)
>> from Post as p where p.thread.forum.id=?1]] does not return a EJB and
>> defines the prefetch group [Default].
>> at
>> org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:224)
>> at
>> org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
>>
>> at
>> org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
>>
>> at
>> org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)
>>
>> ... 32 more
>>
>>
>> It seems Geronimo wants a EJB in return. Counting is still a problem ;)
>>
>> I just consider to switch to JOnAS or JBoss ;)
>>
>> Milan: how did you count the EJBs? Do you also use the "Default"
>> prefetch group (only the CMP fields are loaded instead of CMP+CMR)?
>>
>> Best regards
>>
>> Dirk
>>
>>
>> Unger, Milan schrieb:
>>> Hello,
>>>
>>> I faced similar problem, the trick to use following EJB QL:
>>>
>>> select distinct count(p.key) from Post as p where
>>> p.thread.forum.id=?1
>>>
>>> notice count(p.key) - where key should be a property of CMP bean.
>>> I'm not sure if such syntax is required by EJB spec or simply a bug in
>>> geronimo/open-ejb.
>>>
>>> Regards, Milan.
>>>
>>> -Original Message-
>>> From: Kaeto23 [mailto:[EMAIL PROTECTED]
>>> Sent: Thursday, October 19, 2006 6:55 PM
>>> To: Geronimo ML
>>> Subject: ejbSelect tutorial?
>>>
>>> Hello,
>>>
>>> today I started to work on a CMP that also provides a ejbSelect for
>>> counting some contents from a database. Basically, a CMP named Post
>>> which should count how much entries exist in the database.
>>>
>>> Nothing so hard ;)
>>>
>>> Anyway, Geronimo has some trouble to use the EJB so I'd like to know
>>> WHAT is the problem :/
>>>
>>> Here the code snippet that, when not commented out, makes the trouble:
>>>
>>>
>>>
>>>
>>> @XD5EjbSelectMethode(descr = "returns the number of entries", ejbQL =
>>> "select distinct count(p) from Post as p where p.thread.forum.id=?1")
>>> public abstract long ejbSelectForumPostsNum(long forumId) throws
>>> FinderException;
>>>
>>>
>>>
>>> Now XD5 creates the following deployment descriptor entries:
>>>
>>> ejb-jar.xml:
>>> ...
>>> 
>>> returns the number of entries
>>> 
>>> ejbSelectForumPostsNum
>>> 
>>> long
>>> 
>>> 
>>> select distinct count(p) from Post as p where
>>> p.thread.forum.id=?1
>>> 
>>> ...
>>>
>>> openejb-jar.xml
>>> ...
>>> 
>>> 
>>> ejbSelectForumPostsNum
>>> 
>>> long
>>> 
>>> 
>>> Default
>>> 
>>> ...
>>>
>>> If these lines are present, Geronimo will crash with this exception:
>>>
>>> Caused by: java.lang.ClassCastEx

Re: ejbSelect tutorial?

2006-10-23 Thread Kaeto23
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello, Lasantha

sure, no problem. I attach the 2 source files for the 2 CMPs. Keep in
mind that I'm german (see all the descr's) :)

Best regards

Dirk

Lasantha Ranaweera schrieb:
> Hi Dirk,
> 
> Would you mind sharing your code with us?
> 
> Thanks,
> Lasantha Ranaweera
> 
> Kaeto23 wrote:
>> Hello,
>>
>> OK, I tried your way now and at least Geronimo keeps talking to me. The
>> stacktrace now reads as follows:
>>
>> Caused by: org.tranql.ql.QueryException: Select [Select
>> method=[ejbSelectForumPostsNum]; EJB-QL=[select distinct count(p.id)
>> from Post as p where p.thread.forum.id=?1]] does not return a EJB and
>> defines the prefetch group [Default].
>>  at
>> org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:224)
>>  at
>> org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
>>  at
>> org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
>>  at
>> org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)
>>  ... 32 more
>>
>>
>> It seems Geronimo wants a EJB in return. Counting is still a problem ;)
>>
>> I just consider to switch to JOnAS or JBoss ;)
>>
>> Milan: how did you count the EJBs? Do you also use the "Default"
>> prefetch group (only the CMP fields are loaded instead of CMP+CMR)?
>>
>> Best regards
>>
>> Dirk
>>
>>
>> Unger, Milan schrieb:
>>   
>>> Hello, 
>>>
>>> I faced similar problem, the trick to use following EJB QL: 
>>>  
>>> select distinct count(p.key) from Post as p where
>>> p.thread.forum.id=?1
>>>
>>> notice count(p.key) - where key should be a property of CMP bean. 
>>> I'm not sure if such syntax is required by EJB spec or simply a bug in
>>> geronimo/open-ejb.
>>>
>>> Regards, Milan. 
>>>
>>> -Original Message-
>>> From: Kaeto23 [mailto:[EMAIL PROTECTED] 
>>> Sent: Thursday, October 19, 2006 6:55 PM
>>> To: Geronimo ML
>>> Subject: ejbSelect tutorial?
>>>
>>> Hello,
>>>
>>> today I started to work on a CMP that also provides a ejbSelect for
>>> counting some contents from a database. Basically, a CMP named Post
>>> which should count how much entries exist in the database.
>>>
>>> Nothing so hard ;)
>>>
>>> Anyway, Geronimo has some trouble to use the EJB so I'd like to know
>>> WHAT is the problem :/
>>>
>>> Here the code snippet that, when not commented out, makes the trouble:
>>>
>>>
>>>
>>>
>>> @XD5EjbSelectMethode(descr = "returns the number of entries", ejbQL =
>>> "select distinct count(p) from Post as p where p.thread.forum.id=?1")
>>> public abstract long ejbSelectForumPostsNum(long forumId) throws
>>> FinderException;
>>>
>>>
>>>
>>> Now XD5 creates the following deployment descriptor entries:
>>>
>>> ejb-jar.xml:
>>> ...
>>> 
>>> returns the number of entries
>>> 
>>> ejbSelectForumPostsNum
>>> 
>>> long
>>> 
>>> 
>>> select distinct count(p) from Post as p where
>>> p.thread.forum.id=?1
>>> 
>>> ...
>>>
>>> openejb-jar.xml
>>> ...
>>> 
>>> 
>>> ejbSelectForumPostsNum
>>> 
>>> long
>>> 
>>> 
>>> Default
>>> 
>>> ...
>>>
>>> If these lines are present, Geronimo will crash with this exception:
>>>
>>> Caused by: java.lang.ClassCastException: org.tranql.ql.EntityReference
>>> at
>>> org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.
>>> java:401)
>>> at
>>> org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.
>>> java:380)
>>> at
>>> org.tranql.ejbqlcompiler.PathTransformer.visit(PathTransformer.java:73)
>>> at org.tranql.ql.Query.visit(Query.java:59)
>>> at
>>> org.tranql.ejbqlcompiler.InterRepresentationTransformer.transform(InterR
>>> epresentationTransformer.java:41

Re: Session Bean as a Web Service - V2

2006-10-23 Thread Kaeto23
  
> 
>   
>  
> 
> ## jaxrpc-mapping.xml #
> 
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.1"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   
> http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd";>
>   
> org.apache.geronimo.samples.calc
> urn:geronimo-samples
>   
>   
> org.apache.geronimo.samples.calc
> urn:geronimo-samples
>   
>   
>   
>   org.apache.geronimo.samples.calc.CalculatorService
>   
>  xmlns:serviceNS="urn:geronimo-samples">serviceNS:CalculatorServiceEJB
> 
>   CalculatorServicePort
>   CalculatorServicePort
> 
>   
>   
> 
> org.apache.geronimo.samples.calc.CalculatorService
>  xmlns:portTypeNS="urn:geronimo-samples">portTypeNS:CalculatorService
>  xmlns:bindingNS="urn:geronimo-samples">bindingNS:CalculatorServiceBinding
> 
>   addition
>   addition
>   
> 0
> int
> 
>xmlns:wsdlMsgNS="urn:geronimo-samples">wsdlMsgNS:CalculatorService_addition
>   int_1
>   IN
> 
>   
>   
> 1
> int
> 
>xmlns:wsdlMsgNS="urn:geronimo-samples">wsdlMsgNS:CalculatorService_addition
>   int_2
>   IN
> 
>   
>   
> int
>  xmlns:wsdlMsgNS="urn:geronimo-samples">wsdlMsgNS:CalculatorService_additionResponse
> result
>   
> 
>   
> 
> 
> # ejb-jar.xml ##
> 
> 
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"; version="2.1">
>
>Generated by XDoclet
>
>   
>   
>  
> 
>  CalculatorServiceBean
> 
>
> org.apache.geronimo.samples.calc.CalculatorService
>  
> org.apache.geronimo.samples.calc.ejb.CalculatorServiceBean
>  Stateless
>  Container
> 
>   
> 
> 
> 
>  openejb-jar.xml
> #
> 
> 
> http://www.openejb.org/xml/ns/openejb-jar-2.1";>
>xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>   
>   org.apache.geronimo.samples
>   CalculatorEJB
>   1.0
>   car
>   
>   
>
>   geronimo
>   geronimo-webservices
>   jar
>
>
>   geronimo
>   geronimo-axis
>   jar
>
>
>   geronimo
>   tomcat
>   car
>
>   
>   
>   
>   
>   
>   
>   CalculatorServiceBean
>   
> /Calculator/calc-ejb
>   
>   
> 
> 
> 
> ### geronimo-web.xml
> #
> 
> http://geronimo.apache.org/xml/ns/j2ee/web-1.1";
> xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1";>
>xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
> 
>   org.apache.geronimo.samples
>   CalculatorWeb
>   1.0
>   car
> 
> 
>   
>geronimo
>geronimo-webservices
>jar
> 
>   
>geronimo
>geronimo-axis
>jar
> 
> 
> 
> 
>   
>   /Calculator
> 
>   
>   services/Calculator
>   
>   CalculatorServicePort
>   http
>   localhost
>   8080
>   /Calculator/calc-ejb
>   
>   
> 
> 
> 
> # web.xml
> ###
> 
> 
>xmlns="http://java.sun.com/xml/ns/j2ee";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  

Re: ejbSelect tutorial?

2006-10-20 Thread Kaeto23
Hello,

OK, I tried your way now and at least Geronimo keeps talking to me. The
stacktrace now reads as follows:

Caused by: org.tranql.ql.QueryException: Select [Select
method=[ejbSelectForumPostsNum]; EJB-QL=[select distinct count(p.id)
from Post as p where p.thread.forum.id=?1]] does not return a EJB and
defines the prefetch group [Default].
at
org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:224)
at
org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
at
org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
at
org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)
... 32 more


It seems Geronimo wants a EJB in return. Counting is still a problem ;)

I just consider to switch to JOnAS or JBoss ;)

Milan: how did you count the EJBs? Do you also use the "Default"
prefetch group (only the CMP fields are loaded instead of CMP+CMR)?

Best regards

Dirk


Unger, Milan schrieb:
> Hello, 
> 
> I faced similar problem, the trick to use following EJB QL: 
>  
> select distinct count(p.key) from Post as p where
> p.thread.forum.id=?1
> 
> notice count(p.key) - where key should be a property of CMP bean. 
> I'm not sure if such syntax is required by EJB spec or simply a bug in
> geronimo/open-ejb.
> 
> Regards, Milan. 
> 
> -Original Message-
> From: Kaeto23 [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 19, 2006 6:55 PM
> To: Geronimo ML
> Subject: ejbSelect tutorial?
> 
> Hello,
> 
> today I started to work on a CMP that also provides a ejbSelect for
> counting some contents from a database. Basically, a CMP named Post
> which should count how much entries exist in the database.
> 
> Nothing so hard ;)
> 
> Anyway, Geronimo has some trouble to use the EJB so I'd like to know
> WHAT is the problem :/
> 
> Here the code snippet that, when not commented out, makes the trouble:
> 
> 
> 
> 
> @XD5EjbSelectMethode(descr = "returns the number of entries", ejbQL =
> "select distinct count(p) from Post as p where p.thread.forum.id=?1")
> public abstract long ejbSelectForumPostsNum(long forumId) throws
> FinderException;
> 
> 
> 
> Now XD5 creates the following deployment descriptor entries:
> 
> ejb-jar.xml:
> ...
> 
>   returns the number of entries
>   
>   ejbSelectForumPostsNum
>   
>   long
>   
>   
>   select distinct count(p) from Post as p where
> p.thread.forum.id=?1
> 
> ...
> 
> openejb-jar.xml
> ...
> 
>   
>   ejbSelectForumPostsNum
>   
>   long
> 
>   
>   Default
> 
> ...
> 
> If these lines are present, Geronimo will crash with this exception:
> 
> Caused by: java.lang.ClassCastException: org.tranql.ql.EntityReference
> at
> org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.
> java:401)
> at
> org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.
> java:380)
> at
> org.tranql.ejbqlcompiler.PathTransformer.visit(PathTransformer.java:73)
> at org.tranql.ql.Query.visit(Query.java:59)
> at
> org.tranql.ejbqlcompiler.InterRepresentationTransformer.transform(InterR
> epresentationTransformer.java:41)
> at
> org.tranql.ejbqlcompiler.DerbyEJBQLCompilerFactory$DerbyEJBQLCompiler.tr
> ansform(DerbyEJBQLCompilerFactory.java:69)
> at
> org.tranql.sql.EJBQLToPhysicalQuery.expandToSQLQuery(EJBQLToPhysicalQuer
> y.java:243)
> at
> org.tranql.sql.EJBQLToPhysicalQuery.buildSelect(EJBQLToPhysicalQuery.jav
> a:171)
> at
> org.tranql.sql.EJBQLToPhysicalQuery.buildSelects(EJBQLToPhysicalQuery.ja
> va:109)
> at
> org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:204
> )
> at
> org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.j
> ava:311)
> at
> org.openejb.deployment.AbstractContainerBuilder.createConfiguration(Abst
> ractContainerBuilder.java:354)
> at
> org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java
> :213)
> 
> 
> So, basically, do you have some examples or tutorials that show the
> usage of ejbSelects with Geronimo 1.1.1? Let me know :)
> 
> Best regards
> 
> Dirk
> 
> 
>   
> 
>   
>   
> ___ 
> Der frhe Vogel fngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
> http://mail.yahoo.de
> 

-- 
Kaeto23

HTTP: http://kaeto23.dnsalias.com (german!)
Jabber: jabber://[EMAIL PROTECTED]/DS2

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird/





___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


Re: ejbSelect tutorial?

2006-10-20 Thread Kaeto23
Hello,

ok, I have more ejb qls that make OpenEJB fail ;)

Have this one:

@XD5EjbSelectMethode(descr = "returns all users that have the
appropriate right", ejbQL = "select distinct r.user from ForumRoll r
where r.userRoll.id=?1 order by r.user.username asc")
public abstract Collection ejbSelectForumsuserByRoll(int
rechteId);

Compiling this ejbSelect ends in this:

Caused by: java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
at java.util.SubList.(AbstractList.java:707)
at java.util.AbstractList.subList(AbstractList.java:570)
at
org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.java:423)
at
org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.java:380)
at 
org.tranql.ejbqlcompiler.PathTransformer.visit(PathTransformer.java:73)
at org.tranql.ql.Query.visit(Query.java:59)
at
org.tranql.ejbqlcompiler.InterRepresentationTransformer.transform(InterRepresentationTransformer.java:41)
at
org.tranql.ejbqlcompiler.DerbyEJBQLCompilerFactory$DerbyEJBQLCompiler.transform(DerbyEJBQLCompilerFactory.java:69)
at
org.tranql.sql.EJBQLToPhysicalQuery.expandToSQLQuery(EJBQLToPhysicalQuery.java:243)
at
org.tranql.sql.EJBQLToPhysicalQuery.buildView(EJBQLToPhysicalQuery.java:198)
at
org.tranql.sql.EJBQLToPhysicalQuery.buildSelect(EJBQLToPhysicalQuery.java:161)
at
org.tranql.sql.EJBQLToPhysicalQuery.buildSelects(EJBQLToPhysicalQuery.java:109)
at
org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:204)
at
org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
at
org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
at
org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)


What does Geronimo (TranQL) wants to tell me?

I'll try the count clause now. Thanks Milan for providing this "fix" :P

Best regards

Dirk


Gianny Damour schrieb:
> Hello,
> 
> Thanks for having provided this work around Milan. This is a bug in the
> processing of the COUNT aggregation function: the code assumes that the
> content of a COUNT is always a path expression and does not handle the
> case where only an entity is provided.
> 
> Thanks,
> Gianny
> 
> 
> On 20/10/2006, at 6:04 PM, Unger, Milan wrote:
> 
>> Hello,
>>
>> I faced similar problem, the trick to use following EJB QL:
>>
>> select distinct count(p.key) from Post as p where
>> p.thread.forum.id=?1
>>
>> notice count(p.key) - where key should be a property of CMP bean.
>> I'm not sure if such syntax is required by EJB spec or simply a bug in
>> geronimo/open-ejb.
>>
>> Regards, Milan.
>>
>> -Original Message-
>> From: Kaeto23 [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, October 19, 2006 6:55 PM
>> To: Geronimo ML
>> Subject: ejbSelect tutorial?
>>
>> Hello,
>>
>> today I started to work on a CMP that also provides a ejbSelect for
>> counting some contents from a database. Basically, a CMP named Post
>> which should count how much entries exist in the database.
>>
>> Nothing so hard ;)
>>
>> Anyway, Geronimo has some trouble to use the EJB so I'd like to know
>> WHAT is the problem :/
>>
>> Here the code snippet that, when not commented out, makes the trouble:
>>
>>
>>
>>
>> @XD5EjbSelectMethode(descr = "returns the number of entries", ejbQL =
>> "select distinct count(p) from Post as p where p.thread.forum.id=?1")
>> public abstract long ejbSelectForumPostsNum(long forumId) throws
>> FinderException;
>>
>>
>>
>> Now XD5 creates the following deployment descriptor entries:
>>
>> ejb-jar.xml:
>> ...
>> 
>> returns the number of entries
>> 
>> ejbSelectForumPostsNum
>> 
>> long
>> 
>> 
>> select distinct count(p) from Post as p where
>> p.thread.forum.id=?1
>> 
>> ...
>>
>> openejb-jar.xml
>> ...
>> 
>> 
>> ejbSelectForumPostsNum
>> 
>> long
>> 
>> 
>> Default
>> 
>> ...
>>
>> If these lines are present, Geronimo will crash with this exception:
>>
>> Caused by: java.lang.ClassCastException: org.tranql.ql.EntityReference
>> at
>> org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.
>> java:401)
>> at
>> org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.
>> java:380)
>> 

ejbSelect tutorial?

2006-10-19 Thread Kaeto23
Hello,

today I started to work on a CMP that also provides a ejbSelect for
counting some contents from a database. Basically, a CMP named Post
which should count how much entries exist in the database.

Nothing so hard ;)

Anyway, Geronimo has some trouble to use the EJB so I'd like to know
WHAT is the problem :/

Here the code snippet that, when not commented out, makes the trouble:




@XD5EjbSelectMethode(descr = "returns the number of entries", ejbQL =
"select distinct count(p) from Post as p where p.thread.forum.id=?1")
public abstract long ejbSelectForumPostsNum(long forumId) throws
FinderException;



Now XD5 creates the following deployment descriptor entries:

ejb-jar.xml:
...

returns the number of entries

ejbSelectForumPostsNum

long


select distinct count(p) from Post as p where
p.thread.forum.id=?1

...

openejb-jar.xml
...


ejbSelectForumPostsNum

long   


Default

...

If these lines are present, Geronimo will crash with this exception:

Caused by: java.lang.ClassCastException: org.tranql.ql.EntityReference
at
org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.java:401)
at
org.tranql.ejbqlcompiler.PathTransformer$Context.(PathTransformer.java:380)
at
org.tranql.ejbqlcompiler.PathTransformer.visit(PathTransformer.java:73)
at org.tranql.ql.Query.visit(Query.java:59)
at
org.tranql.ejbqlcompiler.InterRepresentationTransformer.transform(InterRepresentationTransformer.java:41)
at
org.tranql.ejbqlcompiler.DerbyEJBQLCompilerFactory$DerbyEJBQLCompiler.transform(DerbyEJBQLCompilerFactory.java:69)
at
org.tranql.sql.EJBQLToPhysicalQuery.expandToSQLQuery(EJBQLToPhysicalQuery.java:243)
at
org.tranql.sql.EJBQLToPhysicalQuery.buildSelect(EJBQLToPhysicalQuery.java:171)
at
org.tranql.sql.EJBQLToPhysicalQuery.buildSelects(EJBQLToPhysicalQuery.java:109)
at
org.tranql.builder.SQLQueryBuilder.buildSelects(SQLQueryBuilder.java:204)
at
org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
at
org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
at
org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:213)


So, basically, do you have some examples or tutorials that show the
usage of ejbSelects with Geronimo 1.1.1? Let me know :)

Best regards

Dirk






___ 
Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de