You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by dana whitelow <da...@aol.com.INVALID> on 2021/04/26 01:18:20 UTC

Emdbedded Tomcat Issues

 
Embedded Tomcat 9.0.0.M6
  
  
  Issue 1
  //    ctx.setAltDDName( "/home/user/microservices/AccountingApp/src/main/webapp/WEB-INF/web.xml"); 
        ctx.getServletContext().setAttribute(Globals.ALT_DD_ATTR, "/home/user/microservices/AccountingApp/src/main/webapp/WEB-INF/web.xml");

        Neither of the above  programmatic settings seems to have any effect on the message INFO: No global web.xml found


INFO: Starting Servlet Engine: Apache Tomcat/9.0.0.M6
Apr 26, 2021 1:58:59 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment        
INFO: No global web.xml found
Apr 26, 2021 1:58:59 AM org.omnifaces.ApplicationInitializer logOmniFacesVersion
INFO: Using OmniFaces version 3.6.1
Apr 26, 2021 1:58:59 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet Faces Servlet as unavailable
Apr 26, 2021 1:58:59 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet [Faces Servlet] in web application [] threw load() exception
java.util.MissingResourceException: Can't find javax.faces.LogStrings bundle from 

Issue 2

from error message I think tomcat is looking for the file WebMessages.properties and WebMessages_es.properties from the faces-config.xml
which I have in the src/main/resources/hacc/web/ and  in  directory src/main/resources/META-INF/resources/hacc/web ,
but still it is giving me the error 
SEVERE: Servlet [Faces Servlet] in web application [] threw load() exception
java.util.MissingResourceException: Can't find javax.faces.LogStrings bundle from 

at java.logging/java.util.logging.Logger.setupResourceInfo(Logger.java:2289)
    at java.logging/java.util.logging.Logger.<init>(Logger.java:565)
    at java.logging/java.util.logging.LogManager.demandLogger(LogManager.java:522)
    
<!-- faces-config.xml
    <application>
        <resource-bundle>
            <base-name>hacc.web.WebMessages</base-name>
            <var>bundle</var>
        </resource-bundle>
        <locale-config>
            <default-locale>en</default-locale>
            <supported-locale>es</supported-locale>
        </locale-config>
    </application>

Thanks
 
danawhitelow@aol.com

Re: Emdbedded Tomcat Issues

Posted by Martin Grigorov <mg...@apache.org>.
On Mon, Apr 26, 2021 at 4:18 AM dana whitelow <da...@aol.com.invalid>
wrote:

>
> Embedded Tomcat 9.0.0.M6
>

Please use newer version. 9.0.0.M6 is released May 2016.
Latest 9.x release is 9.0.45.


>
>
>   Issue 1
>   //    ctx.setAltDDName(
> "/home/user/microservices/AccountingApp/src/main/webapp/WEB-INF/web.xml");
>         ctx.getServletContext().setAttribute(Globals.ALT_DD_ATTR,
> "/home/user/microservices/AccountingApp/src/main/webapp/WEB-INF/web.xml");
>
>         Neither of the above  programmatic settings seems to have any
> effect on the message INFO: No global web.xml found
>
>
> INFO: Starting Servlet Engine: Apache Tomcat/9.0.0.M6
> Apr 26, 2021 1:58:59 AM org.apache.catalina.startup.ContextConfig
> getDefaultWebXmlFragment
> INFO: No global web.xml found
> Apr 26, 2021 1:58:59 AM org.omnifaces.ApplicationInitializer
> logOmniFacesVersion
> INFO: Using OmniFaces version 3.6.1
> Apr 26, 2021 1:58:59 AM org.apache.catalina.core.ApplicationContext log
> INFO: Marking servlet Faces Servlet as unavailable
> Apr 26, 2021 1:58:59 AM org.apache.catalina.core.StandardContext
> loadOnStartup
> SEVERE: Servlet [Faces Servlet] in web application [] threw load()
> exception
> java.util.MissingResourceException: Can't find javax.faces.LogStrings
> bundle from
>
> Issue 2
>
> from error message I think tomcat is looking for the file
> WebMessages.properties and WebMessages_es.properties from the
> faces-config.xml
> which I have in the src/main/resources/hacc/web/ and  in  directory
> src/main/resources/META-INF/resources/hacc/web ,
> but still it is giving me the error
> SEVERE: Servlet [Faces Servlet] in web application [] threw load()
> exception
> java.util.MissingResourceException: Can't find javax.faces.LogStrings
> bundle from
>
> at
> java.logging/java.util.logging.Logger.setupResourceInfo(Logger.java:2289)
>     at java.logging/java.util.logging.Logger.<init>(Logger.java:565)
>     at
> java.logging/java.util.logging.LogManager.demandLogger(LogManager.java:522)
>
> <!-- faces-config.xml
>     <application>
>         <resource-bundle>
>             <base-name>hacc.web.WebMessages</base-name>
>             <var>bundle</var>
>         </resource-bundle>
>         <locale-config>
>             <default-locale>en</default-locale>
>             <supported-locale>es</supported-locale>
>         </locale-config>
>     </application>
>
> Thanks
>
> danawhitelow@aol.com
>