You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sachin <sa...@gmail.com> on 2007/06/14 17:58:16 UTC

Help me

Help me on the below error

[6/14/07 9:48:11:304 EDT] 152c2ad5 WebGroup E SRVE0026E: [Servlet
Error]-[com/opensymphony/oscache/base/NeedsRefreshException]:
java.lang.NoClassDefFoundError:
com/opensymphony/oscache/base/NeedsRefreshException at
java.lang.Class.forName1(Native Method) at java.lang.Class.forName(
Class.java(Compiled Code)) at
gov.ohio.jfs.oakscapis.persistence.DBAccessManager.getInstance(
DBAccessManager.java:43) at
gov.ohio.jfs.oakscapisweb.actions.CoaCasAction.execute(CoaCasAction.java:90)
at org.apache.struts.action.RequestProcessor.processActionPerform(
RequestProcessor.java:419) at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
...........................................
...........................................
...........................................



Code snippet:

    public static DBAccessManager getInstance() {
        return instance;
    }

    private final static  String _prefix = "xxx.xxx.xxx.xxxxxxx.persistence
.";

    public static DBAccess getInstance(String dataType)        throws
    IllegalAccessException,
    InstantiationException,
    ClassNotFoundException{
        String className = _prefix + dataType+"Access";
        Class cls = Class.forName(className);
        return (DBAccess) cls.newInstance();

    }
-- 
Satheesh.c

Re: Help me

Posted by Sachin <sa...@gmail.com>.
sorry that is typo error...

lib is fine.



On 6/14/07, Rainer Hermanns <he...@aixcept.de> wrote:
>
> Rename the folder from WEB-INF\Lib to WEB-INF\lib...
>
> > Sorry forgot to mention
> >
> > I have oscache-2.1.1.jar inside WEB-INF\Lib which is working fine in
> > windows
> > and failing in unix.
> > I extracted the jar in from my unix server and it contains the jar which
> > fine and having the NeedsRefreshException class.
> >
> > I did check the case sense between windows and unix.
> >
> > any idea what could be the problem?
> >
> >
> > On 6/14/07, Musachy Barroso <mu...@gmail.com> wrote:
> >>
> >> Seems like you don't have oscache jar on your lib folder.
> >>
> >> musachy
> >>
> >> On 6/14/07, Sachin <sa...@gmail.com> wrote:
> >> >
> >> > Help me on the below error
> >> >
> >> > [6/14/07 9:48:11:304 EDT] 152c2ad5 WebGroup E SRVE0026E: [Servlet
> >> > Error]-[com/opensymphony/oscache/base/NeedsRefreshException]:
> >> > java.lang.NoClassDefFoundError:
> >> > com/opensymphony/oscache/base/NeedsRefreshException at
> >> > java.lang.Class.forName1(Native Method) at java.lang.Class.forName(
> >> > Class.java(Compiled Code)) at
> >> > gov.ohio.jfs.oakscapis.persistence.DBAccessManager.getInstance(
> >> > DBAccessManager.java:43) at
> >> > gov.ohio.jfs.oakscapisweb.actions.CoaCasAction.execute(
> CoaCasAction.java
> >> > :90)
> >> > at org.apache.struts.action.RequestProcessor.processActionPerform(
> >> > RequestProcessor.java:419) at
> >> > org.apache.struts.action.RequestProcessor.process(
> RequestProcessor.java
> >> > :224)
> >> > at org.apache.struts.action.ActionServlet.process(ActionServlet.java
> >> :1194)
> >> > at
> >> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> >> at
> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >> > ...........................................
> >> > ...........................................
> >> > ...........................................
> >> >
> >> >
> >> >
> >> > Code snippet:
> >> >
> >> >     public static DBAccessManager getInstance() {
> >> >         return instance;
> >> >     }
> >> >
> >> >     private final static  String _prefix = "
> >> > xxx.xxx.xxx.xxxxxxx.persistence
> >> > .";
> >> >
> >> >     public static DBAccess getInstance(String dataType)        throws
> >> >     IllegalAccessException,
> >> >     InstantiationException,
> >> >     ClassNotFoundException{
> >> >         String className = _prefix + dataType+"Access";
> >> >         Class cls = Class.forName(className);
> >> >         return (DBAccess) cls.newInstance();
> >> >
> >> >     }
> >> > --
> >> > Satheesh.c
> >> >
> >>
> >>
> >>
> >> --
> >> "Hey you! Would you help me to carry the stone?" Pink Floyd
> >>
> >
> >
> >
> > --
> > Satheesh.c
> >
>
>
> --
> Rainer Hermanns
> aixcept
> Neupforte 16
> 52062 Aachen - Germany
> w: http://aixcept.de/
> t:    +49-241-4012247
> m:  +49-170-3432912
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Satheesh.c

Re: Help me

Posted by Rainer Hermanns <he...@aixcept.de>.
Rename the folder from WEB-INF\Lib to WEB-INF\lib...

> Sorry forgot to mention
>
> I have oscache-2.1.1.jar inside WEB-INF\Lib which is working fine in
> windows
> and failing in unix.
> I extracted the jar in from my unix server and it contains the jar which
> fine and having the NeedsRefreshException class.
>
> I did check the case sense between windows and unix.
>
> any idea what could be the problem?
>
>
> On 6/14/07, Musachy Barroso <mu...@gmail.com> wrote:
>>
>> Seems like you don't have oscache jar on your lib folder.
>>
>> musachy
>>
>> On 6/14/07, Sachin <sa...@gmail.com> wrote:
>> >
>> > Help me on the below error
>> >
>> > [6/14/07 9:48:11:304 EDT] 152c2ad5 WebGroup E SRVE0026E: [Servlet
>> > Error]-[com/opensymphony/oscache/base/NeedsRefreshException]:
>> > java.lang.NoClassDefFoundError:
>> > com/opensymphony/oscache/base/NeedsRefreshException at
>> > java.lang.Class.forName1(Native Method) at java.lang.Class.forName(
>> > Class.java(Compiled Code)) at
>> > gov.ohio.jfs.oakscapis.persistence.DBAccessManager.getInstance(
>> > DBAccessManager.java:43) at
>> > gov.ohio.jfs.oakscapisweb.actions.CoaCasAction.execute(CoaCasAction.java
>> > :90)
>> > at org.apache.struts.action.RequestProcessor.processActionPerform(
>> > RequestProcessor.java:419) at
>> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
>> > :224)
>> > at org.apache.struts.action.ActionServlet.process(ActionServlet.java
>> :1194)
>> > at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>> at
>> > javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>> > ...........................................
>> > ...........................................
>> > ...........................................
>> >
>> >
>> >
>> > Code snippet:
>> >
>> >     public static DBAccessManager getInstance() {
>> >         return instance;
>> >     }
>> >
>> >     private final static  String _prefix = "
>> > xxx.xxx.xxx.xxxxxxx.persistence
>> > .";
>> >
>> >     public static DBAccess getInstance(String dataType)        throws
>> >     IllegalAccessException,
>> >     InstantiationException,
>> >     ClassNotFoundException{
>> >         String className = _prefix + dataType+"Access";
>> >         Class cls = Class.forName(className);
>> >         return (DBAccess) cls.newInstance();
>> >
>> >     }
>> > --
>> > Satheesh.c
>> >
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>
>
>
> --
> Satheesh.c
>


-- 
Rainer Hermanns
aixcept
Neupforte 16
52062 Aachen - Germany
w: http://aixcept.de/
t:    +49-241-4012247
m:  +49-170-3432912

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


Re: Help me

Posted by md...@tathya.com.
the WEB-INF should be in capital letters to run a web application in linux. actually i have faced the same problem . windows in not case sensetive but linux ,it is only for WEB-INF,. Your can mention lib, classes or other folders names in lower case
best of luck


Re: Help me

Posted by Sachin <sa...@gmail.com>.
Sorry forgot to mention

I have oscache-2.1.1.jar inside WEB-INF\Lib which is working fine in windows
and failing in unix.
I extracted the jar in from my unix server and it contains the jar which
fine and having the NeedsRefreshException class.

I did check the case sense between windows and unix.

any idea what could be the problem?


On 6/14/07, Musachy Barroso <mu...@gmail.com> wrote:
>
> Seems like you don't have oscache jar on your lib folder.
>
> musachy
>
> On 6/14/07, Sachin <sa...@gmail.com> wrote:
> >
> > Help me on the below error
> >
> > [6/14/07 9:48:11:304 EDT] 152c2ad5 WebGroup E SRVE0026E: [Servlet
> > Error]-[com/opensymphony/oscache/base/NeedsRefreshException]:
> > java.lang.NoClassDefFoundError:
> > com/opensymphony/oscache/base/NeedsRefreshException at
> > java.lang.Class.forName1(Native Method) at java.lang.Class.forName(
> > Class.java(Compiled Code)) at
> > gov.ohio.jfs.oakscapis.persistence.DBAccessManager.getInstance(
> > DBAccessManager.java:43) at
> > gov.ohio.jfs.oakscapisweb.actions.CoaCasAction.execute(CoaCasAction.java
> > :90)
> > at org.apache.struts.action.RequestProcessor.processActionPerform(
> > RequestProcessor.java:419) at
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
> > :224)
> > at org.apache.struts.action.ActionServlet.process(ActionServlet.java
> :1194)
> > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > ...........................................
> > ...........................................
> > ...........................................
> >
> >
> >
> > Code snippet:
> >
> >     public static DBAccessManager getInstance() {
> >         return instance;
> >     }
> >
> >     private final static  String _prefix = "
> > xxx.xxx.xxx.xxxxxxx.persistence
> > .";
> >
> >     public static DBAccess getInstance(String dataType)        throws
> >     IllegalAccessException,
> >     InstantiationException,
> >     ClassNotFoundException{
> >         String className = _prefix + dataType+"Access";
> >         Class cls = Class.forName(className);
> >         return (DBAccess) cls.newInstance();
> >
> >     }
> > --
> > Satheesh.c
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>



-- 
Satheesh.c

Re: Help me

Posted by Musachy Barroso <mu...@gmail.com>.
Seems like you don't have oscache jar on your lib folder.

musachy

On 6/14/07, Sachin <sa...@gmail.com> wrote:
>
> Help me on the below error
>
> [6/14/07 9:48:11:304 EDT] 152c2ad5 WebGroup E SRVE0026E: [Servlet
> Error]-[com/opensymphony/oscache/base/NeedsRefreshException]:
> java.lang.NoClassDefFoundError:
> com/opensymphony/oscache/base/NeedsRefreshException at
> java.lang.Class.forName1(Native Method) at java.lang.Class.forName(
> Class.java(Compiled Code)) at
> gov.ohio.jfs.oakscapis.persistence.DBAccessManager.getInstance(
> DBAccessManager.java:43) at
> gov.ohio.jfs.oakscapisweb.actions.CoaCasAction.execute(CoaCasAction.java
> :90)
> at org.apache.struts.action.RequestProcessor.processActionPerform(
> RequestProcessor.java:419) at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
> :224)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> ...........................................
> ...........................................
> ...........................................
>
>
>
> Code snippet:
>
>     public static DBAccessManager getInstance() {
>         return instance;
>     }
>
>     private final static  String _prefix = "
> xxx.xxx.xxx.xxxxxxx.persistence
> .";
>
>     public static DBAccess getInstance(String dataType)        throws
>     IllegalAccessException,
>     InstantiationException,
>     ClassNotFoundException{
>         String className = _prefix + dataType+"Access";
>         Class cls = Class.forName(className);
>         return (DBAccess) cls.newInstance();
>
>     }
> --
> Satheesh.c
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd