Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while configuring weblogic8.1 with struts1.1

 
Ranjith Koppu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying my first struts application using weblogic8.1 server.I used Weblogic workshop and the application worked fine.But now I tried to use Eclipse3.2 as the IDE and weblogic8.1 as the server.
First it threw warnings regarding the struts*.tld files displaying
"java.sun.com"is not reachable .The same was the case with "www.bea.com".
I resolved these warning s but getting the tld files and placed it in the WEB-INF directory of my application.I added all the required jars struts.jar,commons-beanutils.jar...as external jars to the application.But when I start the server I get an exception
<Servlet: "action" failed to preload on startup in Web application: "StrutsProject".
javax.servlet.ServletException: org/apache/commons/logging/LogFactory
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:990)...
and after that when I access the page using the url
http://localhost:7001/StrutsProject/login.do (I mapped "/login" in struts-config.xml) then I get an exception
<Error while using app descriptor files
java.io.FileNotFoundException: C:\bea\weblogic81\samples\domains\workshop\cgServer\stage\_appsdir_StrutsProject_war missing application.xml and/or weblogic-application.xml descriptors and

java.lang.NoClassDefFoundError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27

on the webpage itself..
Can you please help me in resolving the problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic