Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
Yahooo -- fixed the problem.

Compared web.xml in crud and helloworld app.

In helloword app the configuration is

struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


If I change it to

struts

org.apache.struts2.dispatcher.FilterDispatcher


as in crud app every thing works wonderful. At this point i do not know the
reason of why it is not working with original configuration. Hopefully
somebody can shed some light.



On Fri, Jun 19, 2009 at 2:21 PM, jill juneja  wrote:

> example.xml is in its place. I have not touched it.
>
> I agree with you that when index.html is hit - it should execute
> "example/HelloWorld.xml" but I dont think it is finding index.html.
>
> Filter is not intercepting the correct way.
>
> My crud example worked just now. I am going to look and compare the config
> files and let you know.
>
> What details do you need? I can attach some xml file and the jsp. But it is
> exactly same as in war file.
> I am using JDeveloper 10.1.3. and pointed it to jre1.5
>
> Thanks for all the help Girish.
>
> On Fri, Jun 19, 2009 at 2:15 PM, Girish Naik wrote:
>
>> I am not getting the source of the error, but have few debugging
>> questions:
>>
>> Have you copied the example.xml contents into the struts.xml file?
>> And you have removed or deleted the contents of that (example.xml) file.
>>
>> when you hit  '/index' the default action gets called 'index' and when you
>> hit 'index.html' then the file gets invoked and tries to redirect to
>> 'example/HelloWorld.action' (if you have not changed this) and get an
>> error.
>>
>> Else .. I am unable to proceed with out further details of app. :|
>>
>>
>>
>> Regards,
>> -
>> Girish Naik
>> Mobile:-+91-09740091638
>> girish.n...@gmail.com
>> Fran Lebowitz<
>> http://www.brainyquote.com/quotes/authors/f/fran_lebowitz.html>
>> - "Life is something to do when you can't get to sleep."
>>
>> On Fri, Jun 19, 2009 at 10:56 PM, jill juneja 
>> wrote:
>>
>> > struts2-blank-2.1.6
>> >
>>
>
>


Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
example.xml is in its place. I have not touched it.

I agree with you that when index.html is hit - it should execute
"example/HelloWorld.xml" but I dont think it is finding index.html.

Filter is not intercepting the correct way.

My crud example worked just now. I am going to look and compare the config
files and let you know.

What details do you need? I can attach some xml file and the jsp. But it is
exactly same as in war file.
I am using JDeveloper 10.1.3. and pointed it to jre1.5

Thanks for all the help Girish.

On Fri, Jun 19, 2009 at 2:15 PM, Girish Naik  wrote:

> I am not getting the source of the error, but have few debugging questions:
>
> Have you copied the example.xml contents into the struts.xml file?
> And you have removed or deleted the contents of that (example.xml) file.
>
> when you hit  '/index' the default action gets called 'index' and when you
> hit 'index.html' then the file gets invoked and tries to redirect to
> 'example/HelloWorld.action' (if you have not changed this) and get an
> error.
>
> Else .. I am unable to proceed with out further details of app. :|
>
>
>
> Regards,
> -
> Girish Naik
> Mobile:-+91-09740091638
> girish.n...@gmail.com
> Fran Lebowitz<
> http://www.brainyquote.com/quotes/authors/f/fran_lebowitz.html>
> - "Life is something to do when you can't get to sleep."
>
> On Fri, Jun 19, 2009 at 10:56 PM, jill juneja 
> wrote:
>
> > struts2-blank-2.1.6
> >
>


Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
Crud application worked with CSS.  I am gonig to look into the differences
and see what is the missing thing in the two apps and keep you all posted.

Thanks for all the help Girish.


On Fri, Jun 19, 2009 at 1:26 PM, jill juneja  wrote:

