Help

Controls

PermLinkWikiLink

Built with Seam

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.

Forum: Seam Users Forum ListTopic List
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.

28 Replies:
22. Jul 2008, 08:06 CET | Link

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?

22. Jul 2008, 10:17 CET | Link

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...

22. Jul 2008, 10:31 CET | Link

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 Seam. In view Package Explorer: New-Seam Web Project.

to be continued...

22. Jul 2008, 10:33 CET | Link

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 Seam. In view Package Explorer: New-Seam Web Project.

to be continued...

22. Jul 2008, 10:37 CET | Link

Oh, 2 identical comments above, sorry.

22. Jul 2008, 11:09 CET | Link

6) 1 page of the master of creation of the project.

6.1) Target Server: - New... - Apache - Tomcat 6.0 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. New-Seam Web Project, 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 JSF Capabilities

to be continued...

22. Jul 2008, 11:27 CET | Link

7) Page JSF Capabilities.

7.1) JSF Libraries: uncheck Server Supplied JSF Implementation with check New... JSF library (and check on Deploy).

7.2) Window JSF Library: click on Add..., select folder with JSF 1.2 08, select inner folder lib, select two files: jsf-api.jar and jsf-impl.jar.

7.3) Version Supported: v12 7.4) Library Name: jsf1.2

7.5) Window JSF Library is closed, new jsf library is selected, NOT Server Supplied JSF Implementation.

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 Seam Facet.

to be continued...

22. Jul 2008, 11:37 CET | Link

8) Page Seam Facet.

8.1) Seam Runtime: Add... and select folder in file system with name jboss-seam-1.2.1.GA.

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...

22. Jul 2008, 11:59 CET | Link

8.4) Next.

8.4) Finish.

Yeh... Complete! :)

Now... Run this...

Select in view Package Explorer - SeamWebProject1, select Run As, select Run On Server, select Tomcat v6.0 Server at localhost, Next, Next, check Update content root for Web module to match the current settings, 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 ms
22. Jul 2008, 12:26 CET | Link

Where are your myfaces libs?

 

If a man speaks in the forest and there is no woman around to hear him, is he still wrong?

22. Jul 2008, 13:05 CET | Link

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 JBoss Server View)

New Seam Web Project (name: SeamWebProject2):

7.6 Component Libraries: Add new lib with two files: myfaces-api.jar and myfaces-impl.jar

Check deploy for this library.

, run SeamWebProject2 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 ms
22. Jul 2008, 13:35 CET | Link

As 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.

22. Jul 2008, 13:41 CET | Link

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?

22. Jul 2008, 13:51 CET | Link

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!

24. Jul 2008, 09:55 CET | Link
Red Hat Developer Studio Build id 1 0 0 CR1

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: Project facet Seam version 1.2 is not supported.

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!

24. Jul 2008, 10:33 CET | Link

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?

22. Jul 2008, 13:06 CET | Link

Another way. New Seam Web Project (name: SeamWebProject3):

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 ms
22. Jul 2008, 13:14 CET | Link

Keep 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?

24. Jul 2008, 11:21 CET | Link
if you want to start seam for free, use JBoss AS (5 does not work until now, so get latest 4.x), get and install seam (set jboss.home, as written in the install guide) install jboss tools for eclipse, by using the Update Site (in eclipse: Help->Software Updates-> Find and Install)

With these 3 Software packages you should be able to run the new seam project wizard without the need for handling any jar dependencies.
24. Jul 2008, 11:50 CET | Link
if you want to start seam for free, use JBoss AS ...

JBoss AS is not free.

Tomcat for free. :)

24. Jul 2008, 12:03 CET | Link

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?

24. Jul 2008, 12:15 CET | Link

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?:)

24. Jul 2008, 12:24 CET | Link

Check out jboss.org

You are welcome to download and use any of the products (the binary releases) available on jboss.org, together with documentation, completely free of charge.

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?

24. Jul 2008, 12:38 CET | Link

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 ms
26. Aug 2008, 11:02 CET | Link

Hi Eugeniy,

have you finally found the way how to change the DB/Hibernate configuration to run in under Tomcat?

I have created a new Seam project in Eclipse with JBossTools yesterday, configured it to be run on Tomcat server,copied all missing libraries and came at the end to absolutely the same problem as you:

Name <MyDatasourceName> is not bound in this Context

Do you know how to fix it?

Thank you in advance.