[JBoss-user] [Installation & Configuration] - Re: JBOSS with Crytal Report

2005-05-10 Thread richardzheng
I configed it like this: jnp://localhost:1099 org.jnp.interfaces.NamingContextFactory java:/smDS But got an error: Failed to open the connection. Details: Exception: [Error Message:]javax.naming.NameAlreadyBoundException; remaining name ?smDS?. Richard View the original post : http://w

[JBoss-user] [EJB/JBoss] - Find By Primary Key Query

2005-04-01 Thread richardzheng
I got an error like this:[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.User#findByPrimaryKey] Executing SQL: SELECT t0_User.OID FROM USER t0_User WHERE t0_User.OID=? when I tried to retrieve a record by primary key. It is fine to insert a record. The envieronment is Jboss 4.0.1 and

[JBoss-user] [Installation & Configuration] - How to config 2 databases under an JBoss

2005-01-04 Thread richardzheng
I'd like to run 2 ejb applications with 2 databases under the same JBoss application server. MySqlDS1 jdbc:mysql://rep:3306/DB1 org.gjt.mm.mysql.Driver uid pwd MySqlDS2 jdbc:mysql://rep:3306/DB2 org.gjt.mm.mysql.Driver uid pwd But I don't kn

[JBoss-user] [Installation & Configuration] - Re: JBOSS hangs after contineous running for about 2 weeks

2004-04-23 Thread richardzheng
set JAVA_OPTS=%JAVA_OPTS% -Djava.io.tmpdir=your directory View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832191#3832191 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832191 ---

[JBoss-user] [Installation & Configuration] - Re: JBOSS hangs after contineous running for about 2 weeks

2004-04-22 Thread richardzheng
set JAVA_OPTS = "-Djava.io.tmpdir= your folder" View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832006#3832006 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832006 -

[JBoss-user] [Installation & Configuration] - Re: How to disenable /tmp in Jetty

2004-04-20 Thread richardzheng
Jonlee, thank you for your help. If the JSP compiled files are written to /jetty directory, there is no files in /tmp directory. Is it neccessary to clean the /tmp directory using cron job? Can it solve the problem with JBoss application working for the continuous 2 weeks? Thanks Richard View

[JBoss-user] [Beginners Corner] - Unable to compile class for JSP

2004-04-19 Thread richardzheng
I downloaded JBoss3.2.3 and deployed struts_example.war. When I visted the web site, following error occurs: HTTP Status 500 - type Exception report message description The server encountered an internal error

[JBoss-user] [Installation & Configuration] - Re: How to disenable /tmp in Jetty

2004-04-19 Thread richardzheng
What difference between putting compiled JSP classes in /tmp and in /jetty. Thanks Richard View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831450#3831450 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831450 -

[JBoss-user] [Installation & Configuration] - How to disenable /tmp in Jetty

2004-04-19 Thread richardzheng
I deployed a J2EE/EJB application under Linux 7.2 and JBoss 3.2.1. It works very well for 2 weeks. After 2 weeks the web application has no response so that I have to kill Jboss and restart it again. It seems like the Jboss hangs. Lothar suggested that the /tmp folder should be cleaned every 2 w

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMP/BMP or JDO/hibernate

2004-04-07 Thread richardzheng
We can use Session Bean with JDO or Hibernate O/R mapping instead of with CMP or BMP. It is said that CMP or BMP has poor performance. I am not sure that JDO or Hibernate O/R mapping has the same advantages as Entity Bean such as security and transaction. The homepage of JBoss.org shows that Hib

[JBoss-user] [Persistence & CMP/JBoss] - Entity Bean And Hibernate

2004-04-07 Thread richardzheng
Hibernate is O/R mapping, making ralational database acting as object-oriented database. Can it replace entity bean in EJB? What's differnce between entity bean and hiernate object class? Any replies are appreciated. Richard View the original post : http://www.jboss.org/index.html?module=bb&o

[JBoss-user] [Installation & Configuration] - Re: JBoss Production Configuration

2004-04-07 Thread richardzheng
Hello Adrian, Thank you for your reply. I found webdefault.xml instead of web.xml in jbossweb-jetty.sar because I used JBoss3.2.1. But there are no settings for logging. Richard View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829618#3829618 Reply to the po

[JBoss-user] [Installation & Configuration] - JBoss Production Configuration

2004-04-06 Thread richardzheng
When an application is released, how to config it as a real production. How to disable Jasper development mode? How to disable logging for the web container? How to disable access logging? I disabled Log4j Initialization in jboss-minimal.xml and jboss-service.xml, but there are still temporary f

[JBoss-user] [Installation & Configuration] - Re: JBOSS hangs after contineous running for about 2 weeks

2004-04-06 Thread richardzheng
Hello Lothar, Thank you for you reply. I will try it. Thanks Richard View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829468#3829468 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829468

[JBoss-user] [Installation & Configuration] - JBOSS hangs after contineous running for about 2 weeks

2004-04-05 Thread richardzheng
I deployed a J2EE/EJB application under Linux 7.2 and JBoss 3.2.1. It works very well for 2 weeks. After 2 weeks the web application has no response so that I have to kill Jboss and restart it again. I checked the log files for every day and no errors information is reported. Can anybody help m

[JBoss-user] [Installation & Configuration] - Re: The J2EE application only works continuous 2 weeks

2004-03-31 Thread richardzheng
"richardzheng" wrote : Hello Everyone, | | I deployed the J2EE application under Linux 7.3, JBoss 3.2.1, JDK1.4.1 and MySQL 4.1. | | It works well in continuous 2 weeks or so after Jboss is started. However about 2 weeks later, the web application can't work. I hav

[JBoss-user] [Installation & Configuration] - Re: How to pass env variables to jboss-service.xml

2004-03-31 Thread richardzheng
What I know is to rewrite jboss-service.xml to update port number. Richard View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828395#3828395 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828395 -

[JBoss-user] [Installation & Configuration] - The J2EE application under Linux and JBoss only works contin

2004-03-31 Thread richardzheng
Hello Everyone, I deployed the J2EE application under Linux 7.3, JBoss 3.2.1, JDK1.4.1 and MySQL 4.1. It works well in continuous 2 weeks or so after Jboss is started. However about 2 weeks later, the web application can't work. I have to stop jboss daemon and start it again. I checked the log