> yes.
>
> I am using struts2-blank-2.1.6
> I just added few css.
>
> Struts2-blank has welcome page, login page (uses validation), hello world
> page. all the links work.
>
> I think my problem is with FilterDispatcher  not recognizing static files.
> Currently .jsp and and file with no extensiin like struts2/Welcome works.
> Struts2 is my root container.
>
> But if i do struts2/index.html that also gives same error. But
> struts2/index works.
> Error is following
>
> 500 Internal Server Error
>
> java.lang.NullPointerException
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.EvermindHttpServletRequest.getParameters(EvermindHttpServletRequest.java:1471)
>
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.EvermindHttpServletRequest.getImmutableParameters(EvermindHttpServletRequest.java:1565)
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.EvermindHttpServletRequest.getParameterMap(EvermindHttpServletRequest.java:1571)
>
>   at 
> org.apache.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:507)
>   at 
> org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:75)
>   at 
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:65)
>
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.FileRequestDispatcher.handleWithFilter(FileRequestDispatcher.java:137)
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.FileRequestDispatcher.unprivileged_forwardInternal(FileRequestDispatcher.java:283)
>
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.FileRequestDispatcher.access$100(FileRequestDispatcher.java:30)
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.FileRequestDispatcher$2.oc4jRun(FileRequestDispatcher.java:254)
>
>   at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.FileRequestDispatcher.forwardInternal(FileRequestDispatcher.java:259)
>
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:867)
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
>
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
>
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
>   at 
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>
>   at 
> oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
>   at 
> oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
>   at 
> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
>
>   at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
>   at java.lang.Thread.run(Thread.java:595)
>
>
>
>
>
>
> On Fri, Jun 19, 2009 at 12:46 PM, Girish Naik wrote:
>
>> Is CSS applied to pages where there no parameters in the URL of the app?
>>
>> Regards,
>> -
>> Girish Naik
>> Mobile:-+91-09740091638
>> girish.n...@gmail.com
>> Rodney Dangerfield<
>> http://www.brainyquote.com/quotes/authors/r/rodney_dangerfield.html>
>> - "What a dog I got, his favorite bone is in my arm."
>>
>> On Fri, Jun 19, 2009 at 9:50 PM, jill juneja 
>> wrote:
>>
>> > app is working fine. Even if css s:url is there.  Css just does not get
>> > applied to the pages.
>> >
>> > I am only seeing the error thru firefox web development tool by viewing
>> > css.
>> >
>> > I know it is weird. I have tried every combination. I tried doing
>> relative
>> > path too. Same error.
>> > It looks to be it has something to do with filters.
>> >
>> >
>> >
>> > On Fri, Jun 19, 2009 at 10:57 AM, Girish Naik 
>> > wrote:
>> >
>> > > Is this error comming on app start?
>> > > Are u sure that this error is due to css? Is your app working when
>> there
>> > is
>> > > no css? If Yes then can u

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread Girish Naik
I am not getting the source of the error, but have few debugging questions:

Have you copied the example.xml contents into the struts.xml file?
And you have removed or deleted the contents of that (example.xml) file.

when you hit  '/index' the default action gets called 'index' and when you
hit 'index.html' then the file gets invoked and tries to redirect to
'example/HelloWorld.action' (if you have not changed this) and get an error.

Else .. I am unable to proceed with out further details of app. :|



Regards,
-
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
Fran Lebowitz
- "Life is something to do when you can't get to sleep."

On Fri, Jun 19, 2009 at 10:56 PM, jill juneja  wrote:

> struts2-blank-2.1.6
>


Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
yes.

I am using struts2-blank-2.1.6
I just added few css.

Struts2-blank has welcome page, login page (uses validation), hello world
page. all the links work.

I think my problem is with FilterDispatcher  not recognizing static files.
Currently .jsp and and file with no extensiin like struts2/Welcome works.
Struts2 is my root container.

But if i do struts2/index.html that also gives same error. But struts2/index
works.
Error is following

500 Internal Server Error500 Internal Server Error

java.lang.NullPointerException
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.EvermindHttpServletRequest.getParameters(EvermindHttpServletRequest.java:1471)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.EvermindHttpServletRequest.getImmutableParameters(EvermindHttpServletRequest.java:1565)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.EvermindHttpServletRequest.getParameterMap(EvermindHttpServletRequest.java:1571)
at 
org.apache.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:507)
at 
org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:75)
at 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:65)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher.handleWithFilter(FileRequestDispatcher.java:137)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher.unprivileged_forwardInternal(FileRequestDispatcher.java:283)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher.access$100(FileRequestDispatcher.java:30)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher$2.oc4jRun(FileRequestDispatcher.java:254)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher.forwardInternal(FileRequestDispatcher.java:259)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:867)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at 
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at 
oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at 
oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at 
oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)






On Fri, Jun 19, 2009 at 12:46 PM, Girish Naik  wrote:

> Is CSS applied to pages where there no parameters in the URL of the app?
>
> Regards,
> -
> Girish Naik
> Mobile:-+91-09740091638
> girish.n...@gmail.com
> Rodney Dangerfield<
> http://www.brainyquote.com/quotes/authors/r/rodney_dangerfield.html>
> - "What a dog I got, his favorite bone is in my arm."
>
> On Fri, Jun 19, 2009 at 9:50 PM, jill juneja  wrote:
>
> > app is working fine. Even if css s:url is there.  Css just does not get
> > applied to the pages.
> >
> > I am only seeing the error thru firefox web development tool by viewing
> > css.
> >
> > I know it is weird. I have tried every combination. I tried doing
> relative
> > path too. Same error.
> > It looks to be it has something to do with filters.
> >
> >
> >
> > On Fri, Jun 19, 2009 at 10:57 AM, Girish Naik 
> > wrote:
> >
> > > Is this error comming on app start?
> > > Are u sure that this error is due to css? Is your app working when
> there
> > is
> > > no css? If Yes then can u use relative path for calling css instead of
> > > s:url
> > >
> > >
> > >
> > > Regards,
> > > -
> > > Girish Naik
> > > Mobile:-+91-09740091638
> > > girish.n...@gmail.com
> > > George Carlin<
> > > http://www.brainyquote.com/quotes/authors/g/george_carlin.html>
> > > - "Electricity is really just organized

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread Girish Naik
Is CSS applied to pages where there no parameters in the URL of the app?

Regards,
-
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
Rodney 
Dangerfield
- "What a dog I got, his favorite bone is in my arm."

On Fri, Jun 19, 2009 at 9:50 PM, jill juneja  wrote:

> app is working fine. Even if css s:url is there.  Css just does not get
> applied to the pages.
>
> I am only seeing the error thru firefox web development tool by viewing
> css.
>
> I know it is weird. I have tried every combination. I tried doing relative
> path too. Same error.
> It looks to be it has something to do with filters.
>
>
>
> On Fri, Jun 19, 2009 at 10:57 AM, Girish Naik 
> wrote:
>
> > Is this error comming on app start?
> > Are u sure that this error is due to css? Is your app working when there
> is
> > no css? If Yes then can u use relative path for calling css instead of
> > s:url
> >
> >
> >
> > Regards,
> > -
> > Girish Naik
> > Mobile:-+91-09740091638
> > girish.n...@gmail.com
> > George Carlin<
> > http://www.brainyquote.com/quotes/authors/g/george_carlin.html>
> > - "Electricity is really just organized lightning."
> >
> > On Fri, Jun 19, 2009 at 7:30 PM, jill juneja 
> wrote:
> >
> > > All,
> > >
> > > I am new to struts2. Downloaded and manually configured the helloworld
> > war
> > > in JDeveloper. Every thing work fines in the app. I am getting hello
> > world
> > > message. Login page, validations using validator.
> > >
> > > Only thing not work in the app is css file. Its in the root directory
> > under
> > > css folder. Any help is very much appreciated.  Below is error
> exception
> > in
> > > firefox view css tab.
> > >
> > > 500 Internal Server Error
> > > java.lang.NullPointerExceptionat com.evermind[Oracle Containers for
> > > J2EE
> > > 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.EvermindHttpServletRequest.getParameters(EvermindHttpServletRequest.java:1471)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.EvermindHttpServletRequest.getImmutableParameters(EvermindHttpServletRequest.java:1565)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.EvermindHttpServletRequest.getParameterMap(EvermindHttpServletRequest.java:1571)
> > > at
> > >
> > >
> >
> org.apache.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:507)
> > > at
> > >
> > >
> >
> org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:75)
> > > at
> > >
> > >
> >
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:65)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher.handleWithFilter(FileRequestDispatcher.java:137)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher.unprivileged_forwardInternal(FileRequestDispatcher.java:283)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher.access$100(FileRequestDispatcher.java:30)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher$2.oc4jRun(FileRequestDispatcher.java:254)
> > > at
> oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.FileRequestDispatcher.forwardInternal(FileRequestDispatcher.java:259)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:867)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)at
> > > com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)at
> > >
> > >
> >
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
> > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > >
> > >
> >
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
> > > at java.lang.Thread.run(Thread.java:595)
> > >
> > >
> > > Include in jsp is
> > > 
> > >Sign On
> > >" rel="stylesheet"
> > > type="text/css"/>
> > > 
> > >
> > >
> > >

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
app is working fine. Even if css s:url is there.  Css just does not get
applied to the pages.

I am only seeing the error thru firefox web development tool by viewing css.

I know it is weird. I have tried every combination. I tried doing relative
path too. Same error.
It looks to be it has something to do with filters.



On Fri, Jun 19, 2009 at 10:57 AM, Girish Naik  wrote:

> Is this error comming on app start?
> Are u sure that this error is due to css? Is your app working when there is
> no css? If Yes then can u use relative path for calling css instead of
> s:url
>
>
>
> Regards,
> -
> Girish Naik
> Mobile:-+91-09740091638
> girish.n...@gmail.com
> George Carlin<
> http://www.brainyquote.com/quotes/authors/g/george_carlin.html>
> - "Electricity is really just organized lightning."
>
> On Fri, Jun 19, 2009 at 7:30 PM, jill juneja  wrote:
>
> > All,
> >
> > I am new to struts2. Downloaded and manually configured the helloworld
> war
> > in JDeveloper. Every thing work fines in the app. I am getting hello
> world
> > message. Login page, validations using validator.
> >
> > Only thing not work in the app is css file. Its in the root directory
> under
> > css folder. Any help is very much appreciated.  Below is error exception
> in
> > firefox view css tab.
> >
> > 500 Internal Server Error
> > java.lang.NullPointerExceptionat com.evermind[Oracle Containers for
> > J2EE
> > 10g (10.1.3.0.0)
> >
> >
> ].server.http.EvermindHttpServletRequest.getParameters(EvermindHttpServletRequest.java:1471)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.EvermindHttpServletRequest.getImmutableParameters(EvermindHttpServletRequest.java:1565)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.EvermindHttpServletRequest.getParameterMap(EvermindHttpServletRequest.java:1571)
> > at
> >
> >
> org.apache.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:507)
> > at
> >
> >
> org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:75)
> > at
> >
> >
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:65)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.FileRequestDispatcher.handleWithFilter(FileRequestDispatcher.java:137)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.FileRequestDispatcher.unprivileged_forwardInternal(FileRequestDispatcher.java:283)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.FileRequestDispatcher.access$100(FileRequestDispatcher.java:30)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.FileRequestDispatcher$2.oc4jRun(FileRequestDispatcher.java:254)
> > at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.FileRequestDispatcher.forwardInternal(FileRequestDispatcher.java:259)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:867)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)at
> > com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)at
> >
> >
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> >
> >
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
> > at java.lang.Thread.run(Thread.java:595)
> >
> >
> > Include in jsp is
> > 
> >Sign On
> >" rel="stylesheet"
> > type="text/css"/>
> > 
> >
> >
> >
> > web.xml is
> >
> > 
> > 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/web-app_2_4.xsd";>
> >
> >Struts Blank
> >
> >
> >struts2
> >
> >
> >
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
> >
> >
> >
> >struts2
> >/*
> >
> >
> >
> >index.html
> >
> >
> > 
> >
> >
> > struts.xml
> >
> > 
> >  >"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> >"http://struts.apache.org/dtds/struts-2.0.dtd";>
> >
> > 
> >
> > />
> >
> >
> >
>

Re: Struts2 - CSS problem - Hello World

2009-06-19 Thread Girish Naik
Is this error comming on app start?
Are u sure that this error is due to css? Is your app working when there is
no css? If Yes then can u use relative path for calling css instead of s:url



Regards,
-
Girish Naik
Mobile:-+91-09740091638
girish.n...@gmail.com
George Carlin
- "Electricity is really just organized lightning."

On Fri, Jun 19, 2009 at 7:30 PM, jill juneja  wrote:

> All,
>
> I am new to struts2. Downloaded and manually configured the helloworld war
> in JDeveloper. Every thing work fines in the app. I am getting hello world
> message. Login page, validations using validator.
>
> Only thing not work in the app is css file. Its in the root directory under
> css folder. Any help is very much appreciated.  Below is error exception in
> firefox view css tab.
>
> 500 Internal Server Error
> java.lang.NullPointerExceptionat com.evermind[Oracle Containers for
> J2EE
> 10g (10.1.3.0.0)
>
> ].server.http.EvermindHttpServletRequest.getParameters(EvermindHttpServletRequest.java:1471)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.EvermindHttpServletRequest.getImmutableParameters(EvermindHttpServletRequest.java:1565)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.EvermindHttpServletRequest.getParameterMap(EvermindHttpServletRequest.java:1571)
> at
>
> org.apache.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:507)
> at
>
> org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:75)
> at
>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:65)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.FileRequestDispatcher.handleWithFilter(FileRequestDispatcher.java:137)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.FileRequestDispatcher.unprivileged_forwardInternal(FileRequestDispatcher.java:283)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.FileRequestDispatcher.access$100(FileRequestDispatcher.java:30)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.FileRequestDispatcher$2.oc4jRun(FileRequestDispatcher.java:254)
> at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.FileRequestDispatcher.forwardInternal(FileRequestDispatcher.java:259)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:867)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)at
> com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)at
>
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
> at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
>
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
> at java.lang.Thread.run(Thread.java:595)
>
>
> Include in jsp is
> 
>Sign On
>" rel="stylesheet"
> type="text/css"/>
> 
>
>
>
> web.xml is
>
> 
> 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/web-app_2_4.xsd";>
>
>Struts Blank
>
>
>struts2
>
>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>
>
>
>struts2
>/*
>
>
>
>index.html
>
>
> 
>
>
> struts.xml
>
> 
> "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
>"http://struts.apache.org/dtds/struts-2.0.dtd";>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>HelloWorld
>/example
>
>
>
>
>/example/HelloWorld.jsp
>
>
>
>/example/Login.jsp
>Menu
>
>
>
>/example/{1}.jsp
>
>
>
>
>
> 
>


Struts2 - CSS problem - Hello World

2009-06-19 Thread jill juneja
All,

I am new to struts2. Downloaded and manually configured the helloworld war
in JDeveloper. Every thing work fines in the app. I am getting hello world
message. Login page, validations using validator.

Only thing not work in the app is css file. Its in the root directory under
css folder. Any help is very much appreciated.  Below is error exception in
firefox view css tab.

500 Internal Server Error
java.lang.NullPointerExceptionat com.evermind[Oracle Containers for J2EE
10g (10.1.3.0.0)
].server.http.EvermindHttpServletRequest.getParameters(EvermindHttpServletRequest.java:1471)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.EvermindHttpServletRequest.getImmutableParameters(EvermindHttpServletRequest.java:1565)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.EvermindHttpServletRequest.getParameterMap(EvermindHttpServletRequest.java:1571)
at
org.apache.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:507)
at
org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:75)
at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:65)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher.handleWithFilter(FileRequestDispatcher.java:137)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher.unprivileged_forwardInternal(FileRequestDispatcher.java:283)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher.access$100(FileRequestDispatcher.java:30)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher$2.oc4jRun(FileRequestDispatcher.java:254)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.FileRequestDispatcher.forwardInternal(FileRequestDispatcher.java:259)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:867)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)at
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)


Include in jsp is

Sign On
" rel="stylesheet"
type="text/css"/>




web.xml is


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/web-app_2_4.xsd";>

Struts Blank


struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter



struts2
/*



index.html





struts.xml


http://struts.apache.org/dtds/struts-2.0.dtd";>














HelloWorld
/example




/example/HelloWorld.jsp



/example/Login.jsp
Menu



/example/{1}.jsp