[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-12-10 Thread javatwo
We tried, but got exception: 08:17:58,204 ERROR [STDERR] javax.persistence.PersistenceException: [PersistenceUnit: defaultDataSource] Unable to build EntityManagerFactory 08:17:58,205 ERROR [STDERR] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)

[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-12-10 Thread javatwo
Why is there such limitation? From programming API, it just overrides the property declared in persistence.xml. For BEAN management type, do we need to implement any transation related methods? We use JBoss 5.1.0 GA. Thanks for help. View the original post : http://www.jboss.org/index.html?

[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-11-22 Thread javatwo
the previous message is for deploy phase. I was wrong. From further debug, the exception is thrown in SessionFactoryImp.java throw new HibernateException("The chosen transaction strategy requires access to the JTA TransactionManager"); if ( settings.getTransactionManagerLookup()!=null ) {

[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-11-22 Thread javatwo
>From debugging, the issue seems to be in method: PersistenceUnitDeployment.start(); which is in the jar "jboss-jpa-deployer.jar". Where can I find the source code for the jar? I could not find it under http://anonsvn.jboss.org/repos/ Thanks! View the original post : http://www.jboss.org/ind

[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-11-22 Thread javatwo
Thanks for help. If one peristence unit is mapped to many data sources(with same tables), is there any problems with Hibernate caching? We tried the following in a stateless session bean: Map configOverrides = new HashMap(); EntityManagerFacotry emf = Persistence.createEntityManagerFactory("un

[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog

2009-11-19 Thread javatwo
Thanks for help. Is the persistence unit name required to be defined in a persistence.xml? what is the property name for data source in the map? Thanks! Dave View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266681#4266681 Reply to the post : http://www.jboss

[jboss-user] [Persistence] - how to create PersistenceUnit and map to dataSource programm

2009-11-01 Thread javatwo
Hi, Currently we use the persistence.xml to map a persistenceUnit to data source. Our application got a requirement: create a new persistence unit programmatically and map it to a new datasource without redeploy or server restart. How to achieve this functionality? What is the maximum number

[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss 5.1.0(JDK6) on Fedora Core 10, computer often shutdown

2009-08-05 Thread javatwo
Hello, We are running JBoss 5.1.0(JDK6) on Fedora Core 10, the computer often shutdown without any error message. $ uname -a Linux localhost.localdomain 2.6.27.5-117.fc10.i686 #1 SMP Tue Nov 18 12:19:59 EST 2008 i686 athlon i386 GNU/Linux 2G memory. Any one encountered the same problem? Tha

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: session bean jndi name conflict

2009-07-31 Thread javatwo
I downloaded JBOSS 5.1.0.GA, and deployed the two ears, got the following exception: java.lang.RuntimeException: Could not bind Reference Class Name: Proxy for: mypackage.StudentManager Type: ProxyFactoryKey Content: ProxyFactory/app1/StudentManagerBean/StudentManager Type: EJB Container Name Co

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: session bean jndi name conflict

2009-07-31 Thread javatwo
JBoss 5.0.1. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247212#4247212 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247212 ___ jboss-user mailing list jboss-user@lists.j

[jboss-user] [Installation, Configuration & DEPLOYMENT] - session bean jndi name conflict

2009-07-31 Thread javatwo
Two ear files have the same session bean class name, for example, @Stateless @LocalBinding(jndiBinding="StudentManager") @Local(StudentManager.class) public class StudentManagerBean implements StudentManager { ... } When deploying the two ears, get the jndi name conflicts. java.lang.RuntimeExce

[jboss-user] [Beginners Corner] - forum open source

2009-07-02 Thread javatwo
can anyone recommend a forum open source that can use existing user database for authentication, and support i18n? We hava a JSF application deployed on JBoss 5.0.1, and need to add forum for user discussion. The Jboss Forum project requires portal. We prefer a standalone installation like a wa

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: where to put shared jar in ear file

2009-06-22 Thread javatwo
The two web modules share some css and java scripts files. Can we put them in a common place? Right now they are in each web module war file. How about jsp files? for shared jsp files, can they be put in common place too? Thanks, Dave View the original post : http://www.jboss.org/index.html?mo

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: where to put shared jar in ear file

2009-06-22 Thread javatwo
yes. we use JBoss 5.0.1.GA. Thanks for help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238926#4238926 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238926 ___ jboss-user

[jboss-user] [Installation, Configuration & DEPLOYMENT] - where to put shared jar in ear file

2009-06-22 Thread javatwo
For an ear file that contains two web modules that use one common lib jar, where to put the common lib jar? Thanks! Dave View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238904#4238904 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&m

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - two dataSources: Lock wait timeout exceeded

2009-05-13 Thread javatwo
we have 3 data sources(persistence units) in our app. The following exception raised in the senario: data source 1: create entity 1, entity2.setEntity1(entity1); data source 2: create entity 2, entity 1 is a property of entity2 class Entity2 { Entity1 getEntity1() void setEntity1(Entity1

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - moved to JBoss5.0.1GA, warning firstResult/maxResults

2009-05-10 Thread javatwo
moved to JBoss5.0.1GA, warning firstResult/maxResults: firstResult/maxResults specified with collection fetch; applying in memory! What is the warning? how to avoid it? Thanks for help, Dave View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229906#4229906 Repl

[jboss-user] [Beginners Corner] - 5.0.1GA warning! applicable interceptors is non-existent

2009-05-03 Thread javatwo
After upgrading jboss 4.0.5 to 5.0.1GA, we got the following warnings: applicable interceptors is non-existent for public Student MyManagerBean.getStudent(java.lang.Long) how to get ride of this warning? Thanks Dave View the original post : http://www.jboss.org/index.html?module=bb&op=viewto

[jboss-user] [JCA/JBoss] - jboss5.0.1 multiple XA datasources: autocommit?

2009-05-03 Thread javatwo
We have application working well in JBOSS 4.0.5GA. After moving to jboss 5.0.1GA, we have to use XA datasources. We setup three mysql XA datasources in our application using hiberhate. Each datasource has the following: true set autocommit=1 true My question is: set automcommit=1,

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: a transaction can across more than one persistence unit?

2009-04-28 Thread javatwo
two merges are ok. but when creating one entity A, merge entity B, A references B (foreign key), Lock wait timeout error ! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227188#4227188 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: a transaction can across more than one persistence unit?

2009-04-28 Thread javatwo
I got exception when trying updates tables via two persistence units in one transaction: ERROR [JDBCExceptionReporter] Lock wait timeout exceeded; try restarting transaction. Is it allowed? Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227186#4227

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - a transaction can across more than one persistence unit?

2009-04-28 Thread javatwo
start a userTransaction, update in one persistence unit/data source A update in another persisence unit/data source B commit the userTransation; My question is : do the two updates belong to the same transaction? Thanks. dave View the original post : http://www.jboss.org/index.html?module=b

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - 3 persistence units - Prepare called on a local tx ?

2009-04-28 Thread javatwo
jboss version: JBOSS 4.0.5GA. After our application set up three persistence units, we got the following warning at run time: WARN [TxConnectionManager] Prepare called on a local tx. Use of local transactions on a jta transaction with more than one branch may result in inconsistent data in so

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: which java version is used by jasper compiler (Jboss 4.0

2008-10-03 Thread javatwo
it does not support template: List View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180241#4180241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180241 ___ jboss-user mailing l

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - which java version is used by jasper compiler (Jboss 4.0.5)

2008-10-03 Thread javatwo
In my development environment using JDK 1.5, the jsp compilation is fine. But after deploy to JBoss 4.0.5, the JSP compiler complains templates such as List I started JBoss using jdk 1.5, configured in run.sh (JAVA_HOME). It seems that the JSP compiler is not using the java version 1.5. How

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: how to replace Tomcat in JBoss

2008-09-17 Thread javatwo
I could not find svn source branch for 5.5.20. the svn directory(branch) name is 5.5.x. I need 5.5.20 exactly. Could you please show me where to find the branch? Thanks. Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177287#4177287 Reply to the post

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: how to replace Tomcat in JBoss

2008-09-13 Thread javatwo
The reason I changed Tomcat source is to implement domain-level session cookie, such as mydomain.com. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176298#4176298 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176298

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: how to replace Tomcat in JBoss

2008-09-13 Thread javatwo
I downloaded fromhttp://tomcat.apache.org/download-55.cgi it is 5.5.27. I like to use 4.2.x, but I had problem using JSF myfaces on that version. I should try the 5.5.20. Is there a standard way to replace Tomcat in Jboss? The directory structure is different. Thanks! Dave View the ori

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - how to replace Tomcat in JBoss

2008-09-11 Thread javatwo
I am using JBoss 4.0.5 coming with Tomcat 5.5. I changed some source code of Tomcat and rebuilt it. How to install the new Tomcat into the JBoss? Only one file change of catalina.jar, but if I replace this jar only, an error will occur. Maybe the source is not compatible. Thanks for help. Da

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - em.persist(entity) ignores transaction

2008-03-06 Thread javatwo
Hi, I am using JBoss 4.0.5GA and mysql 5.0 database. in web tier: UserTransaction userTransaction = | (UserTransaction)new InitialContext().lookup("java:comp/UserTransaction"); | | userTransaction.begin(); | | | // in session bean, em is EntityManager | em.persist(entity

[jboss-user] [Beginners Corner] - Re: how to package ear and lib, classloader issue

2008-02-25 Thread javatwo
Another question: how to package a lib jar into enitty par module and session ejb3 module? Thanks Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132028#4132028 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=413202

[jboss-user] [Beginners Corner] - Re: how to package ear and lib, classloader issue

2008-02-25 Thread javatwo
Hi Peter, thanks for your help. If I move the class package.Foo to foo.par entity module, the common.jar under server/default/lib can instantiate the class. But the package.Foo class needs to access classes defined in the web module, and throws java.lang.NoClassDefFoundError. Is there a way

[jboss-user] [Beginners Corner] - how to package ear and lib, classloader issue

2008-02-25 Thread javatwo
I have an ear application with entity,business and web modules. foo.par bar.ejb3 baz.war / The .par, .ejb3 and war files use classes in common.jar. I put the common.jar under /server/default/lib. In the co

[jboss-user] [Installation, Configuration & DEPLOYMENT] - help me understand memory usage

2008-02-02 Thread javatwo
On Linux FC 6. The machine physical memory is 4G. After machine reboot, start JBoss and deploy application, the total memory usage is about 700M. After running JBoss for several hours, the memory used is increased to 3.5G. $ ps -eo rss Adding all used memory up, the total is about 580M. where

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - dangerous transaction

2008-02-01 Thread javatwo
I use JBoss 4.0.5 GA. JSF web application create a thread local userTransaction userTransaction.begin() // in JSF before invoke application phase em.persist(entity1) //create entity in session bean using entity manager ... do something that throw exception cought the exception and indica

[jboss-user] [Beginners Corner] - How to shutdown Jboss gracefully

2008-01-21 Thread javatwo
I need to shutdown Jboss for maintainence. I can not interrupt user's requests since they can be trade transactions. What is the way to shutdown Jboss gracefully? That is, no new requests allowed, but wait for all on-going requests to complete. Thanks for ideas. Dave View the original post :

[jboss-user] [Installation, Configuration & DEPLOYMENT] - how to set Java memory to start JBoss for best performance

2008-01-19 Thread javatwo
My machine: physical memory: 8G swap: 12G The machine is running mysql and jboss 4.0.5GA. the JBoss run.conf includes: JAVA_OPTS="-Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360" How to set Java memory for the best performance? Thanks! Dave

[jboss-user] [Beginners Corner] - Re: JBoss 4.2.2 with myfaces - java.lang.RuntimeException: C

2008-01-17 Thread javatwo
I did not define my own classloader. Actually I followed the same instruction you specified. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120933#4120933 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120933

[jboss-user] [Beginners Corner] - JBoss 4.2.2 JSF RI - java.lang.ClassNotFoundException: bool

2008-01-17 Thread javatwo
I am using , and set com.sun.faces.serializeServerState to true in web.xml. javax.faces.STATE_SAVING_METHOD server com.sun.faces.serializeServerState true I got the following exception. java.lang.ClassNotFoundException: boolean

[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss 4.2.2 Crash on window XP

2008-01-16 Thread javatwo
Hi, When I tried to start JBoss 4.2.2 on Window XP (laptop) with a JSF application deployed, it crashed (machine restart, memory error). If I start with -c default, no application deployed, it is ok. I tried Jdk 1.5 and Jdk 1.6, crashed in both cases. Thanks for help. Dave View the original p

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2.2 does not respond to http port 80, no firewal

2008-01-14 Thread javatwo
Ops, I read the doc, and need to set -b 0.0.0.0 when starting JBoss. Where to add the -b option? Is it a Java option? I am running Linux. Thanks Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119600#4119600 Reply to the post : http://www.jboss.com/ind

[jboss-user] [Beginners Corner] - JBoss 4.2.2 with myfaces - java.lang.RuntimeException: Canno

2008-01-14 Thread javatwo
Everything is runing well in JBoss 4.0.5GA with myfaces. For JBoss 4.2.2GA, I uses myfaces jars bundled in web-inf/lib and add the following in web.xml, and remove all libs under jsf-libs. org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL true I got the following exception: Thanks for help.

[jboss-user] [Beginners Corner] - JBoss WEB, sticky session load balancing

2008-01-13 Thread javatwo
I read the JBoss 4.2.2 doc, it includes JBOSS web that including Apache Runtime. Does it provide load balancing? Currently I am using Apache JK for load balancing for multiple JBOSS instances. Thanks, Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2.2 does not respond to http port 80, no firewal

2008-01-13 Thread javatwo
Thanks Peter. Now I understand. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119516#4119516 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119516 ___ jboss-user mailing lis

[jboss-user] [EJB 3.0] - Re: java.lang.RuntimeException: Cannot find FacesContext

2008-01-13 Thread javatwo
JBoss 4.2.2 myfaces, I got the same problem with explicit page index.jsf with correct servlet mapping. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119409#4119409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119409

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2.2 does not respond to http port 80, no firewal

2008-01-13 Thread javatwo
Sorry, I tried to add XML port configure, no luck. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119403#4119403 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119403 ___ jbos

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2.2 does not respond to http port 80, no firewal

2008-01-13 Thread javatwo
removed xml <, /> Connector port="80" address="${jboss.bind.address}" maxThreads="250" maxHttpHeaderSize="8192" emptySessionPath="true" protocol="HTTP/1.1" enableLookups="false" redirectPort="443" acceptCount="100" connectionTimeout="2" disableUploadTimeout

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2.2 does not respond to http port 80, no firewal

2008-01-13 Thread javatwo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119402#4119402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119402 ___ jboss-user mailing list jboss-u

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2.2 does not respond to http port 80, no firewal

2008-01-13 Thread javatwo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119401#4119401 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119401 ___ jboss-user mailing list jboss-user

[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss 4.2.2 does not respond to http port 80, no firewall

2008-01-13 Thread javatwo
JBoss 4.2.2, cluster config, ie JBoss/server/all, tomcat server.xml configures ports as following: the https port 443 is working, but the port 8080 is not working. Firewall is disabled. I used filter to log all requests, but no requests for 8080 port. I chan

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jboss-4.2.2.GA on Win2K3 does not respond to HTTP reques

2008-01-13 Thread javatwo
I have the same problem on Linux for JBoss 4.2.2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119399#4119399 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119399 ___ jboss-

[jboss-user] [Beginners Corner] - Can not access JBoss 4.2.2GA using ip address

2007-12-04 Thread javatwo
Hi, I installed JBoss 4.2.2 GA on Fedora Core 6.0, using server/default. I can access it using http://localhost, but I can not access it using ip address. $wget localhost --17:05:13-- http://localhost/ Resolving localhost... 127.0.0.1, ::1 Connecting to localhost|127.0.0.1|:80... connected. HTTP

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - cast entity to Long

2007-06-25 Thread javatwo
When I merge entity Foo, got the following exception: trying to cast the entity to Long type, how could this be possible? Can someone give me some help on what might be the cause? Thanks! Caused by: java.lang.ClassCastException: xyz.Foo cannot be cast to java.lang.Long 20:28:20,493 ERROR [STD

[jboss-user] [JBoss Portal] - Re: Ldap authentication on Jboss portal 2.6 cr2

2007-06-04 Thread javatwo
I am trying to use LDAP for user identity. Which LDAP server is supported? Does JBOSS AS come with LDAP server? Thanks for advice. Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050946#4050946 Reply to the post : http://www.jboss.com/index.html?modul

[jboss-user] [Security & JAAS/JBoss] - Re: JBoss LADP server

2007-06-04 Thread javatwo
I plan to use LDAP server to store user identity such as user/password. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050866#4050866 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050866 ___

[jboss-user] [Security & JAAS/JBoss] - JBoss LADP server

2007-06-04 Thread javatwo
I am using JBoss 4.0.5GA. Does it come with LDAP server? If not, could anyone recommend a LDAP server that works with JBOSS? Thanks! Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050865#4050865 Reply to the post : http://www.jboss.com/index.html?modul

[jboss-user] [JBoss Portal] - Re: About JBoss Portal 2.6 ...

2007-06-02 Thread javatwo
Hi Thomas, the blog is a great read. For the User service/portlet, we already have User, Role and User_Role tables in our own datatase that are similar to jbp_users, jbp_roles, and jbp_membership. But the user table has different columns such as totalNumberOfLogin, and lastLoginTime, etc. We

[jboss-user] [JBoss Portal] - Portal scalability

2007-05-31 Thread javatwo
I read Portal spec and JBoss portal doc. It does not say the scalability issue in terms of number of portal(s) in a portal container. An admin user can create more than one Portal(s). Is there a limit for the number of portal(s) that an admin user can create? a couple, a dozen, hundreds, or

[jboss-user] [JBoss Portal] - How to make user's pages visible to public

2007-05-26 Thread javatwo
I have asked many questions in a short time. I am completely new to JBoss portal. Please help me. I create a portal called "MyPortal" and some pages(A, B, C, D) on the portal. Then I create a user called "scott". After login as scott, I copied page A and B on MyPortal to the dashboard. In addit

[jboss-user] [JBoss Portal] - window name UTF-8? menu does not stay

2007-05-26 Thread javatwo
Hello, I am experiencing JBoss Portal. Seeing some issues: 1. When I use UTF8(for example, chinese characters) as window name for adding portlets, it did not show up correctly, like 产品分类, no one can recognize. but page name is OK with UTF8. 2. Sub pages show as drop down menu, but very d

[jboss-user] [JBoss Portal] - 6 questions, should I use JBoss Portal?

2007-05-26 Thread javatwo
I am using JSF/JBOSS/Hibernate. I have asked some questions and looked through this forum. But I am still not clear. Can JBoss Portal allow me to do the following: 1. each user can create account, and be able to create pages, create his own layout and themes, all of these need to be persisted, i

[jboss-user] [JBoss Portal] - Re: pages in dashboard

2007-05-26 Thread javatwo
"[EMAIL PROTECTED]" wrote : | This is the default use case. | Modify the portal called template to create the 4 pages. | | Every user logging in his dashboard will see the 4 pages, he will be able to modify those pages. keep the position, add content and this will only be visible by him

[jboss-user] [JBoss Portal] - java.lang.ClassCastException: com.sun.facelets.component.Rep

2007-05-26 Thread javatwo
I downloaded jboss-portal-ha-2.6-CR2 and deployed it into JBoss AS 4.0.5GA as instructed, but got the following exception: 08:03:33,026 ERROR [FacesConfigurator] failed to configure class com.sun.facelets.component.RepeatRenderer java.lang.ClassCastException: com.sun.facelets.component.RepeatRen

[jboss-user] [JBoss Portal] - Re: page create, layout and theme on per user basis

2007-05-26 Thread javatwo
Thanks for quick reply, very helpful. In my JSF application, I have a User table that keeps username and password. Do I have to use the User Portlet coming with portal? some different properties are needed in my case. I did not use FORM based authentication or any standard ones. My authenticati

[jboss-user] [JBoss Portal] - page create, layout and theme on per user basis

2007-05-26 Thread javatwo
I am using JSF on JBoss, and thinking about using Portal. I am new to JBoss portal, and have several questions, please help. 1. can a normal user(not admin) create a page, add portlets, design layout and apply theme, then persist them? on per user basis? 2. can page layout/theme be visually

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - merge detached entity will insert a new entity

2007-05-10 Thread javatwo
em.merge(course);// course is a detached entity I got the following exception: org.hibernate.exception.ConstraintViolationException: could not insert: package.Course. The exception means it tried to insert a new row for merge. The detached entity was initially retrieved from database using

[jboss-user] [Performance Tuning] - Memory not released after shutting down JBOSS, memory leak?

2007-05-10 Thread javatwo
After rebooting FC 6, then start JBOSS. The total memory usage is about 600M. After accessing the web application deployed on the JBOSS for about 3 hours, the message usage is about 3.5G. Then shutdown the JBOSS. But the memory used is still shown as 3.5G using TOP command. Is this a memory

[jboss-user] [Installation, Configuration & Deployment] - Re: JBoss did not start automatically on Linux(FC 6)

2007-03-15 Thread javatwo
For starting JBoss automatically on system reboot, which user is used? If user "root" is used, there should not be any difference, right? I can start Jboss manually using the following command as a root user: /etc/init.d/jboss start View the original post : http://www.jboss.com/index.html?mod

[jboss-user] [Installation, Configuration & Deployment] - Re: JBoss did not start automatically on Linux(FC 6)

2007-03-15 Thread javatwo
Hi Peter, I did not create user "jboss". root is used to start Jboss because only root can use port 80. what is the difference between starting Jboss on reboot and starting Jboss manually using root? JBOSS_USER=${JBOSS_USER:-"RUNASIS"} ... if [ "$JBOSS_USER" = "RUNASIS" ]; then SUBIT="" el

[jboss-user] [Installation, Configuration & Deployment] - JBoss did not start automatically on Linux(FC 6)

2007-03-15 Thread javatwo
Hello, I installed JBoss 4.0.5GA on Linux FC6. I copied the start up script to /etc/init.d/jboss and made some changes, and then use chkconfig to config it. # chkconfig --list mysqld mysqld 0:off 1:off 2:off 3:on4:off 5:off 6:off # chkconfig --list jboss jboss 0:

[jboss-user] [Beginners Corner] - Re: JBoss need to be restarted after redeploy

2007-03-13 Thread javatwo
I am using JBoss 4.0.5GA, and mysql 5.0.24 on Windows XP. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027471#4027471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027471 ___

[jboss-user] [Beginners Corner] - JBoss need to be restarted after redeploy

2007-03-13 Thread javatwo
After starting JBoss and deploying an application, it works fine. But if I re-deploy the application without making any changes, I got the following exception while running the application: 18:08:59,519 ERROR [STDERR] Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException o

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: IllegalArgumentException when running after redeploy

2007-03-12 Thread javatwo
possibly due to some ClassLoader issues. But I could not figure out the solution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027070#4027070 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027070

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: IllegalArgumentException when running after redeploy

2007-03-11 Thread javatwo
21:30:44,095 ERROR [STDERR] Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.dc.entity.security.User.id 21:30:44,095 ERROR [STDERR] at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:171) 21:30:44

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - IllegalArgumentException when running after redeploy

2007-03-11 Thread javatwo
I am using Jboss 4.0.5GA. It was working well until I got the following exception Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of package.User.id It happens when I redeploy and run the same application(the same application I have redeployed

[jboss-user] [Installation, Configuration & Deployment] - Re: Installing JBoss/ejb3 without X-window on Linux

2007-02-12 Thread javatwo
I installed the Gnome on the linux machine (FC 6), get an NoDefError "com.sun.X11GraphicEnvironment" when starting the JBoss installer. Will the following two ways work? 1. Can I download source, and do "ant install" without GUI? 2. Can I install it on the windows first, then copy the entire di

[jboss-user] [Installation, Configuration & Deployment] - Installing JBoss/ejb3 without X-window on Linux

2007-02-11 Thread javatwo
Jboss installer is needed to install Jboss 4.0.5 with Ejb support. But my linux machine which is a dedicated server does not have X-window installed. One solution is to install X-window on my client windows michine. It would be nice to have a text-based installer, or RPM for linux. View the o

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Video Streaming

2007-01-10 Thread javatwo
I have a JSF web application using JBoss. I need to add video streaming capability so that users can watch videos immediately when they click them. I am new to video streaming. Do I need to install another server for video streaming? which video format should I use? quick time, window media, et

[jboss-user] [Beginners Corner] - Re: deploy exploded war file, page not available

2006-07-25 Thread javatwo
Thanks. Solved. There is a jar file that needs to be downloaded separately. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960638#3960638 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960638 _

[jboss-user] [Beginners Corner] - deploy exploded war file, page not available

2006-07-24 Thread javatwo
http://rollerweblogger.org/wiki/Wiki.jsp?page=InstallationGuideJBoss I followed the instruction to deploy Roller into JBoss using exploded war file. But http://localhost:8080/roller The requested resource (/roller/) is not available. Other applications were available (the J