jsp-api.jar, servlet-api.jar are going to come with any web container. Dennis Byrne
>-----Original Message----- >From: Emily Gu [mailto:[EMAIL PROTECTED] >Sent: Friday, February 24, 2006 01:05 AM >To: 'MyFaces Discussion' >Subject: Re: problem deploying on Weblogic 8.1 sp2 > >It seems you have jar file conflicting. Make sure you are using JSTL for >servlet 2.3 and add all jar files (jsp-api.jar, servlet-api.jar, >standard.jar), if you don't already have them. > >Emily >On 2/22/06, Leyzerzon, Simeon <[EMAIL PROTECTED]> wrote: >> >> Is this preventable? Any solution? thanks >> >> >> -----Original Message----- >> From: Dennis Byrne [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, February 22, 2006 2:23 PM >> To: MyFaces Discussion >> Subject: Re: problem deploying on Weblogic 8.1 sp2 >> >> >> >SEVERE: Unable to parse web.xml >> >java.net.UnknownHostException: java.sun.com >> >> Your app is trying to go to the Internet in order to get the DTD/XSD for >> the dep. desc. >> >> Dennis Byrne >> >> >-----Original Message----- >> >From: Leyzerzon, Simeon [mailto:[EMAIL PROTECTED] >> >Sent: Wednesday, February 22, 2006 02:16 PM >> >To: 'users@myfaces.apache.org' >> >Subject: problem deploying on Weblogic 8.1 sp2 >> > >> >Hi, >> > >> >I'm attempting to deploying a blank.war file supplied with the examples >> as a proof of concept on Weblogic 8.1 sp2. >> > >> >Here is an excerpt from the WL log file: >> > >> >> >============================================================================================== >> > >> >Feb 21, 2006 3:08:12 PM org.apache.myfaces.webapp.MyFacesServlet init >> >WARNING: ServletContextListener not yet called >> >Feb 21, 2006 3:08:12 PM >> >org.apache.myfaces.config.FacesConfiguratorfeedStandard >> >Config >> >INFO: Reading standard config >> org/apache/myfaces/resource/standard-faces-config. >> >xml >> >Feb 21, 2006 3:08:12 PM >> >org.apache.myfaces.config.FacesConfiguratorfeedClassloa >> >derConfigurations >> >INFO: Reading config >> zip:C:/bea/user_projects/domains/mydomain/myserver/.wlnotde >> >> >lete/extract/myserver__appsdir_blank_war_blank/jarfiles/WEB-INF/lib/sandbox17427 >> >.jar!/META-INF/faces-config.xml >> >Feb 21, 2006 3:08:12 PM >> >org.apache.myfaces.config.FacesConfiguratorfeedClassloa >> >derConfigurations >> >INFO: Reading config >> zip:C:/bea/user_projects/domains/mydomain/myserver/.wlnotde >> >> >lete/extract/myserver__appsdir_blank_war_blank/jarfiles/WEB-INF/lib/tomahawk1742 >> >9.jar!/META-INF/faces-config.xml >> >Feb 21, 2006 3:08:13 PM >> >org.apache.myfaces.config.FacesConfiguratorfeedContextS >> >pecifiedConfig >> >INFO: Reading config /WEB-INF/examples-config.xml >> >Feb 21, 2006 3:08:13 PM org.apache.myfaces.util.LocaleUtils toLocale >> >SEVERE: Locale name null or empty, ignoring >> >Feb 21, 2006 3:08:17 PM org.apache.myfaces.webapp.webxml.WebXmlParserparse >> >SEVERE: Unable to parse web.xml >> >java.net.UnknownHostException: java.sun.com >> > at java.net.InetAddress.getAllByName0(InetAddress.java:1004) >> > at java.net.InetAddress.getAllByName0(InetAddress.java:969) >> > at java.net.InetAddress.getAllByName(InetAddress.java:963) >> > at weblogic.net.http.HttpClient.openServer(HttpClient.java:263) >> > at weblogic.net.http.HttpClient.openServer(HttpClient.java:327) >> > at weblogic.net.http.HttpClient.<init>(HttpClient.java:128) >> > at weblogic.net.http.HttpURLConnection.getHttpClient( >> HttpURLConnection.j >> >ava:127) >> > at weblogic.net.http.HttpURLConnection.getInputStream >> (HttpURLConnection. >> >java:329) >> > at java.net.URL.openStream(URL.java:960) >> > at weblogic.apache.xerces.impl.XMLEntityManager.startEntity >> (XMLEntityMan >> >ager.java:836) >> > at weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity >> (XMLEntity >> >Manager.java:796) >> > at weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource >> (XMLDTDSc >> >annerImpl.java:275) >> > at >> weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.disp >> >atch(XMLDocumentScannerImpl.java:841) >> > at >> weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume >> >nt(XMLDocumentFragmentScannerImpl.java:329) >> > at weblogic.apache.xerces.parsers.DTDConfiguration.parse >> (DTDConfiguratio >> >n.java:525) >> > at weblogic.apache.xerces.parsers.DTDConfiguration.parse >> (DTDConfiguratio >> >n.java:581) >> > at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java >> :152) >> > at weblogic.apache.xerces.parsers.DOMParser.parse(DOMParser.java >> :257) >> > at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse >> (DocumentBuilder >> >Impl.java:201) >> > at weblogic.xml.jaxp.RegistryDocumentBuilder.parse >> (RegistryDocumentBuild >> >er.java:149) >> > at org.apache.myfaces.webapp.webxml.WebXmlParser.parse( >> WebXmlParser.java >> >:89) >> > at org.apache.myfaces.webapp.webxml.WebXml.init(WebXml.java:135) >> > at >> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(Sta >> >rtupServletContextListener.java:66) >> > at org.apache.myfaces.webapp.MyFacesServlet.init( >> MyFacesServlet.java:63) >> > >> > at >> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl >> >etStubImpl.java:993) >> > at weblogic.security.acl.internal.AuthenticatedSubject.doAs >> (Authenticate >> >dSubject.java:317) >> > at weblogic.security.service.SecurityManager.runAs( >> SecurityManager.java: >> >118) >> > at weblogic.servlet.internal.ServletStubImpl.createServlet >> (ServletStubIm >> >pl.java:869) >> > at weblogic.servlet.internal.ServletStubImpl.createInstances >> (ServletStub >> >Impl.java:848) >> > at weblogic.servlet.internal.ServletStubImpl.prepareServlet >> (ServletStubI >> >mpl.java:787) >> > at weblogic.servlet.internal.WebAppServletContext.preloadServlet >> (WebAppS >> >ervletContext.java:3252) >> > at weblogic.servlet.internal.WebAppServletContext.preloadServlets >> (WebApp >> >ServletContext.java:3197) >> > at >> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp >> >pServletContext.java:3174) >> > at weblogic.servlet.internal.HttpServer.preloadResources( >> HttpServer.java >> >:688) >> > at weblogic.servlet.internal.WebService.preloadResources( >> WebService.java >> >:483) >> > at weblogic.servlet.internal.ServletInitService.resume >> (ServletInitServic >> >e.java:30) >> > at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java >> :131) >> > at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964) >> > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359) >> > at weblogic.Server.main(Server.java:32) >> >Feb 21, 2006 3:08:17 PM >> org.apache.myfaces.webapp.StartupServletContextListener >> >initFaces >> >SEVERE: Error initializing ServletContext >> >javax.faces.FacesException: java.net.UnknownHostException: java.sun.com >> > at org.apache.myfaces.webapp.webxml.WebXmlParser.parse( >> WebXmlParser.java >> >:105) >> > at org.apache.myfaces.webapp.webxml.WebXml.init(WebXml.java:135) >> > at >> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(Sta >> >rtupServletContextListener.java:66) >> > at org.apache.myfaces.webapp.MyFacesServlet.init( >> MyFacesServlet.java:63) >> > >> > at >> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl >> >etStubImpl.java:993) >> > at weblogic.security.acl.internal.AuthenticatedSubject.doAs >> (Authenticate >> >dSubject.java:317) >> > at weblogic.security.service.SecurityManager.runAs( >> SecurityManager.java: >> >118) >> > at weblogic.servlet.internal.ServletStubImpl.createServlet >> (ServletStubIm >> >pl.java:869) >> > at weblogic.servlet.internal.ServletStubImpl.createInstances >> (ServletStub >> >Impl.java:848) >> > at weblogic.servlet.internal.ServletStubImpl.prepareServlet >> (ServletStubI >> >mpl.java:787) >> > at weblogic.servlet.internal.WebAppServletContext.preloadServlet >> (WebAppS >> >ervletContext.java:3252) >> > at weblogic.servlet.internal.WebAppServletContext.preloadServlets >> (WebApp >> >ServletContext.java:3197) >> > at >> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp >> >pServletContext.java:3174) >> > at weblogic.servlet.internal.HttpServer.preloadResources( >> HttpServer.java >> >:688) >> > at weblogic.servlet.internal.WebService.preloadResources( >> WebService.java >> >:483) >> > at weblogic.servlet.internal.ServletInitService.resume >> (ServletInitServic >> >e.java:30) >> > at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java >> :131) >> > at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964) >> > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359) >> > at weblogic.Server.main(Server.java:32) >> >Caused by: java.net.UnknownHostException: java.sun.com >> > at java.net.InetAddress.getAllByName0(InetAddress.java:1004) >> > at java.net.InetAddress.getAllByName0(InetAddress.java:969) >> > at java.net.InetAddress.getAllByName(InetAddress.java:963) >> > at weblogic.net.http.HttpClient.openServer(HttpClient.java:263) >> > at weblogic.net.http.HttpClient.openServer(HttpClient.java:327) >> > at weblogic.net.http.HttpClient.<init>(HttpClient.java:128) >> > at weblogic.net.http.HttpURLConnection.getHttpClient( >> HttpURLConnection.j >> >ava:127) >> > at weblogic.net.http.HttpURLConnection.getInputStream >> (HttpURLConnection. >> >java:329) >> > at java.net.URL.openStream(URL.java:960) >> > at weblogic.apache.xerces.impl.XMLEntityManager.startEntity >> (XMLEntityMan >> >ager.java:836) >> > at weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity >> (XMLEntity >> >Manager.java:796) >> > at weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource >> (XMLDTDSc >> >annerImpl.java:275) >> > at >> weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.disp >> >atch(XMLDocumentScannerImpl.java:841) >> > at >> weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume >> >nt(XMLDocumentFragmentScannerImpl.java:329) >> > at weblogic.apache.xerces.parsers.DTDConfiguration.parse >> (DTDConfiguratio >> >n.java:525) >> > at weblogic.apache.xerces.parsers.DTDConfiguration.parse >> (DTDConfiguratio >> >n.java:581) >> > at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java >> :152) >> > at weblogic.apache.xerces.parsers.DOMParser.parse(DOMParser.java >> :257) >> > at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse >> (DocumentBuilder >> >Impl.java:201) >> > at weblogic.xml.jaxp.RegistryDocumentBuilder.parse >> (RegistryDocumentBuild >> >er.java:149) >> > at org.apache.myfaces.webapp.webxml.WebXmlParser.parse( >> WebXmlParser.java >> >:89) >> > ... 19 more >> >javax.faces.FacesException: java.net.UnknownHostException: java.sun.com >> > at org.apache.myfaces.webapp.webxml.WebXmlParser.parse( >> WebXmlParser.java >> >:105) >> > at org.apache.myfaces.webapp.webxml.WebXml.init(WebXml.java:135) >> > at >> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(Sta >> >rtupServletContextListener.java:66) >> > at org.apache.myfaces.webapp.MyFacesServlet.init( >> MyFacesServlet.java:63) >> > >> > at >> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl >> >etStubImpl.java:993) >> > at weblogic.security.acl.internal.AuthenticatedSubject.doAs >> (Authenticate >> >dSubject.java:317) >> > at weblogic.security.service.SecurityManager.runAs( >> SecurityManager.java: >> >118) >> > at weblogic.servlet.internal.ServletStubImpl.createServlet >> (ServletStubIm >> >pl.java:869) >> > at weblogic.servlet.internal.ServletStubImpl.createInstances >> (ServletStub >> >Impl.java:848) >> > at weblogic.servlet.internal.ServletStubImpl.prepareServlet >> (ServletStubI >> >mpl.java:787) >> > at weblogic.servlet.internal.WebAppServletContext.preloadServlet >> (WebAppS >> >ervletContext.java:3252) >> > at weblogic.servlet.internal.WebAppServletContext.preloadServlets >> (WebApp >> >ServletContext.java:3197) >> > at >> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp >> >pServletContext.java:3174) >> > at weblogic.servlet.internal.HttpServer.preloadResources( >> HttpServer.java >> >:688) >> > at weblogic.servlet.internal.WebService.preloadResources( >> WebService.java >> >:483) >> > at weblogic.servlet.internal.ServletInitService.resume >> (ServletInitServic >> >e.java:30) >> > at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java >> :131) >> > at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964) >> > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359) >> > at weblogic.Server.main(Server.java:32) >> >Caused by: java.net.UnknownHostException: java.sun.com >> > at java.net.InetAddress.getAllByName0(InetAddress.java:1004) >> > at java.net.InetAddress.getAllByName0(InetAddress.java:969) >> > at java.net.InetAddress.getAllByName(InetAddress.java:963) >> > at weblogic.net.http.HttpClient.openServer(HttpClient.java:263) >> > at weblogic.net.http.HttpClient.openServer(HttpClient.java:327) >> > at weblogic.net.http.HttpClient.<init>(HttpClient.java:128) >> > at weblogic.net.http.HttpURLConnection.getHttpClient( >> HttpURLConnection.j >> >ava:127) >> > at weblogic.net.http.HttpURLConnection.getInputStream >> (HttpURLConnection. >> >java:329) >> > at java.net.URL.openStream(URL.java:960) >> >> >================================================================================================= >> > >> > >> >When launching an application, I get the following error message: >> > >> ><Feb 21, 2006 4:28:26 PM EST> <Error> <HTTP> <BEA-101017> >> <[ServletContext(id=47397,name=blank,context-path=/blank)] Root cause of >> ServletException. >> >java.lang.IllegalStateException: >> org.apache.myfaces.webapp.webxml.WebXml.init must be called before! >> > at org.apache.myfaces.webapp.webxml.WebXml.getWebXml(WebXml.java >> :123) >> > at >> org.apache.myfaces.application.jsp.JspViewHandlerImpl.getServletMapping( >> JspViewHandlerImpl.java:346) >> > at >> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView( >> JspViewHandlerImpl.java:199) >> > at org.apache.myfaces.lifecycle.LifecycleImpl.render( >> LifecycleImpl.java:352) >> > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) >> > at org.apache.myfaces.webapp.MyFacesServlet.service( >> MyFacesServlet.java:74) >> > at >> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run( >> ServletStubImpl.java:971) >> > at weblogic.servlet.internal.ServletStubImpl.invokeServlet( >> ServletStubImpl.java:402) >> > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java >> :28) >> > at weblogic.servlet.internal.FilterChainImpl.doFilter( >> FilterChainImpl.java:27) >> > at >> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter( >> ExtensionsFilter.java:122) >> > at weblogic.servlet.internal.FilterChainImpl.doFilter( >> FilterChainImpl.java:27) >> > at >> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run >> (WebAppServletContext.java:6356) >> > at weblogic.security.acl.internal.AuthenticatedSubject.doAs( >> AuthenticatedSubject.java:317) >> > at weblogic.security.service.SecurityManager.runAs( >> SecurityManager.java:118) >> > at weblogic.servlet.internal.WebAppServletContext.invokeServlet( >> WebAppServletContext.java:3635) >> > at weblogic.servlet.internal.ServletRequestImpl.execute( >> ServletRequestImpl.java:2585) >> > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) >> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) >> >> >=================================================================================================== >> >and the following at the WL console: >> > >> > ... 15 more >> >Feb 21, 2006 4:05:57 PM >> org.apache.myfaces.webapp.StartupServletContextListener >> >initFaces >> >INFO: ServletContext >> 'C:\bea\user_projects\domains\mydomain\myserver\stage\_apps >> >dir_blank_war\blank.war' initialized. >> >Feb 21, 2006 4:28:26 PM org.apache.myfaces.webapp.webxml.WebXml getWebXml >> >SEVERE: org.apache.myfaces.webapp.webxml.WebXml.init must be called >> before! >> >> >=================================================================================================== >> > >> > >> >Here is my web.xml: >> >> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> ><?xml version="1.0" encoding="ISO-8859-1"?> >> ><!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> >> > <!-- This web.xml can be used during debugging, when there is no >> myfaces.jar >> > library available. >> > >> > The faces-config.xml file (that is normally in the myfaces.jar) >> must be >> > copied to the /WEB-INF directory of the web context. >> > >> > The TLDs (that are normally in the myfaces.jar) must be >> > copied to the /WEB-INF/lib directory of the web context.--> >> > <description>debug web.xml</description> >> > <context-param> >> > <param-name>javax.faces.CONFIG_FILES</param-name> >> > <param-value> >> > /WEB-INF/examples-config.xml >> > </param-value> >> > </context-param> >> > <context-param> >> > <param-name>javax.faces.STATE_SAVING_METHOD</param-name> >> > <param-value>server</param-value> >> > </context-param> >> > <context-param> >> > <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT >> </param-name> >> > <param-value>true</param-value> >> > </context-param> >> > <context-param> >> > <param-name>org.apache.myfaces.DETECT_JAVASCRIPT >> </param-name> >> > <param-value>false</param-value> >> > </context-param> >> > <context-param> >> > <param-name>org.apache.myfaces.PRETTY_HTML</param-name> >> > <param-value>true</param-value> >> > </context-param> >> > <context-param> >> > <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> >> > <param-value>true</param-value> >> > </context-param> >> > <!-- Extensions Filter --> >> > <filter> >> > <filter-name>extensionsFilter</filter-name> >> > <filter-class> >> org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class> >> > <init-param> >> > <param-name>uploadMaxFileSize</param-name> >> > <param-value>100m</param-value> >> > </init-param> >> > <init-param> >> > <param-name>uploadThresholdSize</param-name> >> > <param-value>100k</param-value> >> > </init-param> >> > <!-- <init-param> >> > <param-name>uploadRepositoryPath</param-name> >> > <param-value>/temp</param-value> >> > <description>Set the path where the intermediary files will >> be stored. >> > </description> >> > </init-param>--> >> > </filter> >> > <filter-mapping> >> > <filter-name>extensionsFilter</filter-name> >> > <url-pattern>*.jsf</url-pattern> >> > </filter-mapping> >> > <filter-mapping> >> > <filter-name>extensionsFilter</filter-name> >> > <url-pattern>/faces/*</url-pattern> >> > </filter-mapping> >> > <listener> >> > <listener-class> >> org.apache.myfaces.webapp.StartupServletContextListener</listener-class> >> > </listener> >> > <!-- Faces Servlet --> >> > <!-- >> > <servlet> >> > <servlet-name>Faces Servlet</servlet-name> >> > <servlet-class>javax.faces.webapp.FacesServlet >> </servlet-class> >> > <load-on-startup>1</load-on-startup> >> > </servlet> >> > --> >> > <servlet> >> > <servlet-name>Faces Servlet</servlet-name> >> > <servlet-class>org.apache.myfaces.webapp.MyFacesServlet >> </servlet-class> >> > <load-on-startup>1</load-on-startup> >> > </servlet> >> > <!-- Faces Servlet Mapping --> >> > <!-- virtual path mapping --> >> > <!-- >> > <servlet-mapping> >> > <servlet-name>Faces Servlet</servlet-name> >> > <url-pattern>/faces/*</url-pattern> >> > </servlet-mapping> >> > --> >> > <!-- extension mapping --> >> > <servlet-mapping> >> > <servlet-name>Faces Servlet</servlet-name> >> > <url-pattern>*.jsf</url-pattern> >> > </servlet-mapping> >> > <!-- Welcome files --> >> > <welcome-file-list> >> > <welcome-file>index.jsp</welcome-file> >> > <welcome-file>index.html</welcome-file> >> > </welcome-file-list> >> ></web-app> >> >> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> > >> > >> > >> >Could anyone help, please? >> >TIA >> > >> > >> >Simeon Leyzerzon >> > >> > >> >> >============================================================================== >> >Please access the attached hyperlink for an important electronic >> communications disclaimer: >> > >> >http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html >> >> >============================================================================== >> > >> > >> >> >> >> >> ============================================================================== >> Please access the attached hyperlink for an important electronic >> communications disclaimer: >> >> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html >> >> ============================================================================== >> >> >