[jboss-user] [JBoss Seam] - where do i get plug's for Eclipse Europa regarding JBOSS SEA
hi, I am srarting a JBOSS SEAM Project. Presently i am using Eclipse Europa. Is there any plugin like Struts-bank.war so that can we can start our development. If not is there any ways to do the SEAM project in Eclipse Europa like install some plugins for Eclipse Europa and start a new project which supports JBOSS SEAM technology. Thx Han. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109133#4109133 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109133 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Can we deploy without restarting?
anonymous wrote : But the issue is, if I copy-paste the ear to the deploy directory the apps is not restarted By default, the server should have picked up the application and started the deployment. Have you done any changes to the jboss-service.xml file in the %JBOSS_HOME%/ serverName/conf folder? Specifically look for the Deployment Scanning MBean in that file and make sure that the MBean or its ScanEnabled and ScanPeriod properties are not commented out. anonymous wrote : Is it possible to deploy apps to appserver without shutting it down? e.g through a web-console or something? The other way to do this is to use the jmx-console (http://localhost:8080/jmx-console). On the page that comes up, look for MainDeployer and click on that link. The next page will list down all the methods available. There are a couple of deploy() method which accept the file path to deploy the application. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109132#4109132 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109132 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:decorate looses form values on validation error
I hope someone can help otherwise im going to have to stop using this. Is the seam source code available? I am happy to look at the source code to try and work out the issue myself. David View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109131#4109131 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109131 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trapping Seam Remoting AJAX errors.
ugh.., thanks for the quick response though :( [EMAIL PROTECTED] wrote : This is an outstanding issue that has been on the backburner for a while, unfortunately: | | http://jira.jboss.org/jira/browse/JBSEAM-633 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109129#4109129 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109129 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: How to install JBoss cache from
Whenever you have problems, you need to explain exactly what sort of problems you're having, e.g. by posting logs. How do you expect people to help you? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109143#4109143 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109143 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Stress test error in JBOSS - sending a 2695k message
Hi, I have received error while sending a 2695k message for the sake of my investigations. I encountered such an exception. Do you guys have any idea if it is the JBOSS limit or something else ? thanks, y(JDBCPersistenceManager.java:4384) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4356) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.addReference(J DBCPersistenceManager.java:1651) at org.jboss.messaging.core.ChannelSupport.handleInternal(ChannelSupport .java:833) at org.jboss.messaging.core.ChannelSupport$HandleRunnable.run(ChannelSup port.java:1732) at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExe cutor.java:89) at java.lang.Thread.run(Thread.java:595) 18:17:09,500 WARN [JDBCPersistenceManager] Trying again after a pause 18:17:09,781 WARN [JDBCPersistenceManager] SQLException caught - assuming deadl ock detected, try:17 java.sql.SQLException: Unique constraint violation: in statement [INSERT INTO J MS_MESSAGE (MESSAGEID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, COREHEADERS, P AYLOAD, CHANNELCOUNT, TYPE, JMSTYPE, CORRELATIONID, CORRELATIONID_BYTES, DESTINA TION_ID, REPLYTO_ID, JMSPROPERTIES) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat e(WrappedPreparedStatement.java:251) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4384) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4356) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.addReference(J DBCPersistenceManager.java:1651) at org.jboss.messaging.core.ChannelSupport.handleInternal(ChannelSupport .java:833) at org.jboss.messaging.core.ChannelSupport$HandleRunnable.run(ChannelSup port.java:1732) at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExe cutor.java:89) at java.lang.Thread.run(Thread.java:595) 18:17:09,796 WARN [JDBCPersistenceManager] Trying again after a pause 18:17:10,015 WARN [JDBCPersistenceManager] SQLException caught - assuming deadl ock detected, try:18 java.sql.SQLException: Unique constraint violation: in statement [INSERT INTO J MS_MESSAGE (MESSAGEID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, COREHEADERS, P AYLOAD, CHANNELCOUNT, TYPE, JMSTYPE, CORRELATIONID, CORRELATIONID_BYTES, DESTINA TION_ID, REPLYTO_ID, JMSPROPERTIES) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat e(WrappedPreparedStatement.java:251) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4384) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4356) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.addReference(J DBCPersistenceManager.java:1651) at org.jboss.messaging.core.ChannelSupport.handleInternal(ChannelSupport .java:833) at org.jboss.messaging.core.ChannelSupport$HandleRunnable.run(ChannelSup port.java:1732) at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExe cutor.java:89) at java.lang.Thread.run(Thread.java:595) 18:17:10,031 WARN [JDBCPersistenceManager] Trying again after a pause 18:17:10,031 WARN [JDBCPersistenceManager] SQLException caught - assuming deadl ock detected, try:19 java.sql.SQLException: Unique constraint violation: in statement [INSERT INTO J MS_MESSAGE (MESSAGEID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, COREHEADERS, P AYLOAD, CHANNELCOUNT, TYPE, JMSTYPE, CORRELATIONID, CORRELATIONID_BYTES, DESTINA TION_ID, REPLYTO_ID, JMSPROPERTIES) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat e(WrappedPreparedStatement.java:251) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4384) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4356) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.addReference(J DBCPersistenceManager.java:1651) at org.jboss.messaging.core.ChannelSupport.handleInternal(ChannelSupport .java:833) at org.jboss.messaging.core.ChannelSupport$HandleRunnable.run(ChannelSup port.java:1732)
[jboss-user] [Messaging, JMS JBossMQ] - Jboss stress test failure
Hi, I have received error while sending a 2695k message for the sake of my investigations. I encountered such an exception. Do you guys have any idea if it is the JBOSS limit or something else ? thanks, y(JDBCPersistenceManager.java:4384) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4356) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.addReference(J DBCPersistenceManager.java:1651) at org.jboss.messaging.core.ChannelSupport.handleInternal(ChannelSupport .java:833) at org.jboss.messaging.core.ChannelSupport$HandleRunnable.run(ChannelSup port.java:1732) at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExe cutor.java:89) at java.lang.Thread.run(Thread.java:595) 18:17:09,500 WARN [JDBCPersistenceManager] Trying again after a pause 18:17:09,781 WARN [JDBCPersistenceManager] SQLException caught - assuming deadl ock detected, try:17 java.sql.SQLException: Unique constraint violation: in statement [INSERT INTO J MS_MESSAGE (MESSAGEID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, COREHEADERS, P AYLOAD, CHANNELCOUNT, TYPE, JMSTYPE, CORRELATIONID, CORRELATIONID_BYTES, DESTINA TION_ID, REPLYTO_ID, JMSPROPERTIES) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat e(WrappedPreparedStatement.java:251) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4384) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4356) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.addReference(J DBCPersistenceManager.java:1651) at org.jboss.messaging.core.ChannelSupport.handleInternal(ChannelSupport .java:833) at org.jboss.messaging.core.ChannelSupport$HandleRunnable.run(ChannelSup port.java:1732) at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExe cutor.java:89) at java.lang.Thread.run(Thread.java:595) 18:17:09,796 WARN [JDBCPersistenceManager] Trying again after a pause 18:17:10,015 WARN [JDBCPersistenceManager] SQLException caught - assuming deadl ock detected, try:18 java.sql.SQLException: Unique constraint violation: in statement [INSERT INTO J MS_MESSAGE (MESSAGEID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, COREHEADERS, P AYLOAD, CHANNELCOUNT, TYPE, JMSTYPE, CORRELATIONID, CORRELATIONID_BYTES, DESTINA TION_ID, REPLYTO_ID, JMSPROPERTIES) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat e(WrappedPreparedStatement.java:251) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4384) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4356) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.addReference(J DBCPersistenceManager.java:1651) at org.jboss.messaging.core.ChannelSupport.handleInternal(ChannelSupport .java:833) at org.jboss.messaging.core.ChannelSupport$HandleRunnable.run(ChannelSup port.java:1732) at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExe cutor.java:89) at java.lang.Thread.run(Thread.java:595) 18:17:10,031 WARN [JDBCPersistenceManager] Trying again after a pause 18:17:10,031 WARN [JDBCPersistenceManager] SQLException caught - assuming deadl ock detected, try:19 java.sql.SQLException: Unique constraint violation: in statement [INSERT INTO J MS_MESSAGE (MESSAGEID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, COREHEADERS, P AYLOAD, CHANNELCOUNT, TYPE, JMSTYPE, CORRELATIONID, CORRELATIONID_BYTES, DESTINA TION_ID, REPLYTO_ID, JMSPROPERTIES) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat e(WrappedPreparedStatement.java:251) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4384) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.updateWithRetr y(JDBCPersistenceManager.java:4356) at org.jboss.messaging.core.plugin.JDBCPersistenceManager.addReference(J DBCPersistenceManager.java:1651) at org.jboss.messaging.core.ChannelSupport.handleInternal(ChannelSupport .java:833) at org.jboss.messaging.core.ChannelSupport$HandleRunnable.run(ChannelSup port.java:1732)
[jboss-user] [JBoss Messaging] - Re: URGENT -JBoss limitation in accepting messages.
At first I installed JBOSS Application server, and then by reading that page, I installed that software. It created a messaging folder in my jboss installation folder, and in order to run the server, I just run run.bat -c messaging in the command line. Do you think I replaced the MQ on AS? regards, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109146#4109146 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109146 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: MSSQL XA datasource throws RollbackException on cluster
you can find out what port it is listening on by going to the Configuration manager and following the links for Protocolse for MSSQLSERVER-TCP/IP Properties and clicking on the IP Address tab. Ronald Trask XAware inc Professional Services. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109142#4109142 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109142 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: MSSQL XA datasource throws RollbackException on cluster
One thing that you have to be careful of, SQL Server will frequently change the port that it listens on to some other number (that's Microsoft for ya) if you get a connection refused on startup check and see what port it is actually listening on. This happened to me when I tried to configure it on my XP based laptop. I don't think it happens on 2003. I have not been successful at getting it to run on a XP workstation, but I think that is because the DTS is not running. I'll try that later and let you know what happens. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109140#4109140 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109140 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam Theme and Printable View?
wondering if it is a good idea to use theme based solution when I only two themes are required, default and printable view? In my case I want print view only when user click on say 'Print Preview' button - so I can open printable page in a new window. When user click on Print Preview button I set theme to 'printable'. However, since theme is Session level contaxt, it affact other pages too should should stay to default theme. Where should I set theme back to default, once printable page has been displayed? Or is there any other solution for printable issue? Seam 1.2.1GA + Facelets. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109130#4109130 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: For JBoss 4.2.1, will either SQL Server 2005 or MySQL 5.
Well no responses, but I guess that is what is to be expected when I don't gather my thoughts properly before I post. Here is some additional information that I posted on the JCA forum. I'm not sure that that is the right place, so I'll update this topic as well. -- I am trying to get the Microsoft 1.2 JDBC driver configured for xa-datasource to function as the DefaultDS for an 4.2.1.GA jboss cluster, and I have run into an issue that I hope you can help with. On the second and all subsequent attempts at starting the server I get a javax.transaction.RollbackException. I have done no other processing, I just shut it down and start it back up. If I drop all of the tables that JBoss creates, and start the server there are no errors reported. I have followed the directions to turn on trace for jdbc and ta, but I see no difference in the output. First let me document the setup which I have pieced together from multiple sources. I think this is getting close. It may contain steps that are not required, but I know this is close to working. Host is: Microsoft Windows Server 2003 Standard Edition Service Pack 2 Intel Xeon 2.80GHz 1.00 GB of Ram | | | 1.) I installed SQL Server 2005 evaluation | | 2.) Downloaded and expanded the 1.2 driver package released 10/15/2007 http://www.microsoft.com/downloads/details.aspx?FamilyId=C47053EB-3B64-4794-950D-81E1EC91C1BAdisplaylang=en | | 3.) Copied the appropriate dll to the Binn directory in the SQL Server installation as documented in the comments of the sqljdbc_1.2\enu\xa\xa_install.sql file from the directory where I expanded the JDBC package. | | 4.) Ran the T-SQL script in the xa directory of the JDBC driver. | | 5.) Turned on the MS DTC service http://www-1.ibm.com/support/docview.wss?uid=swg21221370 | | 6.) Created a boss user -- Make sure to turn enable SQL login, and uncheck the box that says enforce the log in policy. | | 7.) Created a jboss database, and made my jboss user the owner of it. | | 8.) Modified the jboss user to have access to the master and granted the SqlJDBCXAUser, then made the jboss database the default database. | | 9.) Restarted SQL Server. | | 10.) Copied the jdbc driver to server/all/lib | | 11.) Deleted the hsqldb-ds.xml file | | 12.) Copied the docs/examples/jca/mssql-da-ds.xml file to the deploy directory. It required some major surgery to get right. I eventually wound up with this:datasources | | | xa-datasource | | | jndi-nameDefaultDS/jndi-name | | | track-connection-by-tx/ | | | isSameRM-override-valuefalse/isSameRM-override-value | | | xa-datasource-classcom.microsoft.sqlserver.jdbc.SQLServerXADataSource/xa-datasource-class | | | xa-datasource-property name=ServerNamelocalhost/xa-datasource-property | | | xa-datasource-property name=DatabaseNamejboss/xa-datasource-property | | | xa-datasource-property name=SelectMethodcursor/xa-datasource-property | | | xa-datasource-property name=Userjboss/xa-datasource-property | | | xa-datasource-property name=Passwordjboss/xa-datasource-property | | | xa-datasource-property name=URLjdbc:sqlserver://localhost:1433/xa-datasource-property | | | !-- corresponding type-mapping in the standardjbosscmp-jdbc.xml -- | | | metadata | | | type-mappingMS SQLSERVER2000/type-mapping | | | /metadata | | | /xa-datasource | | | /datasources | | 13.) In the deploy-hasingleton directory I deleted the hsqldb-jdbc-state-service.xml file | | 14.) Copied the docs\examples\jms\mssql-jdbc2-service.xml | | 15.) Changed the datasource in mssql-jdbc2-service.xml to DefaultDS | | This being my first attempt ( Yea right :) ) it of course came up with no errors. | | The problem is that on all subsequent times that it comes up I get the following exception being thrown. | | 19:50:39,919 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' | | 19:50:41,950 WARN [JDBCStateManager] Error initialising state manager db | | org.jboss.mq.SpyJMSException: Could not commit/rollback a transaction with the transaction manager.; - nested throwable: (javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state) | | at org.jboss.mq.sm.jdbc.JDBCStateManager$JDBCSession.close(JDBCStateManager.java:638) | | at org.jboss.mq.sm.jdbc.JDBCStateManager.initDB(JDBCStateManager.java:485) | | at org.jboss.mq.sm.jdbc.JDBCStateManager.startService(JDBCStateManager.java:393) | |
[jboss-user] [JBoss Seam] - Trapping Seam Remoting AJAX errors.
Um so is there a way to trap these in some form of exception handler callback? I didn't see any in the documentation and we get a timeout sometimes and want to disable the annoying popup. S.D. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109126#4109126 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109126 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Can not find samples for 2.0.2.GA
Dear all, Is there any samples like 1.2.1.GA? I could not find this in the distribution package. Or can I use the samples of 1.2.1.GA for a kickstart though I use 2.0.2.GA? thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109135#4109135 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109135 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - NamedQuery not known in Component
We are trying to implement resourcebundle in database. Everything works fine, but it seems that our entitymanager is not able to resolve any namedqueries in resourceLoader. Is it some kind of instancing issue with SMPC entitymanager? Or something else? components.xml | ?xml version=1.0 encoding=UTF-8? | components xmlns=http://jboss.com/products/seam/components; | xmlns:core=http://jboss.com/products/seam/core; | xmlns:persistence=http://jboss.com/products/seam/persistence; | xmlns:security=http://jboss.com/products/seam/security; | xmlns:transaction=http://jboss.com/products/seam/transaction; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation= | http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd | http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd | http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd | http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd; | | core:init jndi-pattern=java:comp/env/soov/#{ejbName}/local debug=true/ | persistence:entity-manager-factory name=entityManagerFactory persistence-unit-name=soovPU/ | persistence:managed-persistence-context name=em auto-create=true | entity-manager-factory=#{entityManagerFactory}/ | transaction:ejb-transaction/ | | core:manager conversation-timeout=12 | concurrent-request-timeout=500 | conversation-id-parameter=cid/ | | security:identity authenticate-method=#{authenticator.authenticate}/ | | /components | Messages.java (Entity) | @Entity | @Table(name = MESSAGES) | @NamedQueries({ | @NamedQuery(name = keys, query = select m.messagekey from Messages m where + | m.channel = :channel and + | m.locale = :locale), | @NamedQuery(name=lamp,query=select m from Messages m), | @NamedQuery(name = value, query = select m.message from Messages m where + | m.channel = :channel and + | m.locale = :locale and m.messagekey = :messagekey) | }) | public class Messages implements Serializable { | ... | } | And resourceloader: | @Name(org.jboss.seam.core.resourceLoader) | @BypassInterceptors | public class MessageResourceLoader extends ResourceLoader { | | @Override |public ResourceBundle loadBundle(final String bundleName) { | return new ResourceBundle() { | | public EnumerationString getKeys() { | Locale locale = org.jboss.seam.core.Locale.instance(); | EntityManager entityManager = (EntityManager) Component.getInstance(em); | List resources = entityManager.createNamedQuery(keys) |.setParameter(channel, soov) |.setParameter(locale, locale.toString()) |.getResultList(); | return Collections.enumeration(resources); | } | | protected Object handleGetObject(String key) { | Locale locale = org.jboss.seam.core.Locale.instance(); | EntityManager entityManager = (EntityManager) Component.getInstance(em); | entityManager.createNamedQuery(lamp); | try { | /* return entityManager.createNamedQuery(value) | .setParameter(channel, soov) | .setParameter(locale, locale.toString()) | .setParameter(messagekey, key) | .getSingleResult();*/ | return null; | } catch (NoResultException e) { |return null; | } | } | }; Stacktrace: | Problem in renderResponse: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp | javax.el.ELException: /components/main/search.xhtml: org.hibernate.MappingException: Named query not known: lamp | at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:50) | at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:581) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:588) | at
[jboss-user] [JBoss Tools (users)] - Re: comment/uncomment in .xhtml
Put this in your web.xml to cause comments to be completely removed from the rendered page (so the EL inside them doesn't get evaluated). |context-param | param-namefacelets.SKIP_COMMENTS/param-name | param-valuetrue/param-value |/context-param | Seems like this would be the more sensible default that not skipping them, but such is how it works... FWIW, It's a Seam FAQ: http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamProblemsFAQ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109119#4109119 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109119 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can we use Hibernate and define its query/database updat
yes we can do that by using Hibernate Named Queries Concept. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109117#4109117 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109117 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - org.jboss.cache.lock.TimeoutException: write lock for / coul
Hi all, I'm trying to use JBoss Cache with optimistic locking as 2nd level cache for hibernate. I have a test case where a multi-threaded client inserts new objects into the database, with a database auto-sequence primary key. My test case passes with no issues when using pessimistic locking, but as soon as I switch to optimistic locking, I get the following: 17:47:25,831 WARN [TreeCache] replication failure with method_call optimisticPrepare; id:18(GlobalTransaction:172.31.100.1:34099:14, [_put; id:38(GlobalTransaction:172.31.100.1:34099:14, /EntityBean_jar,SimpleEntityBean/com/intuit/spc/bhp/entity/SimpleEntityBean/com.intuit.spc.bhp.entity.SimpleEntityBean#3144, item, CacheEntry(com.intuit.spc.bhp.entity.SimpleEntityBean)[Thu Nov 29 17:47:10 PST 2007,1234567890], true, [EMAIL PROTECTED] [current=Thu Nov 29 17:47:10 PST 2007, previous=null, src=SingleTableEntityPersister(com.intuit.spc.bhp.entity.SimpleEntityBean)])], null, 172.31.100.1:34099, false) exception org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/, caller=GlobalTransaction:172.31.100.1:34099:14, lock=write owner=GlobalTransaction:172.31.100.1:34101:14 (activeReaders=0, activeWriter=WorkerThread#3[127.0.0.1:38225], waitingReaders=0, waitingWriters=1, waitingUpgrader=0) Please note that I have 4 client threads (JMeter) sending requests in through a JSP that calls an SLSB, but there should be no concurrency issue, given that all request amount to database inserts and it's the same entity bean for all of them, thereby making the cache objects peers (one is not the parent of another). The error message implies that the cache is writing or updating something at the root, but I don't know why that would be. My SLSB code looks like this: SimpleEntityBean entityBean = new SimpleEntityBean(); entityBean.setTimestamp(Calendar.getInstance().getTime()); em.persist(entityBean); return entityBean.getId(); Your thoughts / suggestions would be greatly appreciated! Thanks, Babak View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109116#4109116 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109116 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:decorate looses form values on validation error
I should mention this is based around Seam 2.0.0.GA and JBoss 4.2.2.GA Thanks, David View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109115#4109115 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Handling dynamic data in RDBMS (i.e. no direct column mappin
Hi all, I'm actually a bloody beginner in Seam but somehow managed to succesfully develop my first web app in Seam. Right now I'm trying to solve a problem where I need some further advice. I have chosen a somewhat dynamic approach to save additional data of a user in the RDBMS. There are four main tables. user (id, name) | record (id, user_id) | data_value (id, record_id, data_type_id, value) | data_type (id, name, description) | | The data_type table is a simple table that holds a list of possible fields so to say where you can save values for. Those values should be saved for a user. Each user has its own record which consists of defined data_types. The relation data_value brings it all together, this is where the actual values for the defined data_values are stored. | | According SQL Create-Statements (MySQL): http://pastebin.com/f5883f89d | According Entity Beans: http://pastebin.com/m501ed44e | | I created a SLSB to retrieve a list of DataValue objects from the db. | | @Stateless | | @Name(recordList) | | public class RecordListAction implements RecordList, Serializable { | | | | private static final long serialVersionUID = 1L; | | | | @PersistenceContext | | private EntityManager em; | | | | @In | | private User user; | | | | @DataModel | | private ListDataValue dataValues; | | | | // needed to prevent spurious warning | | // getResultList() returns a non generic version of List | | @SuppressWarnings(unchecked) | | @Factory(dataValues) | | public void getDataValues() { | | dataValues = em.createQuery( | | select dv from DataValue dv | | + inner join dv.record as record | | + inner join dv.dataType as dataType | | + where record.user.id = :userId) | | .setParameter(userId, user.getId()) | | .getResultList(); | | } | | | | @Remove | | public void destroy() { | | } | | } | | I am able to output this list in a facelet. | | h:dataTable id=dataValues var=dataValue value=#{dataValues} rendered=#{dataValues.rowCount gt 0} | | h:column | | f:facet name=headerName/f:facet | | h:outputText value=#{dataValue.dataType.name} / | | /h:column | | h:column | | f:facet name=headerValue/f:facet | | h:outputText value=#{dataValue.value} / | | /h:column | | /h:dataTable | And now it comes to the interesting part (finally!). I want to be able to modify (for now; creating and deleting should be integrated later) the DataValue objects. Everything I did before was straightforward, i.e. retrieve one row of a table and edit its columns. But now I retrieve one or more rows with two columns (one with the data_type.name and one with the data_value.value) and want to edit them. | | I currently do not know where to start solving this problem. Maybe anyone of you can give me some hints to start? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109113#4109113 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109113 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:decorate looses form values on validation error
Hey All, I have been trying to get this to work for the last two days, a little disconcerting. I am sure its something I have done wrong but im not sure what it is. When I use the s:decorate component to display an inline error message, upon displaying the inline error message correctly the forms value is suddenly cleared. Standard input components not wrapped inside a s:decorate do not exhibit this problem so I don't believe its related to page flow or scope, but im not certain what the issue is. The xhtml page is as follows: (NB: This isn't the desired form layout, this is an example to prove that s:decorate was the issue and that standard inputText / outputText in a panel worked fine) | h:form id=registerAgentForm | | rich:panel | f:facet name=headerRegister Agent/f:facet | | h:panelGrid columns=2 rowClasses=prop columnClasses=name,value | | h:column | h:outputText value=Agent Reference:/ | /h:column | h:column | h:inputText id=agentref value=#{agent.agentReference} required=true/ | s:decorate for=agentref template=/WEB-INF/templates/layout/edit.xhtml/ | /h:column | | h:column | h:outputText value=Name:/ | /h:column | h:column | h:inputText id=agentname value=#{agent.name} required=true/ | s:decorate for=agentname template=/WEB-INF/templates/layout/edit.xhtml/ | /h:column | | /h:panelGrid | | s:decorate id=nicDecoration template=/WEB-INF/templates/fragment/edit.xhtml | ui:define name=labelNIC:/ui:define | h:inputText id=nic value=#{agent.nic} required=true/ | /s:decorate | | div style=clear:both/ | /rich:panel | | h:commandButton type=submit value=Register action=#{manageAgentAction.register}/ | | /h:form | The contents of edit.xhtml (pretty standard implementation) are as follows: | ui:composition xmlns=http://www.w3.org/1999/xhtml; | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:h=http://java.sun.com/jsf/html; | xmlns:f=http://java.sun.com/jsf/core; | xmlns:s=http://jboss.com/products/seam/taglib; | | div class=prop | | s:label styleClass=name #{invalid?'errors':''} | ui:insert name=label/ | s:span styleClass=required rendered=#{required}*/s:span | /s:label | | span class=value #{invalid?'errors':''} | s:validateAll | ui:insert/ | /s:validateAll | /span | | s:message styleClass=error errors/ | | /div | | /ui:composition | Thanks in advance! David View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109114#4109114 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109114 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - can't find datasource problem when mirgrate from seam1.2 to
My application is working very well until i decide to migrade from seam1.2 to seam2, i am stuck by hibernate configuration problem in seam2, which always sent the message Can't find the data source , I have to list the related configuration files here, I also check your forum, it seems that there are other people are asking the similar question before , but with no good answer. 1. components.xml under WEB-INF directory of my application | | ?xml version=1.0 encoding=UTF-8? | components xmlns=http://jboss.com/products/seam/components; | xmlns:core=http://jboss.com/products/seam/core; | xmlns:bpm=http://jboss.com/products/seam/bpm; | xmlns:persistence=http://jboss.com/products/seam/persistence; | xmlns:security=http://jboss.com/products/seam/security; | xmlns:transaction=http://jboss.com/products/seam/transaction; | xmlns:framework=http://jboss.com/products/seam/framework; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd | http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd | http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd | http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd | http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd | http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.0.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd; | | core:init debug=true transaction-management-enabled=false / | | !-- 120 second conversation timeout -- | core:manager conversation-timeout=180 | concurrent-request-timeout=500 conversation-id-parameter=cid / | | !-- this is related with hibernate.cfg.xml which install the hibernate entity manager-- | | persistence:hibernate-session-factory | name=hibernateSessionFactory / | | persistence:managed-hibernate-session name=session | session-factory-jndi-name=java:/HibernateSessionFactory | auto-create=true / | | | /components | 2.hibernate.cfg.xml and seam.properties deployed directly in jar file of my application | hibernate-configuration | session-factory name=java:/HibernateSessionFactory | property name=hibernate.show_sqlfalse/property | property name=connection.datasourcejava:/CPI_SqlserverDatasource/property | | ... | /hibernate-configuration | 3.my ds.xml file for data source, i deploy it into the {Tomcat6.home}\lib\deploy directory | | ?xml version=1.0 encoding=UTF-8? | datasources | | local-tx-datasource | jndi-nameCPI_SqlserverDatasource/jndi-name | connection-urljdbc:sqlserver://127.0.0.1:1433;DatabaseName=CPI_NEW;integratedSecurity=true;applicationName=CPI UI;/connection-url | | driver-classcom.microsoft.sqlserver.jdbc.SQLServerDriver/driver-class | | min-pool-size5/min-pool-size | max-pool-size20/max-pool-size | transaction-isolationTRANSACTION_READ_COMMITTED/transaction-isolation | idle-timeout-minutes0/idle-timeout-minutes | /local-tx-datasource | | /datasources | 4. faces-config.xml under WEB-INF directory of my application | | ?xml version='1.0' encoding='UTF-8'? | faces-config version=1.2 | xmlns=http://java.sun.com/xml/ns/javaee; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd; | | | application | locale-config | | default-localeen/default-locale | supported-localeen/supported-locale | supported-localezh/supported-locale | | /locale-config | | /application | | | | /faces-config | 5. context.xml under the META-INF directory of my application | ?xml version=1.0 encoding=UTF-8? | Context override=true | Manager | className=org.apache.catalina.session.StandardManager | distributable=false | maxActiveSessions=-1 | pathname= | / | /Context | | the exception i got is 严é: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener org.hibernate.HibernateException: Could not find datasource: java:/CPI_SqlserverDatasource at
[jboss-user] [JCA/JBoss] - MSSQL XA datasource throws RollbackException on cluster star
I am trying to get the Microsoft 1.2 JDBC driver configured for xa-datasource to function as the DefaultDS for an 4.2.1.GA jboss cluster, and I have run into an issue that I hope you can help with. On the second and all subsequent attempts at starting the server I get a javax.transaction.RollbackException. I have done no other processing, I just shut it down and start it back up. If I drop all of the tables that JBoss creates, and start the server there are no errors reported. I have followed the directions to turn on trace for jdbc and ta, but I see no difference in the output. First let me document the setup which I have pieced together from multiple sources. I think this is getting close. It may contain steps that are not required, but I know this is close to working. Host is: Microsoft Windows Server 2003 Standard Edition Service Pack 2 Intel Xeon 2.80GHz 1.00 GB of Ram | | | 1.) I installed SQL Server 2005 evaluation | | 2.) Downloaded and expanded the 1.2 driver package released 10/15/2007 http://www.microsoft.com/downloads/details.aspx?FamilyId=C47053EB-3B64-4794-950D-81E1EC91C1BAdisplaylang=en | | 3.) Copied the appropriate dll to the Binn directory soc SQL Server as documented in the comments of the sqljdbc_1.2\enu\xa\xa_install.sql file from the directory where I expanded the JDBC package. | | 4.) Ran the T-SQL script in the xa directory of the JDBC driver. | | 5.) Turned on the MS DTC service http://www-1.ibm.com/support/docview.wss?uid=swg21221370 | | 6.) Created a boss user -- Make sure to turn enable SQL login, and uncheck the box that says enforce the log in policy. | | 7.) Created a jboss database, and made my jboss user the owner of it. | | 8.) Modified the jboss user to have access to the master and granted the SqlJDBCXAUser, then made the jboss database the default database. | | 9.) Restarted SQL Server. | | 10.) Copied the jdbc driver to server/all/lib | | 11.) Deleted the hsqldb-ds.xml file | | 12.) Copied the docs/examples/jca/mssql-da-ds.xml file to the deploy directory. It required some major surgery to get right. I eventually wound up with this:datasources | | | xa-datasource | | | jndi-nameDefaultDS/jndi-name | | | track-connection-by-tx/ | | | isSameRM-override-valuefalse/isSameRM-override-value | | | xa-datasource-classcom.microsoft.sqlserver.jdbc.SQLServerXADataSource/xa-datasource-class | | | xa-datasource-property name=ServerNamelocalhost/xa-datasource-property | | | xa-datasource-property name=DatabaseNamejboss/xa-datasource-property | | | xa-datasource-property name=SelectMethodcursor/xa-datasource-property | | | xa-datasource-property name=Userjboss/xa-datasource-property | | | xa-datasource-property name=Passwordjboss/xa-datasource-property | | | xa-datasource-property name=URLjdbc:sqlserver://localhost:1433/xa-datasource-property | | | !-- corresponding type-mapping in the standardjbosscmp-jdbc.xml -- | | | metadata | | | type-mappingMS SQLSERVER2000/type-mapping | | | /metadata | | | /xa-datasource | | | /datasources | | 13.) In the deploy-hasingleton directory I deleted the hsqldb-jdbc-state-service.xml file | | 14.) Copied the docs\examples\jms\mssql-jdbc2-service.xml | | 15.) Changed the datasource in mssql-jdbc2-service.xml to DefaultDS | | This being my first attempt ( Yea right :) ) it of course came up with no errors. | | The problem is that on all subsequent times that it comes up I get the following exception being thrown. | | 19:50:39,919 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' | | 19:50:41,950 WARN [JDBCStateManager] Error initialising state manager db | | org.jboss.mq.SpyJMSException: Could not commit/rollback a transaction with the transaction manager.; - nested throwable: (javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state) | | at org.jboss.mq.sm.jdbc.JDBCStateManager$JDBCSession.close(JDBCStateManager.java:638) | | at org.jboss.mq.sm.jdbc.JDBCStateManager.initDB(JDBCStateManager.java:485) | | at org.jboss.mq.sm.jdbc.JDBCStateManager.startService(JDBCStateManager.java:393) | | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[jboss-user] [Messaging, JMS JBossMQ] - is there a way i can recall messages sent to the queue ?
i am a newbie to mq. i sent a delayed message to the queue(use JMS_JBOSS_SCHEDULED_DELIVERY) then another app found that the message should be cancel so how to archive that ? thank u very much ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109127#4109127 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109127 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trapping Seam Remoting AJAX errors.
This is an outstanding issue that has been on the backburner for a while, unfortunately: http://jira.jboss.org/jira/browse/JBSEAM-633 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109128#4109128 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109128 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: URGENT -JBoss limitation in accepting messages.
That's where I exactly found all steps of my configuration. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109145#4109145 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mod_jk works, but only with localhost in the workers.pro
I have no experience with mod_jk. But the problem you mention appears to be related to the way you start JBoss. Have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss42FAQ. Use the -b option to start JBoss. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109148#4109148 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109148 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: getInitialContext with Stateful session bean throws exce
anonymous wrote : I am running JBoss 4.0.4.GA using Java 1..6 JBoss is not yet fully qualified to use Java6. I would recommend you to switch to Java5. anonymous wrote : Caused by: java.lang.ClassNotFoundException: [Lorg.jboss.aop.advice.Interceptor The exception appears to be because, you dont have the appropriate JBoss jar files in the client's classpath. Make sure you add those jars to the client's classpath. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109149#4109149 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109149 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: org.apache.commons.logging.impl.Log4JLogger does not imp
anonymous wrote : but when I include it in the ear I get the Log4JLogger does not implement Log Looks like a classloading issue. JBoss already has the commons-logging.jar in it's server lib folder. Since your application too includes it, the classes get loaded from 2 different classloaders. Removing the commons-logging.jar from your application is the easiest way to get rid of this exception. anonymous wrote : | If I remove the commons-logging.jar from my jsf.war and deploy within the .ear then the error for Log4JLogger goes away but I get an Exception processing TLD at resource path /WEB-INF/jsf_core.tld in context... This exception might be because of some other reason. anonymous wrote : | Trace when the logging-commons is removed from the cpWeb.war/WEB-INF/lib: | | 09:42:06,687 ERROR [Context] Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/jsf_core.tld in context /cpWeb | javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/jsf_core.tld in context /cpWeb | at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:549) | at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:301) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4282) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) Is that tld file available at that location? Is this all you get in the exception stacktrace? If there's more to the stacktrace then post the entire thing here. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109150#4109150 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109150 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: logout
Are you doing a programatic login using the custom login module or is it container managed? Programatically, LoginContext object has a logout method which you can call from your application. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109155#4109155 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109155 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: Can't get Trace output from JBoss Login Modules
Sorry, i should have used the Preview button before posting. Here's what i meant: root | priority value=INFO/ | appender-ref ref=FILE/ | appender-ref ref=CONSOLE/ | /root You have set the priority level of the root logger to INFO. TRACE level is lower than info and hence wont make it to the log file. Remove the priority setting from the root configuration and see if the trace logs are visible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109154#4109154 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109154 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: External Client and Seam Security
About it being a common scenario or not... Given the following: - I'd like to have one single EJB Entity bean model for my application. - My EJB Entity beans is annotated with the @Restrict tag for use in Seam. - My Entity beans is configured to use Seam Entity Security (orm.xml). - I have a non-Seam client who uses the same Entity beans as Seam. Since my non-Seam client isn't authenticated through Seam, the Seam EntityListener will always throw AuthorizationException on Identity.instance().checkPermission(...). This was the initial problem which started the effort to login and use Seam security from non-Seam client. The application have both JSF clients and Quartz POJO clients using the same Entity beans which is (IMHO) not a very uncommon scenario :-) Anyways, I'll file it to JIRA. Thanks a lot Shane for the help! Cheers! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109152#4109152 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109152 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: Can't get Trace output from JBoss Login Modules
anonymous wrote : | | appender-ref ref=FILE/ | appender-ref ref=CONSOLE/ | You have set the priority level of the root loggers to INFO. TRACE level is lower than info and hence wont make it to the log file. Remove the priority setting from the root configuration and see if the trace logs are visible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109153#4109153 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109153 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Problem when applying themes to the portal
Hi, I am new to the portal development. I tried with HelloWorldPortal example already available in jboss site and it worked fine. But when I tried to add themes it is showing error but it is working fine. The error logged is shown below. Please let me know what may be the possible cause of this error. The changes I did in helloworld-object.xml to apply theme is ?xml version=1.0 encoding=UTF-8? parent-ref/ if-existsoverwrite/if-exists portal-nameHelloPortal/portal-name !-- Set the layout for the default portal -- !-- see also portal-layouts.xml -- layout.id generic !-- Set the theme for the default portal -- !-- see also portal-themes.xml -- theme.id havana-affair !-- set the default render set name (used by the render tag in layouts) -- !-- see also portal-renderSet.xml -- theme.renderSetId divRenderer !-- set the default strategy name (used by the strategy interceptor) -- !-- see also portal-strategies.xml -- layout.strategyId maximizedRegion supported-modes view edit help /supported-modes supported-window-states window-statenormal/window-state window-stateminimized/window-state window-statemaximized/window-state /supported-window-states page-namedefault/page-name window-nameMyPortletWindow/window-name instance-refMyPortletInstance/instance-ref center 0 . . . . and after I deploy it is showing the following error 12:02:21,709 INFO [TomcatDeployer] deploy, ctxPath=/helloworldportal, warUrl=.../tmp/deploy/tmp21194helloworldportal-exp.war/ 12:02:22,053 INFO [DefaultLoadEventListener] Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.jboss.portal.core.impl.model.portal.ObjectNode#139] at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:375) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:143) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:193) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878) at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:846) at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266) at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:196) at org.hibernate.cache.StandardQueryCache.get(StandardQueryCache.java:130) at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2085) at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2050) at org.hibernate.loader.Loader.list(Loader.java:2020) at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569) at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283) at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:305) at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNodeNoCache(PersistentPortalObjectContainer.java:266) at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:294) at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:246) at org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.setSecurityBindings(AbstractPortalObjectContainer.java:182) at org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.configure(PortalObjectMetaData.java:195) at org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.create(PortalObjectMetaData.java:130) at org.jboss.portal.core.deployment.jboss.ObjectDeployment.org$jboss$portal$core$deployment$jboss$ObjectDeployment$doStart$aop(ObjectDeployment.java:235) at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java) at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126) at
[jboss-user] [JBoss Seam] - Re: By clicking every row of dataTable, show Popup to edit i
hi paradigmz, thank a lot for your best solution! it works now! a step forward! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109160#4109160 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109160 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: load image in portlet
Hy, I assume that you have an image-Folder in your WAR File. Then use this code-snippet in your JSP, or adapt it in your doView Method. | img src=%= request.getContextPath() %/images/imagename.gif / | Greetings Soon5 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109157#4109157 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109157 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Charts
If you want very cool, interactive charts, you might try http://www.fusioncharts.com/free/. Here is an example screenshot: https://www.cs.sbcc.edu/strenn/cs129/TopOrdersFusionChart.jpg All you have to do is provide the data in XML format, which I did with a standard facelet and ui:repeat: | ui:composition xmlns=http://www.w3.org/1999/xhtml; xmlns:s=http://jboss.com/products/seam/taglib; | xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; | xmlns:rich=http://richfaces.org/rich; xmlns:fn=http://java.sun.com/jsp/jstl/functions; | | graph caption='Top Sales Orders' xAxisName='' yAxisName='Sales Subtotal' showNames='1' rotateNames='1' decimalPrecision='0' | formatNumberScale='0' numberPrefix=$ bgSWF='img/ContentBackgroundWide.jpg' baseFont=Arial baseFontSize=12 | outCnvBaseFont=Arial outCnvsBaseFontSize=16 animation=1 | ui:repeat value=#{topOrders.bySubTotal} var=topOrder | set name='#{topOrder.customerName}' value='#{topOrder.subtotal}' color=#{colorManager.nextColor} | link=SalesOrderView.seam?salesOrderId=#{topOrder.id} | hoverText=#{topOrder.customerName}: Order ##{topOrder.id} on #{fn:substring(topOrder.orderDate, 0, 10)} / | /ui:repeat | /graph | | /ui:compositionanonymous wrote : | | | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109161#4109161 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109161 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Getting spring WebApplicationContext of another application
I have 4.2.1.GA. I have deployed alfresco.war file. Now I am trying to get the WebApplicationContext of alfresco from another web application AlfrescoWebClient using following code: | ServletContext alfrescoWebContext = application.getContext(/alfresco); | System.out.println(alfrescoWebContext==+alfrescoWebContext); | WebApplicationContext alfrescoSpringContext = WebApplicationContextUtils.getRequiredWebApplicationContext(alfrescoWebContext); | out.println(alfrescoSpringContext); | But I am getting this exception: java.lang.IllegalStateException: Root context attribute is not of type WebApplicationContext: org.springframework.web.context.support.XmlWebApplicationContext: display name [Root WebApplicationContext]; startup date [Fri Nov 30 12:07:25 GMT+05:30 2007]; root of context hierarchy; config locations [classpath:alfresco/application-context.xml,classpath:alfresco/web-client-application-context.xml,classpath:alfresco/web-scripts-application-context.xml,classpath:web-services-application-context.xml] I googled (http://forum.springframework.org/archive/index.php/t-11230.html) and found out that this is due to Classloading problems. I have included same spring jar file in both alfresco.war and AlfrescoWebClient.war. These are the only 2 applications in my jboss that use spring. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109158#4109158 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109158 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ajax and EntityHome (Conversation) bug?!
hi, my problem solved! you can view the solution at http://www.jboss.org/index.html?module=bbop=viewtopicp=4107398 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109159#4109159 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109159 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: where do i get plug's for Eclipse Europa regarding JBOSS
Try jboss tools/red hat developer studio - http://labs.jboss.com/tools/ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109162#4109162 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109162 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problems
The real basics are not that different. The nodes are on the left just like with the previous designer. Putting an action on a node is in a different place, but everything for all nodes is in the properties pane/tab so you can always find things there. You, as an intelligent person, should be fairly quickly up to speed with this new editor. Regarding the forms... are xhtml files generated? and is the forms.xml file filled with references to these files? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109163#4109163 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109163 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user