Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

web.xml syntax error?

Thread view: 
Tim Slattery - 02 Apr 2007 19:15 GMT
I'm trying to deploy a web app from an "exploded directory" in
Weblogic 9. The app worked just fine in Weblogic 8. I'm getting this
message:

[J2EE:160177]The application at
"D:\bea9\user_projects\domains\local-idcfD\servers\idcfD1\stage\Freqs\app"
was not recognized as a valid application type. If this is an EAR
file, please ensure the META-INF/application.xml exists. EJB-JARs
should have a META-INF/ejb-jar.xml. WAR files require a
WEB-INF/web.xml, and RARs require a META-INF/ra.xml. A JMS deployment
should be an XML file whose name ends with "-jms.xml". A JDBC
deployment should be an XML file whose name ends with "-jdbc.xml". For
other application types, please consult the WebLogic Server
documentation.

That seems to tell me that it doesn't think I have a web.xml file in
the WEB-INF directory, but I do. So maybe its a syntax issue. This is
a simple app and the web.xml is short. Here it is:

<!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>

 <display-name>Freqs</display-name>
 
 <servlet>
   <servlet-name>setup</servlet-name>
   <servlet-class>gov.bls.idcf.SetupServlet</servlet-class>
   <load-on-startup>1</load-on-startup>
 </servlet>
 
 <servlet>
   <servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
   <init-param>
     <param-name>config</param-name>
     <param-value>/WEB-INF/struts-config.xml</param-value>
   </init-param>
   <init-param>
     <param-name>debug</param-name>
     <param-value>2</param-value>
   </init-param>
   <init-param>
     <param-name>detail</param-name>
     <param-value>2</param-value>
   </init-param>
   <init-param>
     <param-name>validate</param-name>
     <param-value>true</param-value>
   </init-param>
   <load-on-startup>1</load-on-startup>
 </servlet>

 <servlet-mapping>
   <servlet-name>action</servlet-name>
   <url-pattern>*.do</url-pattern>
 </servlet-mapping>

 <session-config>
   <session-timeout>15</session-timeout>
 </session-config>

 <welcome-file-list>
   <welcome-file>
       env.do
   </welcome-file>
 </welcome-file-list>
 
 <jsp-config>
 <taglib>
   <taglib-uri>/WEB-INF/display.tld</taglib-uri>
    <taglib-location>/WEB-INF/displaytag.tld</taglib-location>
 </taglib>
</jsp-config>

</web-app>

Any ideas as to what I'm doing wrong?

Signature

Tim Slattery
Slattery_T@bls.gov
http://members.cox.net/slatteryt

Mike Schilling - 05 Apr 2007 19:06 GMT
> I'm trying to deploy a web app from an "exploded directory" in
> Weblogic 9. The app worked just fine in Weblogic 8. I'm getting this
> message:

Have you tried jar-ing it up into a .war file and deploying that?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.