[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools problems Ubuntu
sorry - never seen that error about IA32 bit sounds weird ,( I dont understand what you mean with your last question that it cant create files. Are the folders write protected or ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118928#4118928 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118928 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Integrating JOBOSS IDE WITH JBOSS 4.2.2 Server
what do you mean does not recgonize? Did you add the server via New Server ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118926#4118926 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118926 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing EJB3s through a firewall
Thanks for your advice. Actually I have a working configuration, but with the inconvenience of having to configure remote bindings in the jboss.xml file of my EAR for all beans I want to remotely access: | TestBean | | socket://:3873 | | | This is inconvenient because developers don't necessarily know where the EAR is going to be deployed at build time. The application deployer is therefore forced to make configurations within the EAR before deploy. I wonder if setting -Djava.rmi.server.useLocalHostname=true has any effect if having set -Djava.rmi.server.hostname=? Seems like no according to http://manuales.gfc.edu.co/java/manual/guide/rmi/faq.html#nethostname My configuration: * JBossAS 4.2.1 GA * Using -Djava.rmi.server.hostname= when starting JBossAS * Using -b 0.0.0.0 when starting JBossAS * Entry in C:\Windows\System32\drivers\etc\hosts * Remote binding in jboss.xml for all beans remotely accessed | socket://:3873 | | Regards, Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118922#4118922 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118922 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Trouble connecting to built-in HSQL using SQuirreL
I'm following the instructions at http://wiki.jboss.org/wiki/Wiki.jsp?page=NukesUsingHSQLDB to connect to the interal HSQL built-into JBoss. I want to see the results of my interaction with the web interface. I'm running the initial helloworld application from "JBoss Seam" by Yuan and Heute. When I try to connect to the internal HSQL database using SQirreL, I get "JBoss: socket creation error". What am I doing wrong? Thanks, Siegfried | ava.sql.SQLException: socket creation error | at org.hsqldb.jdbc.Util.sqlException(Unknown Source) | at org.hsqldb.jdbc.jdbcConnection.(Unknown Source) | at org.hsqldb.jdbcDriver.getConnection(Unknown Source) | at org.hsqldb.jdbcDriver.connect(Unknown Source) | at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:133) | at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.execute(OpenConnectionCommand.java:97) | at net.sourceforge.squirrel_sql.client.mainframe.action.ConnectToAliasCommand$SheetHandler.run(ConnectToAliasCommand.java:279) | at net.sourceforge.squirrel_sql.fw.util.TaskExecuter.run(TaskExecuter.java:82) | at java.lang.Thread.run(Thread.java:619) | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118919#4118919 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118919 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam gen in eclipse?
Hello Forum, I'm trying to build a CRUD web application using seam-gen. I watched these two movies: http://www.jboss.com/products/seam/SeamHBTools.html http://michaelyuan.com/download/seam/rhds-20070306.html In michael yuans example there is a button "Seam Gen" on the menu bar in his eclipse. How do I get this button I thought I have all plugins. In the JBoss example there is a button "Generate JBoss Seam skeleton app" in the window Hibernate Code Generation... / Exporters. I don't have that either. I have eclipse webtools and JBPM GPD, JbossIDE and TestNG plugin installed. Is there anything missing? Thanks and best regards, Mussie View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118917#4118917 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118917 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Setting max sessions for MDB
I've tried to use annotations to set the max sessions with not successl. Every time I test sending several messages at one time the max sessions shown in Jboss console and in the server log is the one coming from the standardjboss.xml file. Any idea? TIA, ean13 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118915#4118915 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118915 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - selectOneRadio group separated by paragraphs, images etc
Is there a way to create a logical group of radio buttons that are not grouped into a table? In other words, I need the radio buttons to have the same id but I want to be able to place paragraphs, tables, images, etc betwixt them[radio buttons] rather than have them grouped horizontal or vertically in a table. The only workarounds seems to be to render single radio buttons and then use javascript to create the single selection at at time behaviour or creating a custom component. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118916#4118916 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118916 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - JBPM-3.2.2 Migrated to Oracle 10g, Hibernate_Sequence is acce
Hi All, I have migrated JBPM in Oracle 10g but I have encountered a problem regarding Hibernate_sequence that has been provided with the given Oracle script. Actually when my JBPM was associated with Hypersonic after each deployment the Process_ID is getting increased evenly and with an interval of 1. e.g Process A if I deploy it gets it's ID as 1,then the next process deployed get it's ID 2 and so on.But in Oracle,the scenario is completely uneven. I changed the hibenate.cfg.xml and made the following changes..Uncomment the following section true | true | true Then I found that due to dependency of different tables and as the single sequence is being used by every table,sequence is accessed globally and that's why this strange behaviour is reflected in Oracle. As compared to Hypersonic,It doesn't follow the SQL-200n standard.Sequence never accessed globally even same sequence is accessed by different table. To eradicarte the problem what may be the possible solution? Any comment and suggestion is most welcome Thanks Soumya View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118914#4118914 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118914 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - What is wrong with my local ejb JNDI lookup code (or the ejb
I'm trying to perform a JNDI lookup on a local stateless session bean. When I use the jboss jmx console to check the JNDI name space I get the following: anonymous wrote : +- HandleDelegate (class: org.jboss.proxy.ejb.handle.HandleDelegateImpl) | +- ORB (class: org.jacorb.orb.ORB) | +- env (class: org.jnp.interfaces.NamingContext) | | +- ejb (class: org.jnp.interfaces.NamingContext) | | | +- DddEJBBeanLocal[link -> local/[EMAIL PROTECTED] (class: javax.naming.LinkRef) | | +- DddEJBRemoteHome[link -> DddEJBBean] (class: javax.naming.LinkRef) The code I am using for the JNDI lookup is as follows: private DddEJBLocal lookupDddEJBBean() { | try { | Context c = new InitialContext(); | DddEJBLocalHome rv = (DddEJBLocalHome) c.lookup("java:comp/env/ejb/DddEJBBeanLocal"); | return rv.create(); | } catch (NamingException ne) { | java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", ne); | throw new RuntimeException(ne); | } catch (CreateException ce) { | java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", ce); | throw new RuntimeException(ce); | } | } The ejb-jar.xml is as follows: | http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd";> | | | DddEJBSB | DddEJBBean | ddd.ejb.DddEJBRemoteHome | ddd.ejb.DddEJBRemote | ddd.ejb.DddEJBLocalHome | ddd.ejb.DddEJBLocal | ddd.ejb.DddEJBBean | Stateless | Container | | | DddEJBBean | dddEAR-ejb.jar#DddEJBBean | DddEJBRemoteHome | Session | ddd.ejb.DddEJBRemoteHome | ddd.ejb.DddEJBRemote | | | | DddEJBBean | dddEAR-ejb.jar#DddEJBBean | ejb/DddEJBBeanLocal | Session | ddd.ejb.DddEJBLocalHome | ddd.ejb.DddEJBLocal | | | | | | | | DddEJBBean | * | | Required | | | I get the the following error: anonymous wrote : javax.naming.NameNotFoundException: ejb not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) | at org.jnp.server.NamingServer.getObject(NamingServer.java:543) | at org.jnp.server.NamingServer.lookup(NamingServer.java:267) | at org.jnp.server.NamingServer.lookup(NamingServer.java:270) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at ddd.ejb.DddHelper.lookupDddEJBBean(DddHelper.java:32) QUESTION#1: What is wrong with my lookup code or the ejb-jar.xml configuration? QUESTION#2 Are proprietary JBoss configuration files (e.g., jboss.xml) required in order to successfully perform a JNDI lookup on the above mentioned bean? Thanks for any help! --sd [More information... if needed] ***ddd.ejb.DddEJBBean*** package ddd.ejb; | | import javax.ejb.SessionBean; | import javax.ejb.SessionContext; | | /** | * | * @author sairndain | */ | public class DddEJBBean implements SessionBean { | | private SessionContext context; | | // ; | | // TODO Add code to acquire and use other enterprise resources (DataSource, JMS, enterprise bean, Web services) | // TODO Add business methods or web service operations | | /** | * @see javax.ejb.SessionBean#setSessionContext(javax.ejb.SessionContext) | */ | public void setSessionContext(SessionContext aContext) { | context = aContext; | } | | /** | * @see javax.ejb.SessionBean#ejbActivate() | */ | public void ejbActivate() { | | } | | /** | * @see javax.ejb.SessionBean#ejbPassivate() | */ | public void ejbPassivate() { | | } | | /** | * @see javax.ejb.SessionBean#ejbRemove() | */ | public void ejbRemove() { | | } | | // ; | | /*
[jboss-user] [JBoss Seam] - Re: Custom interceptors do not work with super classes
Is there anyone from the SEAM team that could tell me what I should do about this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118912#4118912 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118912 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Unable to use @Asynchronous annotation on Glassfish serv
No, I couldn't get it to work so I ended up creating an EJB Timer to complete my task. I would like to get it working with @Asynchronous if you have some more ideas for me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118911#4118911 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118911 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: j_security_check and the generated LoginContext
You cannot change the SimplePrincipal. You set the name in the Principal via a constructor during login. Also It has only a getName() method. So answer is it is a big security loophole if you are allowed to change the SimplePrincipal name. So not possible View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118909#4118909 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118909 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - portal setup on oracle
11:41:54,640 INFO [STDOUT] Hibernate: update jbp_cms_repositoryentry set FSENTRY_NAME=?, FSENTRY_PATH=?, FSENTRY_DATA=?, FSENTRY_LASTMOD=?, FSENTRY_LENGTH=? where PK=? 11:41:54,640 WARN [JDBCExceptionReporter] SQL Error: 17090, SQLState: null 11:41:54,640 ERROR [JDBCExceptionReporter] ä¸å 许çæä½: streams type cannot be used in batching 11:41:54,640 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session org.hibernate.exception.GenericJDBCException: could not update: [org.jboss.portal.cms.hibernate.RepositoryEntry#37] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118908#4118908 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118908 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be
"[EMAIL PROTECTED]" wrote : My tip is to avoid starting conversations from navigation links (those links that take you to other areas of the app), always make navigation disable conversation propagation, and just use conversations *within* each area of the app.Excellent tip! Thank you very much, Pete. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118907#4118907 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118907 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Propagating identity from Swing application
what exactly do you mean by identity ? Username / password ? Yes possible View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118906#4118906 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118906 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Permissions
Hi, I'm new to Portals in general, and am trying to understand how permissioning usually works. I don't believe it's part of JSR-168? If not, does every Portal server implement it differently? For example, I've looked at Liferay a little, and see that it has the concepts of Organizations, Locations etc.. Does JBoss Portal have similar concepts? Use different concepts? We would like to be as portable as possible across Portal servers, in case we are forced to switch. What is the best way to achieve this when it comes to setting up permissioning? cheers, David PS Whoops - I originally posted in the Portal Dev forum View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118905#4118905 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118905 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Transactions broken? Trivial Hibernate example with EJB3 and
Hello folks, I'm trying to create a trivial example of a transaction working correctly with MySQ L5.0.x and local-tx-datasource and Connector/J 3.x. I'm using Hibernate and EJB3, and JBoss 4.0.x. I cannot get transactions to rollback w/ SessionContext.setRollbackOnly() OR by throwing an uncaught EJB/Runtime exception. Rolling back via the mysql command line client works great, and the tables in question are InnoDB. Here is my documentation of the problem -- I'd love it if anyone can tell me anything that looks weird. Please help -- this is so trivial it SHOULD work! mysql-ds.xml: | | | | MySqlDS | jdbc:mysql://127.0.0.1:3306/scheduler_db | com.mysql.jdbc.Driver | censored | censored | | mySQL | | | | persistence.xml: | | | java:/MySqlDS | | | | | | | | My EJB3 session bean: | @Stateless | public class TestBean implements TestBeanLocal, TestBeanRemote | { | | @PersistenceContext(name = "persistence-unit") | EntityManager em; | | @Resource | SessionContext ctx; | | public static final String RemoteJNDIName = "example/" + TestBean.class.getSimpleName() + "/remote"; | public static final String LocalJNDIName = "example/" + TestBean.class.getSimpleName() + "/local"; | | @TransactionAttribute(TransactionAttributeType.REQUIRED) | public void test() | { | Book book = new Book(null, "My first book", "Person 1"); | em.persist(book); | | Book book2 = new Book(null, "My second book", "Person 2"); | em.persist(book2); | | System.out.println("CURRENT TRANSACTION STATUS 1: " + (ctx.getRollbackOnly() ? "ROLLBACK" : "NOT ROLLBACK")); | ctx.setRollbackOnly(); | System.out.println("CURRENT TRANSACTION STATUS 2: " + (ctx.getRollbackOnly() ? "ROLLBACK" : "NOT ROLLBACK")); | | Book book3 = new Book(null, "My third book", "Person 3"); | em.persist(book3); | | List someBooks = em.createQuery("from Book").getResultList(); | | for (Iterator iter = someBooks.iterator(); iter.hasNext();) | { | Book element = (Book) iter.next(); | em.remove(element); | } | } | My test client: | public static void main(String[] args) throws Exception | { | Properties properties = new Properties(); | properties.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); | properties.put("java.naming.factory.url.pkgs", "=org.jboss.naming:org.jnp.interfaces"); | properties.put("java.naming.provider.url", "localhost:1099"); | Context context = new InitialContext(properties); | | TestBeanRemote beanRemote = (TestBeanRemote) context.lookup(TestBean.RemoteJNDIName); | beanRemote.test(); | } | Output log from JBoss: | 2008-01-10 17:15:40,755 DEBUG [org.jboss.remoting.transport.socket.ServerThread] WAKEUP in SERVER THREAD | 2008-01-10 17:15:40,991 DEBUG [org.jboss.remoting.transport.socket.ServerThread] beginning dorun | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4915213685571584 | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Transaction already joined | 2008-01-10 17:15:41,220 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] executing identity-insert immediately | 2008-01-10 17:15:41,224 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0) | 2008-01-10 17:15:41,224 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection | 2008-01-10 17:15:41,352 DEBUG [org.hibernate.SQL] insert into book (title, author) values (?, ?) | 2008-01-10 17:15:41,420 DEBUG [org.hibernate.id.IdentifierGeneratorFactory] Natively generated identity: 1 | 2008-01-10 17:15:41,420 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1) | 2008-01-10 17:15:41,420 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection | 2008-01-10 17:15:41,420 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)] | 2008-01-10 17:15:41,420 DEBUG
[jboss-user] [Security & JAAS/JBoss] - Re: looking for working example: custom login module extends
I have a custom login module that is working fine with jboss 4.2.1 and jboss 5 Beta 3. Caveat is I extend the AbstractServerLoginModule NOT UsernamePasswordLoginModule. But this should not a big issue as UsernamePasswordLoginModule extends AbstractServerLoginModule. So enjoy... Code package com.jaas.module; | | import java.math.BigDecimal; | import java.security.Principal; | import java.security.acl.Group; | import java.sql.SQLException; | import java.util.Arrays; | import java.util.Map; | import java.util.Set; | | import javax.naming.Context; | import javax.naming.InitialContext; | import javax.naming.NamingException; | import javax.security.auth.Subject; | import javax.security.auth.callback.Callback; | import javax.security.auth.callback.CallbackHandler; | import javax.security.auth.callback.NameCallback; | import javax.security.auth.callback.PasswordCallback; | import javax.security.auth.callback.UnsupportedCallbackException; | import javax.security.auth.login.LoginException; | import javax.sql.DataSource; | | import org.apache.commons.dbutils.QueryRunner; | import org.apache.commons.dbutils.handlers.ArrayHandler; | import org.jboss.security.SimpleGroup; | import org.jboss.security.SimplePrincipal; | import org.jboss.security.auth.spi.AbstractServerLoginModule; | | public class CustomLoginModule extends AbstractServerLoginModule { | | private Principal principal; | | private String authSql; | | private String rolesSql; | | private String name = null; | | private String password = null; | | @SuppressWarnings("unused") | private String ssn = null; | | public void initialize(Subject subject, CallbackHandler callbackHandler, | Map sharedState, Map options) { | super.initialize(subject, callbackHandler, sharedState, options); | this.authSql = (String) options.get("authSql"); | this.rolesSql = (String) options.get("rolesSql"); | } | | public boolean login() throws LoginException { | | //this is a protected boolean in Super class | loginOk = false; | if (this.callbackHandler == null) { | throw new LoginException("No callback handler is available"); | } | | Callback callbacks[] = new Callback[2]; | | callbacks[0] = new NameCallback("Name :"); | callbacks[1] = new PasswordCallback("Password :", false); | | try { | this.callbackHandler.handle(callbacks); | name = ((NameCallback) callbacks[0]).getName().trim(); | password = new String(((PasswordCallback) callbacks[1]) | .getPassword()); | | Object[] results = (Object[]) getQueryRunner().query(authSql, | new Object[] { name, password }, new ArrayHandler()); | | ssn = ((BigDecimal) results[3]).toString(); | principal = new CustomPrincipal((String) results[0], | (String) results[1], ((BigDecimal) results[2]).toString(), | ((BigDecimal) results[3]).toString()); | | loginOk = true; | | } catch (java.io.IOException ioe) { | ioe.printStackTrace(); | throw new LoginException(ioe.toString()); | } catch (UnsupportedCallbackException ce) { | ce.printStackTrace(); | throw new LoginException("Error: " + ce.getCallback().toString()); | } catch (SQLException ex) { | ex.printStackTrace(); | } | return loginOk; | } | | @Override | protected Principal getIdentity() { | return this.principal; | } | | @Override | protected Group[] getRoleSets() { | | Group roleGroup = new SimpleGroup("Roles"); | Group callerPrincipal = new SimpleGroup("CallerPrincipal"); | Group[] groups = { roleGroup, callerPrincipal }; | | try { | Object[] grps = (Object[]) getQueryRunner().query(rolesSql, | new Object[] { name }, new ArrayHandler()); | for (int i = 0; i < grps.length; i++) { | roleGroup.addMember(new SimplePrincipal(((String) grps) | .trim())); | } | } catch (SQLException ex) { | ex.printStackTrace(); | } | callerPrincipal.addMember(this.principal); | return groups; |
[jboss-user] [Messaging, JMS & JBossMQ] - InProcessMessageCount
I have an application that sends several JMS messages to a queue with one MDB that listens for messages on that queue. Under heavy loads (hundreds of messages being sent) I notice that the queue fills up. This is expected since the work associated with the MDB could take some time (the rate at which messages are processed is slower than the rate they are being added to the queue). CPU utilization is not at 100% when this is happening. I noticed that the InProcessMessageCount reaches 16 when this occurs and the QueueDepth begins to increase (and subsequently decreases once messages stop being sent). My questions are why the InProcessMessageCount always reaches 16, and if this value can be changed. I would think that this limit would be bounded by the resources of the machine it is running on, but it doesn't seem to be the case. It always stops at 16. TIA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118902#4118902 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118902 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Can I create a login .war module that my other .war modu
Answer is no. Make it a Custom Jaas Module & sprinkle | | SecurePages | | Security constraint testing using custom Jaas Module | | /jsp/secure.jsp | POST | GET | | | Only let the authenticated users login | admin | webAdmin | | | Determines the transport layer security | NONE | | | | BASIC | JaasRealm | | | The Only Secure Role | admin | | | Another Secure Role | webAdmin | tags in your web.xml and java:/jaas/MyJaas jboss-web.xml. You are set. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118900#4118900 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118900 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Capturing client IP address
One answer would be writing a Tomcat Valve that intercepts every HttpRequest before it make it to the container. This valve would intercept the request before your login module. I have given an example implementation. Package this in tomcat.sar , & check out how to configure this in jboss & you are set to go. Should not be too difficult package test.tomcat; | | import java.io.IOException; | import java.util.ArrayList; | import java.util.List; | import java.util.StringTokenizer; | | import javax.servlet.ServletException; | import javax.servlet.http.HttpServletRequest; | | import org.apache.catalina.*; | | /** | * The Tomcat valve that transfers credentials into a Principal object, | * to provide seamless integration between Jaas and the J2EE security model. | */ | | public class MyValve implements Valve { | | public String getInfo() { | return null; | } | | | /** |* Looks for the Http headers in the originating request and creates a |* Principal representing these if they exist. |*/ | | public void invoke(Request request, Response response, ValveContext valveContext) | throws IOException, ServletException { | |// Ha ! Ha !...Got the request before it makes it to Login Module... | | HttpRequest httpRequest = (HttpRequest)request; | HttpServletRequest httpServletRequest = (HttpServletRequest)request.getRequest(); | List roles = new ArrayList(); | String username = (String)httpServletRequest.getHeader("myHeader"); | String rolesAsString = (String)httpServletRequest.getHeader("myList"); | | StringTokenizer tok = new StringTokenizer(rolesAsString, ","); | while (tok.hasMoreTokens()) { | String token = tok.nextToken().trim(); | roles.add(token); | } | | httpRequest.setUserPrincipal(new MyPrincipal( | httpRequest.getContext().getRealm(), username, roles)); | | // now execute all other valves | valveContext.invokeNext(request, response); | } | | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118899#4118899 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118899 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: logout() in customized login modele
When your HttpSession time's out or when you call session.invalidate(), the container expires the caching of security credentials. I believe you are referring to DefaultCacheTimeout in jboss-service.xml. This specifies the default timed cache policy timeout in seconds.If you want to disable caching of security credentials, set this to 0 to force authentication to occur every time. Like wise 8s means it will be cached for that many seconds, if session invalidation does not occur. If your HttpSession expires before that, it will be cleared. That is my understanding View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118898#4118898 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118898 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Scriptaculous Sortable List Integration with Seam Remoti
looking back... that might have been a stupid question. i promise the read the documentation more closely next time. kudos for a well constructed javascript interface. i guess the concept of a response just seem too complicated yesterday... let alone actually do something with it. what really helped was capturing some packets and seeing what was going over the line. im learning. it makes more sense now. thanks for your patience. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118896#4118896 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118896 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be
Pete, Thanks for not taking my post harshly as it wasn't meant to be as such. I, for one, am extremely appreciative of what all of you are doing to evolve Seam and to engage the end-user as much as possible, through these forums and elsewhere. We *had* been setting propagation="none" on most navigation links and just recently started to think that we actually *shouldn't* be doing this. So hearing from you that this is indeed something that should be set (to "none") helps greatly. It is tips like these that could be really helpful to people struggling to grasp ho how to use conversations. Looks like the new Wiki will be a good source for this kind of information. I'll take a look at the example itself as well. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118891#4118891 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118891 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Scriptaculous Sortable List Integration with Seam Remoti
It might be best to ask this in the Ajax4JSF forum. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118887#4118887 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118887 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Ant Task not dependent upon Eclipse plugins
Great job, wcrossman =D In my own defense, the current ant task doesn't need the eclipse build system ;) It just needs some jars from the archives.core plugin, and 1 eclipse jar ;) And it turns out only 1 class is needed from that eclipse jar, IPath =D Just for further information, the build process itself in archives.core does not look once at what type of package it is (jar, ear, war, sar, etc). It doesn't affect the build process one way or the other as of now. There may be extensions in the future that allow other actions to be performed before or after. Either way, great contrib. In the future I'll be trying to clean up the ant task entry point a bit, and if it's ok with you I may consider your code when doing so? - Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=411#411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Affinity Data Partiotioning
Hi, I am trying to segment data over a set of JBoss caches having approximately even data distribution. Is anyone aware of a good dynamic hashing function that would provide good data affinity. For example, let's say I segment data over N nodes. When node N+1 joins, I would like a portion of data now redirected to that node. I don't care about the actual data movement (it can be achieved with data gravitation), but I would like to achieve the effect of every Node (1 to N) contributing some data to the new node. So, given an Object key, what would be a best algorithm to determine on which node that key should be stored? Any ideas? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118885#4118885 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118885 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JbpmContext Transaction begin not detected
Hi everybody. I have a workflow to approve users, for that I have a method with the annotation @CreateProcess that creates a ProcessInstance, which works well (creates a processInstance with no problem). In a second method I need to update the first taskInstance of the processInstance created, for that I injected the @JbpmContext jbmContext so I can make jbmContext .save(taskInstance) and now I can not create a process the error is "Transaction begin not detected, try installing transaction:ejb-transaction in components.xml". When I add an entry like this: It throws an error when starting the server stating that the entry transaction is not bound. I also try not injecting the JbpmContext and create it from jbpmConfiguration (jbpmConfiguration.createJbpmContext) but it appears an error saying "Illegal attempt to associate a collection with two open sessions". I have been going around doing session.merge, beginning transactions, closing a session and open it againg, etc. and nothing works. I would like to know what I am doing wrong with injecting the JbpmContext, or with creating the jbpmContext from jbpmConfiguration, or if there is another way to save a jbpm component. All this stuff is within a SFSB with a scope of BusinessProcess. The funny part is that all this was working when I called its methods from another SFSB (the creation of the process and the updating of the task instance) but I had to change that and call my method from within my SFSB since its functionality is going to be used from various components. I'm using Seam 2.0GA with Jboss-4.2.2.GA. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118884#4118884 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118884 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JNDI look up datasource problem
try Oracle9iDriver instead of OracleDriver View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118883#4118883 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118883 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get client IP when user logs in
FYI you can get to the ServletRequest object via ServletContexts.instance().getRequest(). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118881#4118881 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118881 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTTP Request via POST
There's nothing built in to Seam that provides this. I recommend you take a look at Apache HttpClient as it probably does what you need. http://hc.apache.org/httpclient-3.x/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118880#4118880 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118880 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - logout() in customized login modele
the logout() defined in the jboss customized login module, when this method got called. for instance: the session.invalidate() called in the application, does the logout() got called automatically by the jboss container? if the answer to the above is yes, how about the following setting in jboss-services.xml is not 0 8 does this mean the logout will be called after 8 secs, please advise, thanks so lot View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118878#4118878 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118878 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - JSP compile issue inside a jstl loop
I am seeing a ton of these in our logs, does any one know what this is? This file does compile but it fails sometimes? I am not sure what exactly this error message is trying to tell me. The section of code that it is complaining about is a jstl loop in a jsp that has two dynamic columns in a table. Here is that section of code. 2007-12-06 06:55:52,877 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: ServletException in '/WEB-INF/presentations/7014/jsp/form1.jsp': Unable to compile class for JSP Generated servlet error: Duplicate field form1_jsp._jspx_fnmap_0 Generated servlet error: Duplicate field form1_jsp._jspx_fnmap_0 Generated servlet error: _jspx_fnmap_0 cannot be resolved Generated servlet error: _jspx_fnmap_0 cannot be resolved An error occurred at line: 43 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp Generated servlet error: _jspx_fnmap_0 cannot be resolved An error occurred at line: 46 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp Generated servlet error: _jspx_fnmap_0 cannot be resolved An error occurred at line: 52 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp Generated servlet error: _jspx_fnmap_0 cannot be resolved at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460) at org.apache.jsp.WEB_002dINF.presentations._7014.jsp.layout_jsp._jspx_meth_tiles_insert_4(layout_jsp.java:1221) at org.apache.jsp.WEB_002dINF.presentations._7014.jsp.layout_jsp._jspService(layout_jsp.java:548) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:243) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1141) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:878) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:430) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at net.lmb.web.filter.UserProfileFilter.doFilter(UserProfileFilter.java:51) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at net.lmb.web.filter.AbFilter.doFilter(AbFilter.java:154) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at net.lmb.web.filter.TrafficFilter.doFilter(TrafficFilter.java:77) at net.lmb.web.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:40) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at net.lmb.
[jboss-user] [JBoss Seam] - HTTP Request via POST
Hi all, I understand this question may be a little stupid, but... Is there any util, or annotation, or something like that in seam to help making a HTTP request to a external server and parsing the results? Thanks, Petterson View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118874#4118874 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118874 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be
Chris, Interesting post. Thanks for the feedback. We do have one large scale app written in Seam in the examples dir - the wiki example which is the basis of the new Seam community site (which is up and running). The problem with large example apps is that they are hard to understand which makes them bad examples! Before moving to JBoss I did work on a fairly large app with Seam using conversations, and had no real problems with conversation management. I've also seen apps use conversations well in support cases and when consulting. My tip is to avoid starting conversations from navigation links (those links that take you to other areas of the app), always make navigation disable conversation propagation, and just use conversations *within* each area of the app. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118867#4118867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118867 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - How to Login with kerberos authentication
How to configure jboss portal to bypass login form using operating system user login and password with kerberos 5 authentication and Openldap? Could anyone presents an example? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118865#4118865 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118865 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Hibernate and OptimisticTreeCache
I've had a JBossCache+hibernate question over on the hibernate forums for a while with no responses. I was wondering if someone here might be able to help me out? The question is: Looking at the code in Hibernate OptimisticTreeCache it appears that Hibernate tells JBossCache to use an entity's version column for the cache's optimistic check when writing to the cache. If the entity doesn't have a version column it appears hibernate tells JBossCache not to do a version check of any kind when updating the cache using a dummy DataVersion implementation. (Last update wins I presume?) So, theoretically if I am using OptimisticeTreeCache with a Hibernate entity that don't contain a version column will my cache and DB remain synchronized? Is there any possible concurrent modification scenario where the 2 could become out of sync? For this particular Entity I don't care if concurrent changes step on each other as long as the cache and the db don't get out of sync when all is said and done. Does anyone on this forum have any insight for me? Thanks, Mike http://forum.hibernate.org/viewtopic.php?t=981936&highlight= View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118864#4118864 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118864 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Trivial Hibernate example with EJB3 and Hibernate, but trans
Hello folks, I'm trying to create a trivial example of a transaction working correctly with MySQ L5.0.x and local-tx-datasource and Connector/J 3.x. I'm using Hibernate and EJB3, and JBoss 4.0.x. I cannot get transactions to rollback w/ SessionContext.setRollbackOnly() OR by throwing an uncaught EJB/Runtime exception. Rolling back via the mysql command line client works great, and the tables in question are InnoDB. Here is my documentation of the problem -- I'd love it if anyone can tell me anything that looks weird. Please help -- this is so trivial it SHOULD work! mysql-ds.xml: | | | | MySqlDS | jdbc:mysql://127.0.0.1:3306/scheduler_db | com.mysql.jdbc.Driver | censored | censored | | mySQL | | | | persistence.xml: | | | java:/MySqlDS | | | | | | | | My EJB3 session bean: | @Stateless | public class TestBean implements TestBeanLocal, TestBeanRemote | { | | @PersistenceContext(name = "persistence-unit") | EntityManager em; | | @Resource | SessionContext ctx; | | public static final String RemoteJNDIName = "example/" + TestBean.class.getSimpleName() + "/remote"; | public static final String LocalJNDIName = "example/" + TestBean.class.getSimpleName() + "/local"; | | @TransactionAttribute(TransactionAttributeType.REQUIRED) | public void test() | { | Book book = new Book(null, "My first book", "Person 1"); | em.persist(book); | | Book book2 = new Book(null, "My second book", "Person 2"); | em.persist(book2); | | System.out.println("CURRENT TRANSACTION STATUS 1: " + (ctx.getRollbackOnly() ? "ROLLBACK" : "NOT ROLLBACK")); | ctx.setRollbackOnly(); | System.out.println("CURRENT TRANSACTION STATUS 2: " + (ctx.getRollbackOnly() ? "ROLLBACK" : "NOT ROLLBACK")); | | Book book3 = new Book(null, "My third book", "Person 3"); | em.persist(book3); | | List someBooks = em.createQuery("from Book").getResultList(); | | for (Iterator iter = someBooks.iterator(); iter.hasNext();) | { | Book element = (Book) iter.next(); | em.remove(element); | } | } | My test client: | public static void main(String[] args) throws Exception | { | Properties properties = new Properties(); | properties.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); | properties.put("java.naming.factory.url.pkgs", "=org.jboss.naming:org.jnp.interfaces"); | properties.put("java.naming.provider.url", "localhost:1099"); | Context context = new InitialContext(properties); | | TestBeanRemote beanRemote = (TestBeanRemote) context.lookup(TestBean.RemoteJNDIName); | beanRemote.test(); | } | Output log from JBoss: | 2008-01-10 17:15:40,755 DEBUG [org.jboss.remoting.transport.socket.ServerThread] WAKEUP in SERVER THREAD | 2008-01-10 17:15:40,991 DEBUG [org.jboss.remoting.transport.socket.ServerThread] beginning dorun | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4915213685571584 | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2008-01-10 17:15:41,211 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Transaction already joined | 2008-01-10 17:15:41,220 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] executing identity-insert immediately | 2008-01-10 17:15:41,224 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0) | 2008-01-10 17:15:41,224 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection | 2008-01-10 17:15:41,352 DEBUG [org.hibernate.SQL] insert into book (title, author) values (?, ?) | 2008-01-10 17:15:41,420 DEBUG [org.hibernate.id.IdentifierGeneratorFactory] Natively generated identity: 1 | 2008-01-10 17:15:41,420 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1) | 2008-01-10 17:15:41,420 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection | 2008-01-10 17:15:41,420 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)] | 2008-01-10 17:15:41,420 DEBUG
[jboss-user] [Security & JAAS/JBoss] - Re: Permission Denied when getting FileInputStream
Thank you for the response ragavgomatam. It turned out that it was the application code that was causing the error. Regards, Sarin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118860#4118860 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118860 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: any instruction for migrating 2.0.0.CR1 to 2.0.GA (or 2.
I didn't see that I use seam-gen to generate new project and try to match that with my own. I missed some subtle changes in build.xml when the new library files are split out into different places. Finally, got it working. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118859#4118859 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118859 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: 5.0 beta3, war class scoping problem
Here are the test files: RouteServlet.java package peter.scope; | import java.io.*; | import javax.servlet.ServletException; | import javax.servlet.http.*; | public class RouteServlet extends HttpServlet { | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, | IOException { | InEar ie = new InEar(); | String result = ie.route(); | PrintWriter out = resp.getWriter(); | out.print("" + result + ""); | } | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, | IOException { | doGet(req, resp); | } | } InWar.java package peter.scope; | public class InWar { | public String route() { | return "oops"; | } | } InEar.java package peter.scope; | public class InEar { | public String route() { | String result = null; | try { | result = callInWar(); | } catch (Throwable e) { | result = "exception when calling InWar: " + e; | } | return result; | } | private String callInWar() { | InWar id = new InWar(); | return id.route(); | } | } application.xml | Route | | inear.jar | | web.xml | 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-app_2_5.xsd"; | version="2.5" | > | | Route | peter.scope.RouteServlet | | | Route | /route | | | route | | Compile the three Java source files together. Then package the files as follows: inear.jar should contain: peter/scope/InEar.class inear.ear should contain: inear.jar META-INF/application.xml route.war should contain: WEB-INF/web.xml WEB-INF/classes/peter/scope/InWar.class WEB-INF/classes/peter/scope/RouteServlet.class Deploy inear.ear and route.war, point a browser at http://localhost:8080/route. When I do this on 5.0.0.Beta3, the browser displays: anonymous wrote : oops When I do this on 4.2.2.GA, the browser displays: anonymous wrote : exception when calling InWar: java.lang.NoClassDefFoundError: peter/scope/InWar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118858#4118858 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118858 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio
Jacob, Thanks for the quick reply. We're discussing things internally; I may put together a post on our issues but I fear it will get to be too lengthy for any forum post. In short, our issues deal with conversation propagation, handling conversational elements between stateful session beans, and why sometimes we are having to manually lookup entities from the entityManager when they should instead be accessible from our conversation stack. We plug one hole only to open up another. It's getting quite frustrating. From reading this forum, I feel there are a lot of confused users out there in regards to conversation handling. I understand this really isn't anything to go by - I'll try to put together something more succinct tomorrow in case you're around. :) I appreciate your time. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118850#4118850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Transactions JTA vs Non-JTA in jee5 Environment
Thanks Pete, I really appreciate your feedback. Its like you guys provide too many choices :-) and sometimes it is hard to know what is better unless you have strong recommendations. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118849#4118849 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118849 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio
No, the suggestion I posted is not referring to conversation handling, I'm simply offering an option if the original poster wants to use PAGE context (which is what the original post referred to). The only difference in an s:link between pointing to a view-id and an action is that an action gets executed in one case and not the other. The conversation propagation behaves the same... "chris.simons" wrote : We're losing conversational objects between redirects and we can't figure out. If you post information about your scenario in another thread we will do our best to help you out. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118846#4118846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118846 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be
I think part of the problem here is that outside of a few, small example applications provided by the gracious Seam team, there are no true examples of a large, enterprise-level application properly using Seam conversations. Seam is so closely coupled with conversations that there is no true way of escaping them. Yet the amount of confusion over how to manage them in an Web environment where the user is truly allowed to go anywhere, do anything, start any process and end it at any time, should point out to the Seam team that *are* issues with conversations in general. They're a great idea - but I know we're struggling with their usage. Results are unpredictable at best. The authors of Seam documentation attempt to show its great value but in practice it is hard to come by. Try using breadcrumbs based off of Seam conversations - I'll tell you upfront that it simply will cause more headaches than it is worth in a system with many pages and processes. I think there needs to be a definitive, large-scale example on how to manage conversations in an enterprise application. There is simply too much confusion for this to be ignored. My two cents. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118845#4118845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio
Jacob, Are you suggesting that conversation outjection works differently when an s:link points to a view (ex. view.jsf) versus a bean method (ex. bean.view)? This would explain a lot of problems we are having with conversations in a very complex system we are working with. We are on Seam 2.0 and JBoss 4.2.2. We're losing conversational objects between redirects and we can't figure out. Suggesting that the above does work differently would really limit the usage of pages.xml, wouldn't it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118843#4118843 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118843 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get client IP when user logs in
Sorry, everyone - I found what looks to be a better forum post that may give me what I want. In case you're having the same problem... http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998636#3998636 - Joe View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118838#4118838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118838 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: PortletBridge: Facelets not working
Also Phil, I know you have your deadlines and projects, and I am almost still wondering if it is possbile for you to post a very simple portlet WAR that uses the portletbridge 3.1.3 GA or higher. We have been trying to apply Liferay portal+ JSF + Richfaces + facelets into deliverables , and have been struggling with porlet bridge issues. It took us quiet a while to get the old portlet bridge to work , except the scope issue with JSF compoenents, so now we really want to give this new porlet bridge a try. But no luck yet. Anyway I also opened a new thread with our settings and issues, if you may find 5 minutes at your disposal at some point:) http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127396 Thanks, Jing View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118839#4118839 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118839 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Transactions JTA vs Non-JTA in jee5 Environment
Use JTA unless you have a really really good reason not to. I will update the docs to be more emphatic here ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118837#4118837 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118837 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Strange behaviour of Seam Mail when sending unsynchonize
Ok, this is possible, I haven't tested this (and the renderer is a bit tricky ;). If you can post a simple app to reproduce to JIRA that would be great :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118836#4118836 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - socket.close(): Possibly anyone resolved this, but still I d
Hi, I have a similar problem to issue: CLOSE WAIT and socket.close(), My problem consist in this: I have a Job that runs every 10 seconds, and every time uses a web service client maded with JBossWS. This web service does a operations over a remote server. The problem is that each request opens a socket and this socket is not always closed, because the response may not return with the HTTP code expected to close the socket. For any aid thank you very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118834#4118834 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118834 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to get client IP when user logs in
Sorry if this isn't the right forum for this question, but I'm hoping Seam provides a way to do this. I've seen the form entry pointed to by this link: http://www.jboss.org/?module=bb&op=viewtopic&t=102272 and have tried the proposed solution a couple ways, but still cannot see how to get the IP. Also I'm using OC4J, but don't know if this makes a difference. Does Seam provide a way for me to get the client's IP? I've done this in the past with servlet-based web apps using request.getRmoteAddr(), but can't quite figure out how to do this in my Seam environment. Thanks for any help. - Joe View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118833#4118833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: PortletBridge: Facelets not working
Thanks for the hint, ebephil. I simplified my portlet with only one tag in a single xhtml page, but still no ui compsition can display. I will try to open a new thread to see any ideas. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118828#4118828 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Anyone have SINGLE_TABLE Entity inheritance working?
Please see: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127223 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118824#4118824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118824 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: 5.0 beta3, war class scoping problem
Peter, can you create a very simple example to demonstrate this? Any classloader changes made to AS5 were mostly to satisfy TCK requirements, however, we do use scoped deployments in the ear deployer in that particular setup. | true | true | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118825#4118825 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118825 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - JBoss Tools problems Ubuntu
Hi users: I have in my laptop: Ubuntu 7.1 JDK 1.5 Seam 2.0 JBoss tools 2.0 Eclipse 3.3 But, I have two problems: First, I can see the JSP editor when I tried to watch an *.xhtml file I get an error: org.mozilla.xulrunner.gtk.linux.x86_1.8.1.3-20070904/xulrunner/libjavaxpcompglue.so: Can´t load IA32-bit.so on a IA 32-bit platform. And, when I start my jboss4.2 server it can´t create files, may be its a configuration problem with my OS but if some body can help I will be greatful. Thanks in advance, and I hope for some response. Favalos. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118823#4118823 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Datasource Issue in WebLogic 9.2
I have not worked with Weblogic 92 ( I've worked on 10), but from what I can see try not having "java:/" in the JNDI. JBoss prepends the "java;/" and I do not think that weblogic supports it. I just checked in resources and reference guide chapter on deploying to Weblogic 10 which might also provide some help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118820#4118820 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Changing Look and Feel of Seam Gen-ed apps
Thanks for the help. I will start doing some research. If anyone has suggestions or links for where to start it would be appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118819#4118819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118819 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam Transactions JTA vs Non-JTA in jee5 Environment
Does seam have any strong recomendations on whether to use JTA or Non-JTA in jee5 Environment? I looked at the 8.2. Seam managed transactions documentation, it says it provides support for all kinds of transactions, which is really great, but it does not tell what is best. And what are advantages of using either one of it in seam environment. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118815#4118815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to do a Max in a sub query...
This compiles and runs but doesn't get rid of the first record. | from us.tx.state.oag.olrap.db.InfoApplication as apps | where | apps.codeStatus.statusId = :codeStatus | and apps.infoWorkflows.emplid = :emplId | and apps.infoWorkflows.entryDate = ( select max(wf.entryDate) | from apps.infoWorkflows wf | where wf.infoApplication.applicationId = apps.applicationId | ) | order by apps.createdDate asc | The SQL generated is a little off... | 13:13:04,031 INFO [STDOUT] Hibernate: select infoapplic0_.application_id as applicat1_494_, infoapplic0_.fiscal_year_id as fiscal2_494_, infoapplic0_.evaluation_id as evaluation3_494_, infoapplic0_.status_id as status4_494_, infoapplic0_.base_award as base5_494_, infoapplic0_.closed_date as closed6_494_, infoapplic0_.created_date as created7_494_, infoapplic0_.emplid as emplid494_, infoapplic0_.hire_date as hire9_494_, infoapplic0_.job_code as job10_494_, infoapplic0_.last_eval_date as last11_494_, infoapplic0_.months_of_service as months12_494_, infoapplic0_.ok_with_bar as ok13_494_, infoapplic0_.submitted_date as submitted14_494_, infoapplic0_.calculated_award as calculated15_494_, infoapplic0_.actual_award as actual16_494_, infoapplic0_.award_date as award17_494_, infoapplic0_.cr_who as cr18_494_, infoapplic0_.cr_when as cr19_494_, infoapplic0_.up_who as up20_494_, infoapplic0_.up_when as up21_494_ from info_application infoapplic0_, info_workflow infoworkfl1_, info_! workflow infoworkfl2_ where infoapplic0_.application_id=infoworkfl2_.application_id and infoapplic0_.application_id=infoworkfl1_.application_id and infoapplic0_.status_id=? and infoworkfl1_.emplid=? and infoworkfl2_.entry_date=(select max(infoworkfl3_.entry_date) from info_workflow infoworkfl3_ where infoapplic0_.application_id=infoworkfl3_.application_id and infoworkfl3_.application_id=infoapplic0_.application_id) order by infoapplic0_.created_date asc | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118813#4118813 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118813 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: do JBoss webserver and JBoss servlet app come bundled in
I do not understand the question. What "servlet app"? Or are you asking if you need to download a separate Web server to use with JBossAS? If that is your question, then no, JBossAS comes with a built-in Web server based on Tomcat. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118811#4118811 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Strange behaviour of Seam Mail when sending unsynchonize
Yes, but to explain it I must go a little deeper. My template looks like | | #{rec} | | | and recipients gets into the context by | @Asynchronous | public void send(List recipients) { | Context c=Contexts.getEventContext(); | c.set("recipients", recipients); | renderer.render("..."); | } | The caller is a jBPM action class with: | Mailhandler mh=(Mailhandler)Components.getInstance(Mailhandler.class); | mh.send(new Vector(getRecipients())); | If I only send one mail, everything works fine. If I send two at the same time (two mail actions in jBPM which are executed immediately one after the other), I get some error from class InternetAddress telling the recipient's syntax is wrong ("@domain" is missing). I think either the ui:repeat or the m:to gets confused in some way when simultaneously used in multiple threads. I checked everything, I can't find any other synchronizity side effect (for example in the recipients list - everything is copied before usage), so I think it must be some issue with the renderer. (I wrote this all from memory; if you need even more info, let me know, I'll post the exact strack trace when I'm back in office tomorrow) Marcus. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118810#4118810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: HTTP 404 not using localhost
try this: run.sh -b 0.0.0.0 look in the readme.html : "JBossAS 4.2.0.GA * JBossAS now binds its services to localhost (127.0.0.1) *by default*, instead of binding to all available interfaces (0.0.0.0). This was primarily done for security reasons because of concerns of users going to production without having secured their servers properly. To enable remote access by binding JBoss services to a particular interface, simply run jboss with the -b option. To bind to all available interfaces and re-enable the legacy behaviour use -b 0.0.0.0. In any case, be aware you still need to secure you server properly. " View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118809#4118809 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118809 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Permission Denied when getting FileInputStream
Can you post your code please ? Also are you running jboss with -Djava.security.manager. Please clarify ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118806#4118806 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118806 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM success stories?
We have an application that uses the BPM to control the workflow within a web application that manages the flow of a user's session. It does not use any of the database flow persistence features since the user session has the lifespan as the modeled business process. Our flow is quite large and is pretty heavily used with about 100,000 sessions per day. Our biggest problems are related to version control, branch management and revision integration between our various development groups. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118805#4118805 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118805 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: do JBoss webserver and JBoss servlet app come bundled in
Thanks for the response - I'm wondering if the web server and the servlet app are bundled together in the same download or if I need to also download the servlet from somewhere. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118804#4118804 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118804 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problem to display FacesMessages
The only time I received that error message is where there was not a suitable h:messages or h:message component for the id I was attempting to add the error to on the page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118803#4118803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118803 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re:
It doesn't work at all due to js resources not reslving with portlet namespace. We are working on the problem... I think the fix for this was checked in yesterday, but I will have to double check. As an interim solution, you can copy the js files to your webapp... they must be refencered as described here: http://docs.jboss.com/jbportal/v2.6.3/referenceGuide/html/themeandlayouts.html#d0e10169 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118801#4118801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: do JBoss webserver and JBoss servlet app come bundled in
What is the question? You might notice that the subject line gets truncated, so please ask the question in the body of the post, not in the subject line! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118800#4118800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: jboss420GA, Out of memory, with -Xmx1300m -XX:PermSize=3
Sorry, I never looked at the subject line. I suggest you also set -Xms1300m. This will set the min and max heap to the same size (as it is, you are probably getting an initial heap of 64m, with the JVM constantly asking the OS for more). This will also prevent you from getting "out of memory" errors if the JVM asks the OS for more memory and the OS refuses to allocate it. Also, try running with -verbose:gc set, this should show you the amounts of heap in use before and after each garbage collection. Relying on the OS to tell you about the JVMs memeory usage is usually not too helpful. Also, I hope that you have at least 2GB of RAM on your machine. Otherwise you might not be able to get a 1.3GB heap. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118799#4118799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118799 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Changing Look and Feel of Seam Gen-ed apps
Seam thing. The blog example uses them. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118796#4118796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: LocalTx, ClientTransaction leak?
Hi Tim, This issue is causing me serious problems. I am seeing my application sieze up completely for a full minute while the JVM runs a full GC, and even the minor GCs are seriously reducing throughput. Perhaps if you could help me understand under what circumstances the call chain MessagingXAResource.end -> MessagingXAResource.unsetCurrentTransactionId -> ResourceManager.createLocalTx might be executed, I could take a stab and patching this myself and contribute my findings back to you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118797#4118797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - do JBoss webserver and JBoss servlet app come bundled in the
sorry if this is a stupid question! in my past experience these two pieces have been from seperate vendors; java, apache, new atlanta, etc... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118798#4118798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118798 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - 5.0 beta3, war class scoping problem
JBossAS 5.0 beta3 has changed the scoping of classes within war files. Previously (as in 4.x.x, and even in beta3 as of last September), if a class in some other archive (such as an ear) attempted to instantiate a class packaged in a war, I got a exception. With beta3 (and beta4 pulled today after Adrian's classloader change - JBAS-5119), the class is successfully instantiated. At first I thought that the "useJBossWebLoader" property might now default to true, but is is still false. Is this new behavior intended, or are the new class loaders broke? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118795#4118795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Lifecycle question
Basically yes. But it does depend if the bean is already instantiated... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118794#4118794 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Strange behaviour of Seam Mail when sending unsynchonize
Do you get a stack trace? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118791#4118791 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118791 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: any instruction for migrating 2.0.0.CR1 to 2.0.GA (or 2.
This is the best bet http://fisheye.jboss.com/browse/JBoss/jboss-seam/seam2migration.txt?r1=1.12&r2=1.8&u=3&ignore=&k=k Whats the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118788#4118788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118788 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: hibernate SessionFactory lookup return null
One very important addition. On serverside InitialContext ctx=new InitialContext(); | Object obj=ctx.lookup("java:/hibernate/SessionFactory"); this code works fine! Issue on client side when I am trying to use it from my swing application. So in order to be more precise client side can not use SessionFactory. However rest of jndi Objects are fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118785#4118785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118785 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityManager trouble
How are you putting the datasource into JNDI? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118782#4118782 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: PortletBridge: Facelets not working
Concerning Facelets: configuration error :-) I didn't pass the path to my taglib in the web.xml. I don't know why it worke before, maybe I just overwrote it when I updated my configuration. At least it's easy to fix: | | facelets.LIBRARIES | /WEB-INF/facelets/tags/foo.taglib.xml | | | That's one of the things I learned to love about Facelets: Verbose error messages that pop right into your eye :-) I also get quite a few 'Prefix for attributes in portlet session scope not found' warnings. I didn't dig into that yet, I assumed it was caused by the early development stage of the AjaxFacesPortlet. However, it still seems to happen with the portlet bridge (but hey, I'm using an svn snapshot). I pasted the warning below, but won't take a further look at it until tomorrow. BTW: It doesn't seem to affect my app, it just fills the log (quite often indeed as I use ). Thanks again for the hint Wesley and, according to the svn log, thank you even more for the comprehensive RichFacesPortlet :-) | 18:48:46,072 WARN [lifecycle] executePhase(RESTORE_VIEW 1,[EMAIL PROTECTED]) threw exception | javax.faces.FacesException: Prefix for attributes in portlet session scope not found | at org.ajax4jsf.portlet.context.ServletContextImpl.getSessionPrefix(ServletContextImpl.java:255) | at org.ajax4jsf.portlet.context.ServletContextImpl.getSession(ServletContextImpl.java:352) | at org.ajax4jsf.portlet.application.PortletStateHolder.getInstance(PortletStateHolder.java:62) | at org.ajax4jsf.portlet.application.PortalStateManager.restoreStateFromSession(PortalStateManager.java:39) | at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:221) | at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290) | at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316) | at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116) | at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:159) | at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116) | at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:159) | at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:143) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | 18:48:46,074 ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw exception | javax.faces.FacesExcep
[jboss-user] [JBoss jBPM] - jBPM jPDL GPD 3.1.2 Released
I did this release this morning. Read about it in my blog: http://koentsje.blogspot.com/2008/01/esb-service-node-in-jbpm-jpdl-gpd-312.html Regards, Koen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118781#4118781 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: jboss420GA, Out of memory, with -Xmx1300m -XX:PermSize=3
Thanks but that's been done, the problem is that by setting those values (in subject) my web application still only sees 353MB total memory as opposed to 1G+ that should be available. I'm getting out of memory errors during high load (complex page/backup etc) but I cant figure out where / if there are any internal jboss settings for memory allocation to web application etc my jboss startup screen looks like: anonymous wrote : | === | | JBoss Bootstrap Environment | | JBOSS_HOME: D:\apps\jboss-4.2.0.GA | | JAVA: d:\apps\jdk1.6.0_03\bin\java | | JAVA_OPTS: -Dprogram.name=run.bat -server -Xmx1300m -XX:MaxPermSize=378m -XX:PermSize=378M -Dsun.rmi.dgc.client.gcInterval=36 -Dsun.rmi.dgc.server.gcInterval=36 -Djava.awt.headless=true -Dcom.sun.management.jmxremote | | CLASSPATH: d:\apps\jdk1.6.0_03\lib\tools.jar;D:\apps\jboss-4.2.0.GA\bin\run.jar | | === | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118780#4118780 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Class loader with Scheduler service
I have deployed Jar file with my classes, and I have a JBoss scheduler service defined in my deploy directory. When I copy a new Jar file to deploy a new version of my application, the scheduler seems to execute old code. It's like the schedule classloader is holding onto references to the old code. The only way I've figured out how to fix this is to restart JBoss, which is obviously not desirable. Is there any way around this? Here is how my schedule is setup: | | true | com.lvlomas.erp.scheduler.ScoTenderConfirmationProcessor | | | 0 | 5 | -1 | true | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118778#4118778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problem to display FacesMessages
facesMessages.addToControl() *doesn't* take client id, it takes the id you enter on the page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118776#4118776 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118776 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing EJB3s through a firewall
Mi Magnus: Just a couple of ideas; used to run into this from time-to-time. Problem is, each environment is different, so you might have to try a few things to find the root of your error. >From what I can tell, the address in the Invokerlocator used in the Proxy >instance you've got is giving you wrong information, so the client can't >connect. You need to tell the server the proper address to set in the >InvokerLocator. http://www.jboss.org/wiki/Wiki.jsp?page=UsingJBossBehindAFirewall -Djava.rmi.server.hostname= | -Djava.rmi.server.useLocalHostname=true I've also needed to set /etc/hosts or C:\Windows\System32\drivers\etc\hosts to include the external host name and set to local IP. And once, I needed Reverse DNS to be properly set up. Let's see what luck this brings you. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118775#4118775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - any instruction for migrating 2.0.0.CR1 to 2.0.GA (or 2.0.1.
I know some libraries changes - merged and splitted - in Seam and Richfaces, but I haven't been able to successfully migrate my seam-gen app to new version after changed these library files. Release Note doesn't have anything on it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118777#4118777 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118777 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Veto Page Flow
I don't think you can optionally transition quite like that. A decision would be the best way to do it AFAICS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118773#4118773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Integrating JOBOSS IDE WITH JBOSS 4.2.2 Server
I download jboss 4.2.2. How to integrate this with JBOSS IDE. The IDE does not recognize this as one of its servers... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118771#4118771 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118771 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to do a Max in a sub query...
I've tried this: | from us.tx.state.oag.olrap.db.InfoApplication as apps | where apps.codeStatus.statusId = :codeStatus | and apps.infoWorkflows.emplid = :emplId | and apps.infoWorkflows.entryDate = ( | select max(entryDate) from apps.infoWorkflows wf | where wf.infoApplication.applicationId = apps.applicationId | ) | order by apps.createdDate asc | but I'm getting: | | java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.AggregateNode | \-[AGGREGATE] AggregateNode: 'max' | \-[IDENT] IdentNode: 'entryDate' {originalText=entryDate} | | at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:145) | at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:712) | at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:536) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:4049) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3528) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1762) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1690) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:776) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:577) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229) | at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228) | at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) | at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) | at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77) | at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56) | at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72) | at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:400) | at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:351) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218) | at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:231) | at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:155) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy4.start(Unknown Source) | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.
[jboss-user] [JBoss Seam] - Datasource Issue in WebLogic 9.2
My Seam-JPA application can't be deployed to WebLogic 9.2 because there is a JNDI error when trying to locate the datasource. I have set up a datasource in the Admin Console called java:/myWebAppDS. Then, in my persistence.xml I have this: | | org.hibernate.ejb.HibernatePersistence | java:/myWebAppDS | | [Some stuff...] | | | [More stuff...] | | | This seems right to me, but then I get this exception: | javax.naming.NameNotFoundException: While trying to look up /myWebAppDS in /app/webapp/myProject.war/3153055.; remaining name '/myWebAppDS' | at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139) | at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:142) | at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:269) | at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362) | at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45) | at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) | 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:62) | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) | at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730) | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121) | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83) | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60) | at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:81) | at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50) | at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) | at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:21) | | I cannot figure out what the issue is, so any insight is appreciated. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118769#4118769 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118769 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: PortletBridge: Facelets not working
I am having the exact same problem. Nothing shows up, but no error in log either. Below are the 2 links where I download the portlet bridge. Does below location sound correct to you? http://repository.jboss.com/maven2/org/richfaces/extensions/portletbridge/portletbridge-api/3.1.3.GA/ http://repository.jboss.com/maven2/org/richfaces/extensions/portletbridge/portletbridge-impl/3.1.3.GA/ I also used to use AjaxFacesPortlet directly, and put "org.ajax4jsf.portlet.PortletAjaxContext" in the "faces-config.xml", but it has issues with JSF managed bean session scope whenver I use Ajax. Does this sounds familiar? Anyway any pointer would be appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118766#4118766 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118766 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to do a Max in a sub query...
I need to select records that are linked together based on two parameters, one in table a the other in table b. The named query below is the item in question. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from us.tx.state.oag.olrap.db.InfoApplication as apps | where apps.codeStatus.statusId = :codeStatus | and apps.infoWorkflows.emplid = :emplId | order by apps.createdDate asc | | The workflow definition is: | | http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | { call get_crnt_wkfl_for_app_spr(?) } | | | The problem is, the named query needs to include a max() on entry_date from the workflow table, basically, this the SQL I need: | select * from info_application a, info_workflow b | where a.application_id = b.application_id | and b.entry_date = (select max(entry_date) from info_workflow c | where a.application_id = c.application_id) | and a.status_id = :codeStatus and b.emplid = :emplId | The SQL works, in that it gives me the most recent record for that employee and type. But I cannot figure out how to write that in HQL. Can anyone help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118765#4118765 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118765 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: jboss420GA, Out of memory, with -Xmx1300m -XX:PermSize=3
The JVM heap sizes are set inside the run scripts. Look for the JAVA_OPTS settings containing -Xms and -Xmx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118762#4118762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118762 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTTPS Scheme in pages.xml without httpsport or default p
oh, for info for others... the precedence should be FRAMEWORK , not BUILT_IN. Using built gives and error indicating two components were defined with the same precedence. >From the source code for the Install annotation |/** | * Precedence of all built-in Seam components | */ |public static final int BUILT_IN = 0; |/** | * Precedence to use for components of frameworks | * which extend Seam | */ |public static final int FRAMEWORK = 10; |/** | * Predence of application components (the | * default precedence) | */ |public static final int APPLICATION = 20; |/** | * Precedence to use for components which override | * application components in a particular deployment | */ |public static final int DEPLOYMENT = 30; | |/** | * Precedence to use for mock objects in tests | */ |public static final int MOCK = 40; | Thanks All! Nik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118760#4118760 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118760 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - jboss420GA, Out of memory, with -Xmx1300m -XX:PermSize=378M
Hi, I'm running one web-application inside jboss4.2.0GA, the application is Confluence. This application reports a Total Memory size of 353MB, Jboss Admin Console contains the following: | JVM Environment | Free Memory: 91 MB | Max Memory: 1251 MB | | Total Memory: 354 MB | | #Threads: 85 | | JVM Version: 1.6.0_03-b05 (Sun Microsystems Inc.) | | JVM Name: Java HotSpot(TM) Server VM | | | | Have I missed something really basic in how memory gets allocated to web applications? the 354 MB 'total' reported by Jboss is near enough what confluence is reporting. | | Confluence is running out of memory, so it looks like a Jboss tweak is required somewhere, but I have no clue where. Anyone have an idea? | | Thanks, | Andy. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118759#4118759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: integration problem
that is probably because it only works with Eclipse 3.3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118757#4118757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118757 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTTPS Scheme in pages.xml without httpsport or default p
Hmm.. we noticed another issue. When the Loadbalancer has SSL but internally redirects the requst to a tomcat not on SSL (to avoid having SLL at every level in the internal restricted network) the Seam framework sends back 302 (page moved) for every request to the login-view-id page and we get an infinite loop of 302 location login-view-id. If the tomcat has SSL setup, it works as expected. Does the Seam framework explicitly check if the current host scheme is SSL even if the request URL is https? Thanks, Nik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118755#4118755 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: HTTP Status 403 - logging with another role causes error
Hi, First are you using the SimplePrincipal from Jboss or your own Principal Object ? Second What is the role your are associating with your Principal object when you log in as Child ? My guess it it should be C ( as per your web.xml) . If you are rolling out your ow authentication, i guess you would be subclassing the AbstractServerLoginModule. If Using your own Principal, subclass SimplePrincipal. In the AbstractServerLoginModule there is a method addRoles() i believe. Override it with your roles. Maybe you can post the jaas login module code ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118753#4118753 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118753 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ExtJs and JBoss Seam with web remoting
Hi, i'm begining to write some articles about seam + extjs on my blog (http://ntispace.blogspot.com/). Sorry but it is in french until now. I'm going to put some example code next week, and i'll try to translate this part in english... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118751#4118751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: DataSource resource injection
I believe you should have it as :- java:jdbc/MyDS in your -ds.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118748#4118748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user