You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by jsolderitsch <js...@gestalt-llc.com> on 2007/03/01 02:25:02 UTC

Abdera and Glassfish (and JAX-WS?)

I am trying to run some code that depends on the getFactory method as the
basis for creating a new Entry object.

This code works fine in our junit tests and when deployed as a war to
tomcat.

Recently I am trying to use code based on this inside a web service
implementation that I am deploying (via netbeans) to Glassfish, Sun's app
server.

Unexpectedly, the code sequence:

        Abdera _abdera = new Abdera();
        _af = _abdera.getFactory();
        Entry atomEntry = _af.newEntry();

just results in a null pointer exception on the third line.

I am using these lines in a static private method in a class that provides
some context info for my web service class.

I looked at the source and there is a general return of null when a no class
def found error reaches the attempt to get a factory.

Perhaps I should include more of the abdera jars in my lib classes -- right
now I am including only the client and core jars. I will try this next. The
code compiles with just the two jars but perhaps there is a runtime
dependency on some other abdera classes located in other jars.

Jim

-- 
View this message in context: http://www.nabble.com/Abdera-and-Glassfish-%28and-JAX-WS-%29-tf3324314.html#a9241927
Sent from the abdera-dev mailing list archive at Nabble.com.


Re: [Announce] Abdera and Glassfish (and JAX-WS?)

Posted by James M Snell <ja...@gmail.com>.
Garrett Rooney wrote:
> [snip]
> Well, in your defense Abdera doesn't exactly do a good job of dealing
> gracefully with missing dependencies...
> 

Bah! That's all part of the fun!

Seriously, we do need to add some better error reporting.

- James

Re: [Announce] Abdera and Glassfish (and JAX-WS?)

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 3/1/07, jsolderitsch <js...@gestalt-llc.com> wrote:
>
> Thanks!
>
> Shortly after I posted, I discovered the parser module dependency.
>
> Once I added this to my web app war, my null pointer error was overcome.
>
> It's really my fault -- our maven pom had this dependency and in moving to
> an ant build process in another project I lost track of this dependency.

Well, in your defense Abdera doesn't exactly do a good job of dealing
gracefully with missing dependencies...

-garrett

Re: [Announce] Abdera and Glassfish (and JAX-WS?)

Posted by jsolderitsch <js...@gestalt-llc.com>.
Thanks!

Shortly after I posted, I discovered the parser module dependency.

Once I added this to my web app war, my null pointer error was overcome.

It's really my fault -- our maven pom had this dependency and in moving to
an ant build process in another project I lost track of this dependency.

Jim


James M Snell wrote:
> 
> At a minimum you need the core and parser modules.
> 
> - James
> 
> jsolderitsch wrote:
>> [snip]
>> Perhaps I should include more of the abdera jars in my lib classes --
>> right
>> now I am including only the client and core jars. I will try this next.
>> The
>> code compiles with just the two jars but perhaps there is a runtime
>> dependency on some other abdera classes located in other jars.
>> 
>> Jim
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Abdera-and-Glassfish-%28and-JAX-WS-%29-tf3324314.html#a9257600
Sent from the abdera-dev mailing list archive at Nabble.com.


Re: Abdera and Glassfish (and JAX-WS?)

Posted by James M Snell <ja...@gmail.com>.
At a minimum you need the core and parser modules.

- James

jsolderitsch wrote:
> [snip]
> Perhaps I should include more of the abdera jars in my lib classes -- right
> now I am including only the client and core jars. I will try this next. The
> code compiles with just the two jars but perhaps there is a runtime
> dependency on some other abdera classes located in other jars.
> 
> Jim
>