Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts-ejb integration  RSS feed

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying struts-ejb application using weblogic8.1. The example is givcen on http://www.roseindia.net/struts/Struts-integration-with-ejb-2.shtml

I get following error in my console
Q1) I am not getting final output? Action class is not forwarding the request to kalaOutput.jsp


I get following error












Struts-config.xml
-----------------




Ation class kalaAction
 
Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think its problem of not getting jsp file on its path expected/specified.
can you post your directory structure here(of jsp's).

Cheers,
Pras
 
Sumit Malik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amolpalekar,

As parshant has pointed out that webserver is unable to parse jsp file when you are requesting it. Did you place your jsp files outside WEB-INF folder ???

You are trying to get resource(jsp file) on the context root so you must ensure that it is placed in the context root....

Cheers !!!
Sumit Malik
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Thnanks for you solution. I am posting my directory structure
D:\kala

kala
-- kalaOutput.jsp
---index.jsp
---kalaSubmit.jsp
---success.jsp
.WEB-INF
-- all tlds and xml files
.classes
-- java classes
.META-INF
 
Sumit Malik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Amolpalekar,


Here your directory structure is pretty ok and as per recommendation......
Well, after going through the log of you class i've come across with point...

Here is what your log file says :

<Jan 17, 2007 10:03:10 AM GMT+05:30> <Warning> <HTTP Session> <BEA-100061> <Web
application: ServletContext(id=16715083,name=kala,context-path=/kala) tried to p
lace a non-serializable attribute: result into the session: Ftm8GZmuff4SjF5YjboC
U13OImCa9VhZbN41C9qF2VK0jTI3zUdd!-1591434296!1169008380582. This attribute will
be lost upon redeployment. This message is logged only once per session.>



Well, if you clearly look on log then it says you are putting non-serializable object in session which is perfectly valid as per log...

Do kalaresult class implement serializable interface.... If not then it should because this instance will be transported thorugh different channel...

Try to make implement kalaresult serializable and i hope it will work....

Do let me know if i can assist you more ...

Cheers !!!
Sumit Malik
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your solution.
As per you told me i implemented Serializable interface
but still I GET ERROR. i can'view my Jsp page.
I am also adding my struts-config file and error desplayed in weblogic console






struts-config.xml





weblogic console error


 
Sumit Malik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey AmolPalekar your struts-config file isn't correct....

Let me suggest you where you are making mistake.....

As in your global-forward mapping you have specified

<forward name="welcome" path="/Welcome.do"/>

but in your action-mapping you haven't specified any action with Welcome mapping....

Do specify action mapping with Welcome name and then it will work as per you required needs....




Also if you take a look on above logs then it is clrealy specifying that your request is not getting fulfilled because you dont have /Welcome mapping in struts-config.

Please make specified changes and then i hope it will work..

Do let me know if i can assist you more.....

Cheers !!!
Sumit Malik
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your solution, jsp error is removed but there is error in weblogic8.1 console

tried to place a non-serializable attribute: result into the session:
I have implemented ActionForm by java.io.Serializable interfaces, but still it gives error.





[/B]


From Action Madras<br>Trichy<br>Madurai<br><Jan 18, 2007 10:24:25 AM GMT+05:30> <Warning> <HTTP Session> <BEA-100061> <Webapplication: ServletContext(id=4213679,name=kala,context-path=/kala) tried to place a non-serializable attribute: result into the session: Fu9jMwdA2Acy8GfRT9Ak9rafUXCy85W0CgZkXe5WL3irUw3C3PKg!429234906!1169096035725. This attribute will belost upon redeployment. This message is logged only once per session.>session ==demo.kalaresult@13f23a2
 
Sumit Malik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do the object you are storing against the key result is implementing Serializable interface... Do verify that KalaResult class implement Serializable interface....

If you are packaging your application in ear(or through jar or war) then first delete earlier ear's(or...) and redeploy them...

Just make sure KalaResult implement Serializable...


Hope this would help you...

Cheers !!!
Sumit Malik
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!