Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 JSF Help
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Martin




PostPosted: Wed Oct 26, 2005 8:09 pm   Post subject: JSF Help

I'm convinced that the error messages for JSF were designed by Satan.

I'm running Apache Tomcat 5.0. Here's the error message it's giving me.

code:

INFO: Installing web application at context path /S2EmployeeDepartment from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/S2EmployeeDepartment
Oct 27, 2005 10:10:52 AM com.sun.faces.config.ConfigureListener contextInitialized
WARNING: Can't parse configuration file:/WEB-INF/faces-config.xml
java.net.ConnectException: Connection timed out: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
        at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1548)
        at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1182)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:268)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
        at org.apache.catalina.core.StandardService.start(StandardService.java:480)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


Which leads me to believe that there's a problem with my WEB-INF/faces-config.xml

Here's faces-config.xml, copied from another application that works perfectly (hence the redundant navigation rules). If I uncomment the application tag, it gives me different errors.

code:
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<faces-config>
<!--
        <application>
                <message-bundle>custMessages</message-bundle>
                <locale-config>
                        <default-locale>en</default-locale>
                        <supported-locale>sv</supported-locale>
                </locale-config>
        </application>
-->
        <managed-bean>
              <managed-bean-name>addEmployeeHandler</managed-bean-name>
              <managed-bean-class>jsf.AddEmployeeHandler</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
       
        <navigation-rule>
                <from-view-id>/pages/emp_add.jsp</from-view-id>
                <navigation-case>
                        <from-outcome>valid</from-outcome>
                        <to-view-id>/pages/emp_add.jsp</to-view-id>
                </navigation-case>
                <navigation-case>
            <from-outcome>invalid</from-outcome>
            <to-view-id>/pages/emp_add.jsp</to-view-id>
              </navigation-case>
        </navigation-rule>
</faces-config>


So yeah, I have no idea. Please help...
Sponsor
Sponsor
Sponsor
sponsor
rizzix




PostPosted: Thu Oct 27, 2005 1:55 pm   Post subject: (No subject)

unfortunatly i have no idea either.. (no experience with myfaces).. i'll try though.. hmm
Martin




PostPosted: Thu Nov 10, 2005 12:22 am   Post subject: (No subject)

My error woes are gone, but I have another problem.

I'm using a javax.faces.model.DataModel to get data from an <h:dataTable>

No matter what I do however, the DataModel returns only the first row of the table.
wtd




PostPosted: Thu Nov 10, 2005 12:38 am   Post subject: (No subject)

Are you absolutely certain there's more than one row in the table?
Martin




PostPosted: Mon Dec 19, 2005 7:31 pm   Post subject: (No subject)

Has anyone had a problem with JSF not calling a setter method for something on the page (but still calls the getter method?) It's not a conversion error, either.
Martin




PostPosted: Tue Dec 20, 2005 2:30 am   Post subject: (No subject)

Figured it out. Needed to add a line to my web.xml. Heaven forbit that JSF throw an error message or even a warning...
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: