You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 34 Members of 4184 |
| Forum: Seam Users |
21. Jul 2008, 15:03 CET | Link |
Need for eclipse complete full worked seam-project and full content in Tomcat/lib.
Please zip or rar your simply Seam Web Project (Eclipse 3.3 or 3.4 and JBossTools) and link me.
P.S. Create New Seam Web
Project, deploy on Tomcat: exceptions. I read more instructions, but all unsuccess.
Please, rar your project, very-very simply, for Tomcat and, second, Tomcat/libs and link me, to download this.
Getting someone elses project to run in your eclipse is much more difficult than getting JBossTools to work.
Run the New Seam Web Project wizard and tell us what goes wrong and where with as much detail (stack trace etc) as possible.
If a man speaks in the forest and there is no woman around to hear him, is he still wrong?
Thanks!
My steps:
PC: Core 2 Duo, RAM 2 Gb.
OS: Windows XP SP2
1) Installing JBossTools - http://wiki.jboss.org/wiki/InstallingJBossTools:
1.1) download Eclipse WTP (eclipse-jee-europa-winter-win32.zip - this is Eclipse 3.3.2, Build id: M20080221-1800);
1.2) download JBossTools-2.1.2.GA-ALL-win32.zip;
1.3) move this 2 files to root folder, unzip, merge eclipse folders, start Eclipse with -clean, new workspace.
to be continued...
2) Download and install Tomcat, file apache-tomcat-6.0.16.exe, type of install: full, HTTP: 8070, path of J2SE 5.0 JRE: select my J2EE 5 jre install path: C:\Sun\SDK\jdk\jre
Hmmm... Eclipse WTP running on my mashine with J2SE 6, and if start Tomcat in the Eclipse WTP - Tomcat is runing under new JVM. I reading about seam problems with Tomcat under JVM 6. But if i install Tomcat and select J2EE 5 jre - is OK, is no problems?
3) Download jsf. Version: 1.2 08 (mojarra 1.2 08-b06-FCS), unzip.
4) Download jboss-seam-1.2.1.GA, unzip.
5) Run Eclipse, change eclipse perspective to . In view : -.
to be continued...
2) Download and install Tomcat, file apache-tomcat-6.0.16.exe, type of install: full, HTTP: 8070, path of J2SE 5.0 JRE: select my J2EE 5 jre install path: C:\Sun\SDK\jdk\jre
Hmmm... Eclipse WTP running on my mashine with J2SE 6, and if start Tomcat in the Eclipse WTP - Tomcat is runing under new JVM. I reading about seam problems with Tomcat under JVM 6. But if i install Tomcat and select J2EE 5 jre - is OK, is no problems?
3) Download jsf. Version: 1.2 08 (mojarra 1.2 08-b06-FCS), unzip.
4) Download jboss-seam-1.2.1.GA, unzip.
5) Run Eclipse, change eclipse perspective to . In view : -.
to be continued...
Oh, 2 identical comments above, sorry.
6) 1 page of the master of creation of the project.
6.1) Target Server: - - - - JRE (so, here there is a choice - choose J2EE 5 JRE, not J2SE 6).
6.2) After setup Tomcat - cancel master of creation of the project.
6.3) Start again. -, and see completed input fields with server and runtime.
6.4) Configurations: Dynamic Web Project with Seam 1.2
6.5) Project name: SeamWebProject1
6.6) Next, Next, Next, and now viewed page is
to be continued...
7) Page .
7.1) JSF Libraries: uncheck with check JSF library (and check on ).
7.2) Window : click on , select folder with JSF 1.2 08, select inner folder , select two files: jsf-api.jar and jsf-impl.jar.
7.3) Version Supported: v12 7.4) Library Name: jsf1.2
7.5) Window is closed, new jsf library is selected, NOT .
7.6) Component Libraries: may be i need a select jstl 1.2 library, may be (and RichFaces library), but in this demo i NOT selected additional library, nothing.
7.7) Next, and now viewed page is .
to be continued...
8) Page .
8.1) Seam Runtime: and select folder in file system with name .
8.2) Database: select my connection (describe is skipped).
8.3) Deploy as: WAR (i am tomcat user for this project, not choice for EAR).
8.4) Next.
to be continued...
8.4) Next.8.4) Finish.
Yeh... Complete! :)
Now... Run this...
Select in view - , select , select , select , Next, Next, check , Finish.
Unworked...
22.07.2008 13:55:49 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SeamWebProject1' did not find a matching property. 22.07.2008 13:55:49 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:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.6.0_07\bin\client;C:\Program Files\Java\jre1.6.0_07\bin;C:\app\nikolaev\product\11.1.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\bin 22.07.2008 13:55:49 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8070 22.07.2008 13:55:49 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 466 ms 22.07.2008 13:55:49 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 22.07.2008 13:55:49 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 22.07.2008 13:55:49 org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.jboss.seam.servlet.SeamListener" is already configured for this context. The duplicate definition has been ignored. 22.07.2008 13:55:49 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. 22.07.2008 13:55:50 org.apache.catalina.startup.ContextConfig validateSecurityRoles INFO: WARNING: Security role name NONE used in an <auth-constraint> without being defined in a <security-role> 22.07.2008 13:55:50 org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 22.07.2008 13:55:50 org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) 22.07.2008 13:55:50 org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart 22.07.2008 13:55:50 org.apache.catalina.core.StandardContext start SEVERE: Context [/SeamWebProject1] startup failed due to previous errors 22.07.2008 13:55:50 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8070 22.07.2008 13:55:50 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 22.07.2008 13:55:50 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/32 config=null 22.07.2008 13:55:50 org.apache.catalina.startup.Catalina start INFO: Server startup in 730 msWhere are your myfaces libs?
If a man speaks in the forest and there is no woman around to hear him, is he still wrong?
OK.
I download MyFaces Core 1.2.3 Distribution, file MyFaces Core 1.2.3 (zip), unzip this.
Stop Tomcat in Eclipse, remove existing project, clean server (in view )
New Seam Web Project (name: ):
7.6 Component Libraries: Add new lib with two files: myfaces-api.jar and myfaces-impl.jar
Check for this library.
, run on Tomcat.
Unworked.
22.07.2008 14:56:01 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SeamWebProject2' did not find a matching property. 22.07.2008 14:56:01 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:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.6.0_07\bin\client;C:\Program Files\Java\jre1.6.0_07\bin;C:\app\nikolaev\product\11.1.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\bin 22.07.2008 14:56:01 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8070 22.07.2008 14:56:01 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 313 ms 22.07.2008 14:56:01 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 22.07.2008 14:56:01 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 22.07.2008 14:56:01 org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.jboss.seam.servlet.SeamListener" is already configured for this context. The duplicate definition has been ignored. 22.07.2008 14:56:01 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. 22.07.2008 14:56:01 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. 22.07.2008 14:56:01 org.apache.catalina.startup.ContextConfig validateSecurityRoles INFO: WARNING: Security role name NONE used in an <auth-constraint> without being defined in a <security-role> 22.07.2008 14:56:01 org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.myfaces.webapp.AbstractMyFacesListener.<clinit>(AbstractMyFacesListener.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3787) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 22 more 22.07.2008 14:56:01 org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) 22.07.2008 14:56:01 org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart 22.07.2008 14:56:01 org.apache.catalina.core.StandardContext start SEVERE: Context [/SeamWebProject2] startup failed due to previous errors 22.07.2008 14:56:02 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8070 22.07.2008 14:56:02 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 22.07.2008 14:56:02 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/16 config=null 22.07.2008 14:56:02 org.apache.catalina.startup.Catalina start INFO: Server startup in 424 msAs the poster said above keep adding the Jars to satisfy the CNFE. You may also be interested in http://www.jboss.com/products/devstudio which takes care of all of these problems.
Using JBossAS (if possible) also takes care of lot of the dependencies...
If a man speaks in the forest and there is no woman around to hear him, is he still wrong?
Thanks, Samuel Mendenhall and Nicklas Karlsson!
Very thanks.
I thought to buy studio, it is very possible in the near future.
While it would be desirable to start free of charge...
While I add necessary libraries, consistently, once again many thanks for the help!
Run studio... New Web Seam Project, setup Tomcat... Not probably to choose Tomcat, it is possible to choose only AS.
Choose AS... Finish master... Run on Tomcat - unpossible... The text shows:
It turns out, what Seam is free of charge, but it is better to pay for studio, for AS, differently you will have many-many problems?..:)
so it is dishonest!
Nah, Eclipse + JBoss Tools is mostly the same stuff for free.
I think its more the Tomcat instead of JBoss AS that is giving you headaches (haven't tried Seam on Tomcat, there are probably some more configuration steps)
If a man speaks in the forest and there is no woman around to hear him, is he still wrong?
Thanks. :)
Another way. New Seam Web Project (name: ):
7.6 Component Libraries: Add new lib with all 8 myface lib files.
Unworked.
22.07.2008 15:04:17 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SeamWebProject3' did not find a matching property. 22.07.2008 15:04:17 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:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.6.0_07\bin\client;C:\Program Files\Java\jre1.6.0_07\bin;C:\app\nikolaev\product\11.1.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\bin 22.07.2008 15:04:17 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8070 22.07.2008 15:04:17 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 314 ms 22.07.2008 15:04:18 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 22.07.2008 15:04:18 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 22.07.2008 15:04:18 org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.jboss.seam.servlet.SeamListener" is already configured for this context. The duplicate definition has been ignored. 22.07.2008 15:04:18 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. 22.07.2008 15:04:18 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. 22.07.2008 15:04:18 org.apache.catalina.startup.ContextConfig validateSecurityRoles INFO: WARNING: Security role name NONE used in an <auth-constraint> without being defined in a <security-role> 22.07.2008 15:04:18 com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Mojarra (1.2_08-b06-FCS) for context '/SeamWebProject3' 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true 22.07.2008 15:04:19 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 22.07.2008 15:04:19 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 22.07.2008 15:04:19 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 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig getLongInitParameter INFO: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig INFO: Starting up Tomahawk on the RI-JSF-Implementation. 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig SEVERE: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations. 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedStandardConfig INFO: Reading standard config META-INF/standard-faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config : jar:file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/ajax4jsf-1.1.1-SNAPSHOT.jar!/META-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config : jar:file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config : jar:file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config : jar:file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config : jar:file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config : jar:file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/jboss-seam.jar!/META-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config : jar:file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config : jar:file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/richfaces-3.0.1-SNAPSHOT.jar!/META-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator feedWebAppConfig INFO: Reading config /WEB-INF/faces-config.xml 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator logMetaInf INFO: Starting up MyFaces-package : myfaces-api in version : 1.2.3 from path : file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/myfaces-api-1.2.3.jar 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator logMetaInf INFO: Starting up MyFaces-package : myfaces-impl in version : 1.2.3 from path : file:/D:/_projects/_temp/_eclipse_winter_jbt_2_1_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SeamWebProject3/WEB-INF/lib/myfaces-impl-1.2.3.jar 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator logMetaInf INFO: MyFaces-package : tomahawk-sandbox not found. 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator logMetaInf INFO: MyFaces-package : tomahawk not found. 22.07.2008 15:04:19 org.apache.myfaces.shared_impl.util.LocaleUtils toLocale WARNING: Locale name in faces-config.xml null or empty, setting locale to default locale : ru_RU 22.07.2008 15:04:19 org.jboss.seam.jsf.AbstractSeamPhaseListener <init> WARNING: There should only be one Seam phase listener per application 22.07.2008 15:04:19 org.apache.myfaces.config.FacesConfigurator handleSerialFactory INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory 22.07.2008 15:04:19 org.apache.myfaces.webapp.AbstractFacesInitializer initFaces INFO: ServletContext 'D:\_projects\_temp\_eclipse_winter_jbt_2_1_2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\SeamWebProject3\' initialized. 22.07.2008 15:04:19 org.jboss.seam.servlet.SeamListener contextInitialized INFO: Welcome to Seam 1.2.1 22.07.2008 15:04:19 org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile at org.jboss.seam.deployment.Scanner.<init>(Scanner.java:42) at org.jboss.seam.deployment.Scanner.<init>(Scanner.java:35) at org.jboss.seam.deployment.NamespaceScanner.<init>(NamespaceScanner.java:19) at org.jboss.seam.init.Initialization.addNamespaces(Initialization.java:689) at org.jboss.seam.init.Initialization.create(Initialization.java:86) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.ClassNotFoundException: javassist.bytecode.ClassFile at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 21 more 22.07.2008 15:04:19 org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart 22.07.2008 15:04:19 org.apache.catalina.core.StandardContext start SEVERE: Context [/SeamWebProject3] startup failed due to previous errors 22.07.2008 15:04:19 org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.NoClassDefFoundError: javassist/util/proxy/MethodHandler at org.jboss.seam.core.Events.instance(Events.java:138) at org.jboss.seam.core.Events.exists(Events.java:133) at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:215) at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:185) at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.java:37) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4516) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4380) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.MethodHandler at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 21 more 22.07.2008 15:04:19 org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider INFO: No ExternalContext using fallback LifecycleProvider. 22.07.2008 15:04:19 org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider INFO: Using LifecycleProvider org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider 22.07.2008 15:04:19 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8070 22.07.2008 15:04:19 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 22.07.2008 15:04:19 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null 22.07.2008 15:04:19 org.apache.catalina.startup.Catalina start INFO: Server startup in 1742 msKeep throwing in jar libraries to satisfy the ClassNotFoundExceptions (javassist in last case)
If a man speaks in the forest and there is no woman around to hear him, is he still wrong?
With these 3 Software packages you should be able to run the new seam project wizard without the need for handling any jar dependencies.
JBoss AS is not free.
Tomcat for free. :)
It's not? Based on what information? If you feel you have to pay something for it, I'll be glad to supply my bank transfer details...
If a man speaks in the forest and there is no woman around to hear him, is he still wrong?
JBoss Red Hat AS 4.2 for free?
And it can be installed easy both by the local machine, and on a web-hosting, without any restrictions?
You are assured?:)
Check out jboss.org
Not to be confused with the JBoss EAP, which is commercially licensed/supported
If a man speaks in the forest and there is no woman around to hear him, is he still wrong?
Thanks, I know this information, but the heads is more adjusted on Tomcat...
There is a progress in my experiments with Tomcat. On how many I understand - now a problem only in adjustment Hibernate on local Tomcat? Like I somewhere read on it, but here already essentially will consult probably easier.... Probably.:)
24.07.2008 14:18:23 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: SetPropertiesRule{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SeamWebProject1' did not find a matching property. 24.07.2008 14:18:23 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:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jre1.6.0_07\bin\client;C:\Program Files\Java\jre1.6.0_07\bin;C:\app\nikolaev\product\11.1.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\bin 24.07.2008 14:18:23 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8070 24.07.2008 14:18:23 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 452 ms 24.07.2008 14:18:23 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 24.07.2008 14:18:23 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 24.07.2008 14:18:23 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(D:\_projects\_temp\_eclipse_winter_jbt_2_1_2_Part2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\SeamWebProject1\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 24.07.2008 14:18:24 org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.jboss.seam.servlet.SeamListener" is already configured for this context. The duplicate definition has been ignored. 24.07.2008 14:18:24 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. 24.07.2008 14:18:24 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. 24.07.2008 14:18:24 org.apache.catalina.startup.ContextConfig validateSecurityRoles INFO: WARNING: Security role name NONE used in an <auth-constraint> without being defined in a <security-role> 24.07.2008 14:18:24 com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Mojarra (1.2_08-b06-FCS) for context '/SeamWebProject1' log4j:WARN No appenders could be found for logger (org.ajax4jsf.framework.resource.InternetResourceBuilder). log4j:WARN Please initialize the log4j system properly. 24.07.2008 14:18:27 org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not find datasource at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:217) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) at org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.seam.util.Reflections.invoke(Reflections.java:20) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123) at org.jboss.seam.Component.callComponentMethod(Component.java:1842) at org.jboss.seam.Component.callCreateMethod(Component.java:1757) at org.jboss.seam.Component.newInstance(Component.java:1746) at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175) at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145) at org.jboss.seam.init.Initialization.init(Initialization.java:504) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: org.hibernate.HibernateException: Could not find datasource at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760) at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205) ... 32 more Caused by: javax.naming.NameNotFoundException: Name SeamWebProject1Datasource is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) ... 41 more 24.07.2008 14:18:27 org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart 24.07.2008 14:18:27 org.apache.catalina.core.StandardContext start SEVERE: Context [/SeamWebProject1] startup failed due to previous errors Failed to initalize plugin: org.jboss.logging.Log4jLoggerPlugin@bd36fa 24.07.2008 14:18:27 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8070 24.07.2008 14:18:27 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 24.07.2008 14:18:27 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/109 config=null 24.07.2008 14:18:27 org.apache.catalina.startup.Catalina start INFO: Server startup in 4473 msHi Eugeniy,
have you finally found the way ho