Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Struts and VAJ3.5.3

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to get my head around struts (not made easier by lack of Java experience) using VisualAge for Java 3.5.3. I have been to the IBM website and can get the example program working. However, when I try to create my own application I am running into errors. I have to use a framework that wraps the Struts architecture and am not too sure about setting up web.xml (or web.webapp in VAJ) for the action servlet. I have changed the description and codel lines to reflect the new class, but when I try to start the Websphere Test Environment it falls over with the following:
------------------------------
[02.01.10 16:09:23:828 GMT] 177 WebGroup A SRVE0091I: [Servlet LOG]: "action: null"
[02.01.10 16:09:23:921 GMT] 177 WebGroup A SRVE0091I: [Servlet LOG]: "action: null"
[02.01.10 16:09:23:953 GMT] 177 ServletInstan X Uncaught init() exception thrown by servlet {0}: {1}
"action"
javax.servlet.UnavailableException
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
javax.servlet.UnavailableException(java.lang.String)
void org.apache.struts.action.ActionServlet.initMapping()
void com.jpm.is.im.mvc.ImBaseServlet.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictServletInstance.doInit()
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet.ServletConfig)
---------------------------
If anyone can shed even the slightest glimmer of hope, I would be eternally grateful.
Many thanks
Mark
 
Marshal
Posts: 15565
263
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Mark Gowdy:
Hi
I have to use a framework that wraps the Struts architecture and am not too sure about setting up web.xml (or web.webapp in VAJ) for the action servlet. I have changed the description and codel lines to reflect the new class, but when I try to start the Websphere Test Environment...


Hi Mark,
Let's see if we can't muddle our way through this
So, you've got the example Struts app going. Now you want to run your own app. The three important configuration XML files are:
($WTE)/properties/default.servlet_engine
($yourApp)/struts-config.xml
($yourApp)/WEB-INF/web.xml
Which of these did you change and what changes did you make?
Also, you say that you changed the description and code lines to reflect "the new class". Could you be more specific? What class is this? Normally, you wouldn't create a new ActionServlet subclass for your application. The only classes you really need to create are ActionForm and Action subclasses.
Let's hope Kyle Brown drops by, I'm sure he would have better insight.
Junilu
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic