JSF, MyFAces, Eclipse, Tomcat (das Kriegsbeil wird vermisst :-))

takidoso

Erfahrenes Mitglied
Hallo und Halli,
Ich habe nun gerade angefangen etwas JFS zu lenen bzw. praktisch zu üben.
Dazu gibt es ja ne ganze Menge tutorials. Zunächst ist die erste Hüde die IDE (Eclipse Juo For Web-Developers) entsprechend erfolgreich aufzusetzen. Dazu habe ich folgende Seite gefunden.
http://help.eclipse.org/helios/inde...started/tutorial/JSFTools_tutorial_JSF20.html
Bedauerlicheweise scheiterte es dan schon beim runteladen von Mojarra. Es konnte angeblich keine Verbindung hergestellt weden.
So nahm ich die offensichtliche Altnative von Apache (MyFaces)
Scheinbar klappte alles nur beim Starten bekomme ich Fehlermeldungen vor allem bezogen auf Bibliotheken die wohl fehlen unter anderem tomahawk


Code:
17.05.2013 19:32:05 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.6.0_35\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:/Program Files (x86)/Java/jre6/lib/i386;C:\Perl64\site\bin;C:\Perl64\bin;C:\Oracle\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft Application Virtualization Client;C:\Program Files (x86)\IBM\SQLLIB\BIN;C:\Program Files (x86)\IBM\SQLLIB\SAMPLES\REPL;C:\Program Files (x86)\IBM\gsk8\lib\;C:\Program Files (x86)\IBM\SQLLIB\FUNCTION;C:\Program Files (x86)\Java\jdk1.6.0_35\bin;c:\Temp\lib\db-derby-10.9.1.0-bin\bin;C:\lib\javacc-5.0\bin;;C:\Program Files (x86)\eclipse-juno-32ee;;.
17.05.2013 19:32:05 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
17.05.2013 19:32:05 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 338 ms
17.05.2013 19:32:05 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17.05.2013 19:32:05 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
17.05.2013 19:32:05 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor CMK_JSF_TEST.xml
17.05.2013 19:32:05 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value false
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using default value false
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value false
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default value false
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getLongInitParameter
INFO: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getStringInitParameter
INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default value auto
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found, using default value false
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.VALIDATE_XML' found, using default value false
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using default value true
17.05.2013 19:32:05 org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
17.05.2013 19:32:05 org.apache.myfaces.config.FacesConfigurator feedStandardConfig
INFO: Reading standard config META-INF/standard-faces-config.xml
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator getWebAppConfig
INFO: Reading config /WEB-INF/faces-config.xml
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: Starting up MyFaces-package : myfaces-api in version : 2.0.2 from path : file:/C:/Temp/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/CMK_JSF_TEST/WEB-INF/lib/myfaces-api-2.0.2.jar
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: Starting up MyFaces-package : myfaces-impl in version : 2.0.2 from path : file:/C:/Temp/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/CMK_JSF_TEST/WEB-INF/lib/myfaces-impl-2.0.2.jar
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk12 not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk-sandbox not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk-sandbox12 not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk-sandbox15 not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : myfaces-orchestra-core not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : myfaces-orchestra-core12 not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : trinidad-api not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : trinidad-impl not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tobago not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : commons-el not found.
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : jsp-api not found.
17.05.2013 19:32:06 org.apache.myfaces.util.ExternalSpecifications isBeanValidationAvailable
INFO: MyFaces Bean Validation support disabled
17.05.2013 19:32:06 org.apache.myfaces.application.ApplicationImpl getProjectStage
INFO: Couldn't discover the current project stage, using Production
17.05.2013 19:32:06 org.apache.myfaces.config.FacesConfigurator handleSerialFactory
INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
17.05.2013 19:32:06 org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider
INFO: Using LifecycleProvider java.lang.String
17.05.2013 19:32:06 org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
INFO: ServletContext 'C:\Temp\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\CMK_JSF_TEST\' initialized.
17.05.2013 19:32:06 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
17.05.2013 19:32:06 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
17.05.2013 19:32:06 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/12  config=null
17.05.2013 19:32:06 org.apache.catalina.startup.Catalina start
INFO: Server startup in 917 ms
17.05.2013 19:32:07 javax.faces.webapp.FacesServlet service
WARNUNG:  Someone is trying to access a secure resource : /WEB-INF/login.xhtml
 remote address is 0:0:0:0:0:0:0:1
 remote host is 0:0:0:0:0:0:0:1
 remote user is null
 request URI is /CMK_JSF_TEST/faces/WEB-INF/login.xhtml
Zum einen wundert es mich, warum man nicht alles benötigte für MyFaces bekommt, wenn man es runterlädt. Zum anderen sind auch Bibliotheken in den Fehlermeldungen dabei, wie commons-el , die mir sehr elementar erscheinen.
Wo lade ich mir den Kram denn dann noch zusätzlich runter, und wo muss es denn dann installiert sein. Ist es Common Practice diese mit in WEB-INF/lib reinszubringen oder ist eines der Tomcat-lib-Vezeichnisse angebrachter?

Mit verwunderten Grüßen

Takidoso
 
Zuletzt bearbeitet:

Neue Beiträge