• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Problem with webapplication during deploying

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have html forms,jsp,servlet in my application .When I am trying to run them in tomcat they are running well.But after creating war file of the application and when trying to configure and deploy in weblogic7.0 app server it is giving following error saying that web.xml is missing

weblogic.management.ApplicationException: Missing deployment descriptor "WEB-INF/web.xml" at "C:\bea\user_projects\mydomain\Firstapp.war"

at <Error> <Deployer> <149027> <Unable to activat
ce, C:\bea\user_projects\mydomain\Firstapp.war
iptor "WEB-INF/web.xml" at "C:\bea\user_projec



My directory structure is
Firstapp
.jsp files
.html files
WEB-INF
web.xml
weblogic.xml
lib
src
classes
.class files of java are there in classes folder

and web.xml file is
_________________________
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>



<servlet>
<servlet-name>BonusCalculationServlet</servlet-name>
<servlet-class>BonusCalculationServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>BonusCalculationServlet</servlet-name>
<url-pattern>/Firstapp/src/BonusCalculationServlet</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/HelloWorld</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
</welcome-file-list>

</web-app>

___________________________
weblogic.xml
_____________
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA
Systems, Inc.//DTD Web Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">

<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>
pageCheckSeconds
</param-name>
<param-value>
1
</param-value>
</jsp-param>
<jsp-param>
<param-name>
verbose
</param-name>
<param-value>
true
</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>

____________


Thanks,

Sai
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Weblogic forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic