[JBoss Seam] - Seam on tomcat connection problem using EJB
by Stateless Bean
Hi,
I try to configure my app to run on tomcat.
I configured all files like in booking example.
First question:
For what reason is mc-conf.jar file, should I configure some special in this file?
When I deploy app on tomcat i get this error:
| 19:56:16,026 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
| 19:56:16,230 WARN [LocalTxDataSource] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres")
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:177)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:579)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:247)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:540)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:339)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:392)
| at org.jboss.resource.adapter.jdbc.local.LocalTxDataSource$ConnectionManagerDelegate.allocateConnection(LocalTxDataSource.java:78)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73)
| 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.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
|
i thinks this is authentication problem but I use same authentication for jboss and this works fine!!
anonymous wrote :
|
| <local-tx-datasource>
| <jndi-name>CenturionDatasource</jndi-name>
| <connection-url>jdbc:postgresql://127.0.0.1:5432/Centurion</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>postgres</user-name>
| root
| <blocking-timeout-millis>50000</blocking-timeout-millis>
|
|
| <type-mapping>PostgreSQL 8.2</type-mapping>
|
| </local-tx-datasource>
|
|
Here is my JBoss-beans.xml
anonymous wrote :
| <?xml version="1.0" encoding="UTF-8"?>
|
| <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
| xmlns="urn:jboss:bean-deployer">
|
|
| org.postgresql.Driver
| jdbc:postgresql://localhost:5432/Centurion
| postgres
| java:/CenturionDatasource
| 0
| 10
| 1000
| 100000
|
|
|
|
|
|
|
|
|
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068312#4068312
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068312
18Â years, 9Â months
[JBoss Seam] - Re: Breaking Pages.xml into multiple files
by Delphi's Ghost
Yeah, this is something I'm interested in.
I know you can have a per-page xml file, but one problem is that there is still some shared stuff that must go in pages.xml like the elements that define the conversation ids using business ids. These cannot go in xyz.page.xml files, and chances are that they are shared across multiple pages anyway.
I don't know so much about a pages component, but being able to specify one or more pages.xml files would be nice since then you can split out the conversation definitions, the login/logout and exception logic, and maybe even combine the pages.xml info for a set of similarly grouped pages into a single file i.e. :
conversations.pages.xml
common.pages.xml
inventory.pages.xml
contacts.pages.xml
admin.pages.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068304#4068304
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068304
18Â years, 9Â months
[JBoss Seam] - Help with compilation from CVS - maven site plugin not found
by dmitriy.lapko
I downloaded latest version of Seam 2.0.0Beta1 from cvs by this command:
But when I exectute ant I have:
| D:\ws\jboss-seam\jboss-seam>ant
| Buildfile: build.xml
|
| initcore:
| [echo] Build JBoss Seam Core 2.0
|
| select-compiler:
|
| antlr:
|
| compilecore:
| [javac] Compiling 26 source files to D:\ws\jboss-seam\jboss-seam\classes\coreclasses
|
| jarcore:
|
| initpdf:
| [echo] Build JBoss Seam PDF 2.0
|
| installExtraDependencies:
| [artifact:install] [INFO] Installing D:\ws\jboss-seam\jboss-seam\lib\jboss-cache-jdk50.jar to C:\Documents and Settings\dlk\.m2\repository\jboss\jboss-cache-jdk
| 50\1.4.1.GA-jboss-seam-2.0.0.BETA\jboss-cache-jdk50-1.4.1.GA-jboss-seam-2.0.0.BETA.jar
| [artifact:install] [INFO] Installing D:\ws\jboss-seam\jboss-seam\lib\testng-5.6-jdk15.jar to C:\Documents and Settings\dlk\.m2\repository\org\testng\testng\5.6-
| jboss-seam-2.0.0.BETA\testng-5.6-jboss-seam-2.0.0.BETA.jar
| [artifact:install] [INFO] Installing D:\ws\jboss-seam\jboss-seam\lib\jbpm-jpdl.jar to C:\Documents and Settings\dlk\.m2\repository\jboss\jbpm-jpdl\3.2.1-jboss-s
| eam-2.0.0.BETA\jbpm-jpdl-3.2.1-jboss-seam-2.0.0.BETA.jar
|
| init.m2:
| [artifact:install] [INFO] Installing D:\ws\jboss-seam\jboss-seam\pom.xml to C:\Documents and Settings\dlk\.m2\repository\jboss\jboss-seam\2.0.0.BETA\jboss-seam-
| 2.0.0.BETA.pom
|
| jarui:
| [artifact:install] [INFO] Installing D:\ws\jboss-seam\jboss-seam\jboss-seam.jar to C:\Documents and Settings\dlk\.m2\repository\jboss\jboss-seam-core\2.0.0.BETA
| \jboss-seam-core-2.0.0.BETA.jar
| [echo] Installed jboss-seam-core pom
| [java] [INFO] Scanning for projects...
| [java] [INFO] Reactor build order:
| [java] [INFO] JBoss Seam
| [java] [INFO] Seam JSF Controls
| [java] [INFO] ----------------------------------------------------------------------------
| [java] [INFO] Building JBoss Seam
| [java] [INFO] task-segment: [package]
| [java] [INFO] ----------------------------------------------------------------------------
| [java] [INFO] ------------------------------------------------------------------------
| [java] [ERROR] BUILD ERROR
| [java] [INFO] ------------------------------------------------------------------------
| [java] [INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not exist or no valid version could be found
| [java] [INFO] ------------------------------------------------------------------------
| [java] [INFO] For more information, run Maven with the -e switch
| [java] [INFO] ------------------------------------------------------------------------
| [java] [INFO] Total time: < 1 second
| [java] [INFO] Finished at: Fri Jul 27 18:42:31 CEST 2007
| [java] [INFO] Final Memory: 1M/4M
| [java] [INFO] ------------------------------------------------------------------------
| [java] Java Result: 1
|
| BUILD FAILED
| D:\ws\jboss-seam\jboss-seam\build.xml:621: Warning: Could not find file D:\ws\jboss-seam\jboss-seam\ui\target\jboss-seam-ui.jar to copy.
Can you help me, what is a problem? Why it cannot find maven plugin for site? I checked, I don't have maven in my classpath...
I have:
D:\ws\jboss-seam\jboss-seam>ant -version
Apache Ant version 1.7.0 compiled on December 13 2006
D:\ws\jboss-seam\jboss-seam>java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068298#4068298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068298
18Â years, 9Â months