You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Ryan Layer <rl...@tamu.edu> on 2004/07/13 20:31:07 UTC

OJB Deployment Logging Issue

I am able to get OJB to function properly in an un-managed environment. 
But when I attempt to deploy an EJB with in the Sun Application Server I 
get the following error :

Could not create Entity EJB; nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
         at org.apache.ojb.broker.util.logging.LoggerFactoryImpl.getLogger(Unknown Source)
         at org.apache.ojb.broker.util.logging.LoggerFactory.getLogger(Unknown Source)

The line causing this error is:

private Logger log = LoggerFactory.getLogger(SectionBean.class);

I have read the ejb deployment documentation but cannot seem to fix this issue.
Could it be that I am not properly setting my CLASSPATH, therefore the
LoggerFactory cannot get the configs?  Or would this produce a different error?

Thanks for your help.

--Ryan Layer

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: OJB Deployment Logging Issue

Posted by katarn <ka...@racsa.co.cr>.
Hi Ryan,

I was having the same problem after updating from an older rc to the 1.0 
release, ( I posted a question a few days ago, but I realized now I was 
not giving the right info, I was going crazy with that Exception ).

Well, I have just realized the problem is related with the Java policy 
permissions. I don't know yet which permission is needed, but if you 
want to try it, add "java.security.AllPermission" to your .java.policy 
file and try ( restart server ).

Hope this helps!

K.


Ryan Layer wrote:

>
> I am able to get OJB to function properly in an un-managed 
> environment. But when I attempt to deploy an EJB with in the Sun 
> Application Server I get the following error :
>
> Could not create Entity EJB; nested exception is: 
> java.lang.NullPointerException
> java.lang.NullPointerException
>         at 
> org.apache.ojb.broker.util.logging.LoggerFactoryImpl.getLogger(Unknown 
> Source)
>         at 
> org.apache.ojb.broker.util.logging.LoggerFactory.getLogger(Unknown 
> Source)
>
> The line causing this error is:
>
> private Logger log = LoggerFactory.getLogger(SectionBean.class);
>
> I have read the ejb deployment documentation but cannot seem to fix 
> this issue.
> Could it be that I am not properly setting my CLASSPATH, therefore the
> LoggerFactory cannot get the configs?  Or would this produce a 
> different error?
>
> Thanks for your help.
>
> --Ryan Layer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: OJB Deployment Logging Issue

Posted by Thomas Mahler <th...@web.de>.
Hi Ryan,

this sounds as if ojb.properties and/or the repository files were not on 
the classpath.
Did you follow the steps required for deploying ojb in an app server?
http://db.apache.org/ojb/docu/guides/deployment.html

cheers,
Thomas

Ryan Layer wrote:
> 
> I am able to get OJB to function properly in an un-managed environment. 
> But when I attempt to deploy an EJB with in the Sun Application Server I 
> get the following error :
> 
> Could not create Entity EJB; nested exception is: 
> java.lang.NullPointerException
> java.lang.NullPointerException
>         at 
> org.apache.ojb.broker.util.logging.LoggerFactoryImpl.getLogger(Unknown 
> Source)
>         at 
> org.apache.ojb.broker.util.logging.LoggerFactory.getLogger(Unknown Source)
> 
> The line causing this error is:
> 
> private Logger log = LoggerFactory.getLogger(SectionBean.class);
> 
> I have read the ejb deployment documentation but cannot seem to fix this 
> issue.
> Could it be that I am not properly setting my CLASSPATH, therefore the
> LoggerFactory cannot get the configs?  Or would this produce a different 
> error?
> 
> Thanks for your help.
> 
> --Ryan Layer
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org