weblogic, hibernate and joda

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

weblogic, hibernate and joda

Murat HAZER
i'm using joda+hibernate with tomcat, jetty, jboss without any problem but when i try to run same project on weblogic 10.3 i get the following error;

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
        Truncated. see log file for complete stacktrace
java.lang.NoSuchMethodError: localDateParser
        at org.joda.time.LocalDate.<init>(LocalDate.java:318)
        at org.joda.time.LocalDate.<init>(LocalDate.java:266)
        at org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:88)
        at org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:76)
        at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:105)
        Truncated. see log file for complete stacktrace
>

any ideas?
------------------------------------------------------------------------------

_______________________________________________
Joda-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/joda-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: weblogic, hibernate and joda

jodastephen
Realistically, there must be a classpath problem, such as two joda-time
jar files.

Stephen


Murat HAZER wrote:

> i'm using joda+hibernate with tomcat, jetty, jboss without any problem
> but when i try to run same project on weblogic 10.3 i get the following
> error;
>
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
>         Truncated. see log file for complete stacktrace
> java.lang.NoSuchMethodError: localDateParser
>         at org.joda.time.LocalDate.<init>(LocalDate.java:318)
>         at org.joda.time.LocalDate.<init>(LocalDate.java:266)
>         at
> org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:88)
>         at
> org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:76)
>         at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:105)
>         Truncated. see log file for complete stacktrace
>  >
>
> any ideas?
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Joda-interest mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/joda-interest

------------------------------------------------------------------------------
_______________________________________________
Joda-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/joda-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: weblogic, hibernate and joda

Murat HAZER
sorry bothering with this, i couldn't think weblogic comes with joda bundled .... thx anyway ...

On Thu, Jan 1, 2009 at 12:33 PM, Stephen Colebourne <[hidden email]> wrote:
Realistically, there must be a classpath problem, such as two joda-time
jar files.

Stephen


Murat HAZER wrote:
> i'm using joda+hibernate with tomcat, jetty, jboss without any problem
> but when i try to run same project on weblogic 10.3 i get the following
> error;
>
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
>         Truncated. see log file for complete stacktrace
> java.lang.NoSuchMethodError: localDateParser
>         at org.joda.time.LocalDate.<init>(LocalDate.java:318)
>         at org.joda.time.LocalDate.<init>(LocalDate.java:266)
>         at
> org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:88)
>         at
> org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:76)
>         at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:105)
>         Truncated. see log file for complete stacktrace
>  >
>
> any ideas?
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Joda-interest mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/joda-interest

------------------------------------------------------------------------------
_______________________________________________
Joda-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/joda-interest



--
Murat HAZER
http://www.projedunyasi.org

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

_______________________________________________
Joda-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/joda-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: weblogic, hibernate and joda

vipul
Has this issue been resolved? Please tell me the solution for the same.....

Murat HAZER wrote
sorry bothering with this, i couldn't think weblogic comes with joda bundled
.... thx anyway ...

On Thu, Jan 1, 2009 at 12:33 PM, Stephen Colebourne <scolebourne@joda.org>wrote:

> Realistically, there must be a classpath problem, such as two joda-time
> jar files.
>
> Stephen
>
>
> Murat HAZER wrote:
> > i'm using joda+hibernate with tomcat, jetty, jboss without any problem
> > but when i try to run same project on weblogic 10.3 i get the following
> > error;
> >
> > java.lang.reflect.InvocationTargetException
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:597)
> >         at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
> >         Truncated. see log file for complete stacktrace
> > java.lang.NoSuchMethodError: localDateParser
> >         at org.joda.time.LocalDate.<init>(LocalDate.java:318)
> >         at org.joda.time.LocalDate.<init>(LocalDate.java:266)
> >         at
> >
> org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:88)
> >         at
> >
> org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:76)
> >         at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:105)
> >         Truncated. see log file for complete stacktrace
> >  >
> >
> > any ideas?
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> ------------------------------------------------------------------------------
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Joda-interest mailing list
> > Joda-interest@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/joda-interest
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>



--
Murat HAZER
http://www.projedunyasi.org

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

_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: weblogic, hibernate and joda

Murat HAZER
you have 2 solutions.

first one; replace joda library that comes with weblogic with the new one [if you search installation directory you can find the old one].

second one; add the new joda library to server start path by using weblogic administration console.

regards ...

On Mon, Aug 10, 2009 at 7:42 AM, vipul <[hidden email]> wrote:

Has this issue been resolved? Please tell me the solution for the same.....


Murat HAZER wrote:
>
> sorry bothering with this, i couldn't think weblogic comes with joda
> bundled
> .... thx anyway ...
>
> On Thu, Jan 1, 2009 at 12:33 PM, Stephen Colebourne
> <[hidden email]>wrote:
>
>> Realistically, there must be a classpath problem, such as two joda-time
>> jar files.
>>
>> Stephen
>>
>>
>> Murat HAZER wrote:
>> > i'm using joda+hibernate with tomcat, jetty, jboss without any problem
>> > but when i try to run same project on weblogic 10.3 i get the following
>> > error;
>> >
>> > java.lang.reflect.InvocationTargetException
>> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >         at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >         at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> >         at java.lang.reflect.Method.invoke(Method.java:597)
>> >         at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
>> >         Truncated. see log file for complete stacktrace
>> > java.lang.NoSuchMethodError: localDateParser
>> >         at org.joda.time.LocalDate.<init>(LocalDate.java:318)
>> >         at org.joda.time.LocalDate.<init>(LocalDate.java:266)
>> >         at
>> >
>> org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:88)
>> >         at
>> >
>> org.joda.time.contrib.hibernate.PersistentLocalDate.nullSafeGet(PersistentLocalDate.java:76)
>> >         at
>> org.hibernate.type.CustomType.nullSafeGet(CustomType.java:105)
>> >         Truncated. see log file for complete stacktrace
>> >  >
>> >
>> > any ideas?
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> >
>> ------------------------------------------------------------------------------
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Joda-interest mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/joda-interest
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Joda-interest mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/joda-interest
>>
>
>
>
> --
> Murat HAZER
> http://www.projedunyasi.org
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Joda-interest mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>
>

--
View this message in context: http://n2.nabble.com/weblogic%2C-hibernate-and-joda-tp2095563p3415381.html
Sent from the Joda-Interest mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Joda-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/joda-interest



--
Murat HAZER
http://www.projedunyasi.org

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Joda-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/joda-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: weblogic, hibernate and joda

nievi
In reply to this post by vipul
The best way to make sure that WebLogic is using the Joda library you are providing is to add it to the prefer-application-packages node of the file weblogic-application.xml.

For example:
<?xml version="1.0"?>
<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <prefer-application-packages>
    <package-name>org.joda.time.*</package-name>
  </prefer-application-packages>

</weblogic-application>
Loading...