-
15. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
nickarls Jul 22, 2008 1:41 PM (in response to eugeniyn)Using JBossAS (if possible) also takes care of lot of the dependencies...
-
16. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
eugeniyn Jul 22, 2008 1:51 PM (in response to eugeniyn)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!
-
17. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
eugeniyn Jul 24, 2008 9:55 AM (in response to eugeniyn)
Red Hat Developer Studio Build id 1 0 0 CR1Run 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!
-
18. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
nickarls Jul 24, 2008 10:33 AM (in response to eugeniyn)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)
-
19. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
eugeniyn Jul 24, 2008 10:45 AM (in response to eugeniyn)Thanks. :)
-
20. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
ganix Jul 24, 2008 11:21 AM (in response to eugeniyn)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. -
21. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
eugeniyn Jul 24, 2008 11:50 AM (in response to eugeniyn)
if you want to start seam for free, use JBoss AS ...JBoss AS is not free.
Tomcat for free. :)
-
22. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
nickarls Jul 24, 2008 12:03 PM (in response to eugeniyn)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...
-
23. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
eugeniyn Jul 24, 2008 12:15 PM (in response to eugeniyn)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. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
nickarls Jul 24, 2008 12:24 PM (in response to eugeniyn)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
-
25. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
eugeniyn Jul 24, 2008 12:38 PM (in response to eugeniyn)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. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
anatoly Aug 26, 2008 11:02 AM (in response to eugeniyn)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.
-
27. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
eugeniyn Aug 26, 2008 11:31 AM (in response to eugeniyn)No, up to the end all has not finished. There was a necessity and for other reasons to use JBoss AS (jboss.org) - there all problems by itself have disappeared...
-
28. Re: Eclipse and JBossTools. Need for sample worked seam project for Tomcat.
eugeniyn Aug 26, 2008 11:37 AM (in response to eugeniyn)With a source of the data under Tomcat I have somehow consulted, has stopped on problems with transactions. For a configuration of a source of the data - look here that: