[jboss-user] [Beginner's Corner] - There are too many DEBUG written to the

2009-09-28 Thread thomas2008ch
I have a problem: There are too many DEBUG messages written to the server.log file so the hard disc gets full every several days. The DEBUG message looks as follow. | | 2009-09-25 16:18:54,204 DEBUG [org.jboss.system.ServiceController] Creating service jboss:service=Naming |

[jboss-user] [Persistence] - Problem by loading huge data to the MSSQL Database

2009-09-18 Thread thomas2008ch
I got a strange problem. I use the MSSQL Server and use to batch import data into the MSSQL database. But if the data amount not so large, there is no problem. But if the data amount is large, then after 4 to 5 minutes I will get following exceptions. And connection is brocken. Someone has

[jboss-user] [Installation, Configuration Deployment] - No message wrote to log (server.log)

2009-09-11 Thread thomas2008ch
I have something stranged. Till the day before yesterday, log messages could be written into the log file (server.log). But since yesterday no any message was written to the log, i.g. the size of server.log = 0. I stop the server and start it again. During starting I used tail -f to watch

[jboss-user] [Beginner's Corner] - Re: No logs wrote to server.log

2009-09-11 Thread thomas2008ch
I solved the problem. The disk is full. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4254734#4254734 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4254734 ___ jboss-user mailing

[jboss-user] [Installation, Configuration Deployment] - Re: No message wrote to log (server.log)

2009-09-11 Thread thomas2008ch
You are right. I forgot where I have posted the message and couldn't find it so I post here again. But I solved the problem myself now. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4254736#4254736 Reply to the post :

[jboss-user] [Beginner's Corner] - No logs wrote to server.log

2009-09-09 Thread thomas2008ch
I met a stranger problem. Since yesterday there is no log message wrote into the server.log. I look into the /server/default/conf and couldn't find any file is changed since the first configuration. Someone has idea or tips? View the original post :

[jboss-user] [Beginners Corner] - Why no logs written to the server.log by starting Jboss?

2009-08-14 Thread thomas2008ch
Hi, Normally if one start the Jboss, many logs will be written into the server.log. But in one of my Jboss server it's not the case. I think maybe the configuration is wrong. Soemone know where to check and correct it? View the original post :

[jboss-user] [JBossWS] - How to configure the wsdlLocation......

2009-06-17 Thread thomas2008ch
Hi all, I programmed a WS and the WS-Client. I deployed both onto the same application server. This means they are local. From the client the web service can be access by http://localhost:8080/myWS/myws?wsdl;. But now I have to deploy these onto an instance on another application server.

[jboss-user] [Beginners Corner] - Problem by deploying WAR with JSF on JBoss As 4.2.1

2008-12-11 Thread thomas2008ch
Hi all, I've wrote many web applications using JSF/Facelets before and all these run fine in Tomcat. Currently our company decides to move to use JBoss AS 4.2.1. I got very big problem since as I dpeloy the WARs onto the JBoss AS I got many exceptions. I notice that the JBOss AS has own lib

[jboss-user] [EJB/JBoss] - Can not deploy Spring Web Flow on JBOssAS

2008-11-27 Thread thomas2008ch
Hi all, I build the sample project of SPring-Web-Flow 2.0.5 swf-booking-faces and can deploy it on Tomcat 6.0.14 and it runs fine. But as I try to deploy it on JBoss 4.2.3, I got a lot of exceptions. Does someone have such a problem? View the original post :

[jboss-user] [EJB/JBoss] - Re: org.jboss.deployment.DeploymentException: Error in jboss

2008-05-29 Thread thomas2008ch
I did really help! Many thanks! But I wonder a little bit since the oracle-ds.xml looks as follow: | ?xml version=1.0 encoding=UTF-8? | datasources | local-tx-datasource | jndi-nameOracleDS/jndi-name | connection-urljdbc:oracle:thin:@localhost:1521:XE/connection-url |

[jboss-user] [EJB/JBoss] - org.jboss.deployment.DeploymentException: Error in jbosscmp-

2008-05-28 Thread thomas2008ch
I created an Entity with XDoclet binding with JBoss in Eclipse. The file jbosscmp-jdbc.xml is automatically created and looks as follow: | ?xml version=1.0 encoding=UTF-8? | !DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 4.0//EN

[jboss-user] [EJB/JBoss] - Problem by jndi-lookup from Tomcat to JBoss

2008-05-25 Thread thomas2008ch
Hi all, I use the XDoclet to build EJB2-porject. The EJB2-project is deployed in JBoss 4.2.2. GA. I can access/connect to the bean from an jsp (index.jsp) in a war: | ... | body | % |com.zoo.Tiger tiger = null; |try{ |com.zoo.TigerHome home =

[jboss-user] [EJB/JBoss] - Re: Problem by jndi-lookup from Tomcat to JBoss

2008-05-25 Thread thomas2008ch
Surely you are right. Here is the exceptions I got in the browser: | exception | | org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 29 | | 26:exception.printStackTrace(); | 27:} | 28: % | 29: b%= tiger.roar()

[jboss-user] [EJB/JBoss] - Re: Problem by jndi-lookup from Tomcat to JBoss

2008-05-25 Thread thomas2008ch
In the log file I got the full stack trace: | SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception | java.lang.NullPointerException | at org.apache.jsp.index_jsp._jspService(index_jsp.java:87) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) |

[jboss-user] [EJB/JBoss] - Re: Problem by jndi-lookup from Tomcat to JBoss

2008-05-25 Thread thomas2008ch
In the console I got followings. Seems it has problem with the jndi-lookup. | INFO: Deploying web application archive TestXDocletWeb.war | javax.naming.NameNotFoundException: Name Tiger is not bound in this Context | at org.apache.naming.NamingContext.lookup(NamingContext.java:770)

[jboss-user] [EJB/JBoss] - Re: Problem by jndi-lookup from Tomcat to JBoss

2008-05-25 Thread thomas2008ch
In the Global JNDI Namespace I see followings: | Global JNDI Namespace | ... | +- Tiger (proxy: $Proxy69 implements interface com.zoo.TigerHome,interface javax.ejb.Handle) | ... | ... | +- local (class: org.jnp.interfaces.NamingContext) | | +- [EMAIL PROTECTED] (proxy:

[jboss-user] [EJB/JBoss] - Re: Problem by jndi-lookup from Tomcat to JBoss

2008-05-25 Thread thomas2008ch
Ok, I solved the problem. I make the same error again as last time. :-) I have to use the environment by JNDI-lookup as follow: ... com.zoo.TigerHome home = com.zoo.TigerUtil.getHome(props); ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4153230#4153230

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Problem by using Tomcat (web) to access JBoss (app)

2008-05-12 Thread thomas2008ch
Hi all, I build an application based on http://trailblazer.demo.jboss.com/EJB3Trail/persistence/index.html;, which contains an EJB-project (JAR) and a Web-project (WAR). If I deploy both on the JBoss server, it runs wonderful. Now I deploy the web-project, i.e. the WAR to Tomcat Server 6.0.

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Problem by using Tomcat (web) to access JBoss (app)

2008-05-12 Thread thomas2008ch
The JSP looks as follow: | ... | %@ page | import=javax.naming.*,java.text.*,java.util.*,com.wei.chen.ejbs.stateless.*,com.wei.chen.ejbs.entity.*% | | %!private Calculator cal = null; | private NumberFormat nf = null; | | public void jspInit() { | try

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Problem by using Tomcat (web) to access JBoss (app)

2008-05-12 Thread thomas2008ch
It helps! Many thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4150150#4150150 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4150150 ___ jboss-user mailing list

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: A question about Configure Persistence Context with Orac

2008-05-11 Thread thomas2008ch
Many thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4150010#4150010 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4150010 ___ jboss-user mailing list

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: A question about Configure Persistence Context with Orac

2008-05-10 Thread thomas2008ch
Here is an example for using HSQL. But how can I set the username and password? | persistence | persistence-unit name=ejb3trail | jta-data-sourcejava:/DefaultDS/jta-data-source | properties | property name=hibernate.hbm2ddl.auto | value=create-drop/

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - A question about Configure Persistence Context with Oracle

2008-05-10 Thread thomas2008ch
How can I write the persistence.xml for connection to Oracle Express 10g? I've read the documentation from JBoss but I find the docs is not so good. Besides, which file should have in which I can put the user name and password for the database? Does someone know any documentation about this?

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: A question about Configure Persistence Context with Orac

2008-05-10 Thread thomas2008ch
OK, I find the file oracle-ds.xml. It should be the correct one. Besides I find some examples from the internet. The persistence.xml for Oracle looks as follow: | persistence | persistence-unit name=ejb3trail | jta-data-sourcejava:/OracleDS/jta-data-source | properties |

[jboss-user] [JNDI/Naming/Network] - A question about dependency injection @EJB

2008-05-09 Thread thomas2008ch
In the EJB3 there is a new feature called dependency injection. With this new feature one doesn't need using the JNDI lookup calls. I try use this but it doesn't work. I get NULL-Pointer Exception. Here are my codes: | @Remote | public interface MyTestBeanRemote { | public String

[jboss-user] [EJB/JBoss] - A question about dependency injection @EJB

2008-05-09 Thread thomas2008ch
See here please: http://www.jboss.com/index.html?module=bbop=viewtopict=135253 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149665#4149665 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149665

[jboss-user] [JNDI/Naming/Network] - Re: A question about dependency injection @EJB

2008-05-09 Thread thomas2008ch
jaikiran wrote : In JBoss-4.2.x (or prior versions) the injection will not work for standalone clients or servlets. It works only in the EJB layer. The injection in application clients and servlets is supported in JBoss-5 (which is in Beta). | 1. I've downloaded the JBoss 5 Beta4. But it's

[jboss-user] [JNDI/Naming/Network] - Re: A question about dependency injection @EJB

2008-05-09 Thread thomas2008ch
In JBoss-4.2.x, the @RemoteBinding was part of org.jboss.annotation.ejb package. import org.jboss.annotation.ejb.RemoteBinding; In JBoss-5, the @Remote binding is now part of org.jboss.ejb3.annotation package. import org.jboss.ejb3.annotation.RemoteBinding; Did you ensure that you changed

[jboss-user] [JNDI/Naming/Network] - Re: A question about dependency injection @EJB

2008-05-09 Thread thomas2008ch
But this doesn't work in JBoss 5 Beta4. I can't find the JNDI Name in the JNDI View List. In JBoss-4.2.x, the @RemoteBinding was part of org.jboss.annotation.ejb package. import org.jboss.annotation.ejb.RemoteBinding; In JBoss-5, the @Remote binding is now part of org.jboss.ejb3.annotation

[jboss-user] [JNDI/Naming/Network] - Re: A question about dependency injection @EJB

2008-05-09 Thread thomas2008ch
To jaikiran: You are right. Many thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149788#4149788 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149788 ___ jboss-user

[jboss-user] [EJB 3.0] - In which JAR can I find javax.ejb.EJBNoSuchObjectException

2008-05-09 Thread thomas2008ch
Very often I will find a class but don't know in which JAR I can find it. Has someone an idea to do that? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149817#4149817 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149817

[jboss-user] [EJB/JBoss] - java.lang.ClassNotFoundException: org.jnp.interfaces.NamingC

2008-05-08 Thread thomas2008ch
Hi all, I've wrote a small ejb3 stateless session bean program and have deploy the JAR to the server (JBoss 4.2.1.GA). Then I wrote a test client and try to access the bean I got exception as follow: Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory

[jboss-user] [Installation, Configuration DEPLOYMENT] - How to deploy JAR onto server?

2008-05-08 Thread thomas2008ch
Hi all, I downloaded and installed the JBoss 4.2.1.GA. I've also written a small ejb3 project and save it as JAR. Now I wanto to know how can I deploy this JAR to the srever? Simply copy the JAR under \jboss-4.2.1.GA\server\default\deploy ? Regards Thomas View the original post :

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How to deploy JAR onto server?

2008-05-08 Thread thomas2008ch
I wonder why JBoss Server doesn't look like as the other servers such as Geronimo, BEA Weblogic etc. where one can deploy files in AdminConsole? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149309#4149309 Reply to the post :

[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2008-05-08 Thread thomas2008ch
Thanks for the info. I can go astep further. But now I get another exception as follow, seems it is a problem of compatability: Caused by: java.io.InvalidClassException: org.jboss.ejb3.LocalProxy; local class incompatible: stream classdesc serialVersionUID = -6521545933800264895, local class

[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2008-05-08 Thread thomas2008ch
The exception of compatabability obve is resolved. Client Now I got another exception: Exception in thread main javax.ejb.EJBException: Invalid invocation of local interface (null container) at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:77) at

[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2008-05-08 Thread thomas2008ch
Here is all my codes: MyBeanLocal.java @Local public interface MyBeanLocal { public String test(String text); } TestMyBean.java *** @Stateless public class TestMyBean implements MyBeanLocal { public static final String LocalJNDIName =

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How to deploy JAR onto server?

2008-05-08 Thread thomas2008ch
jaikiran wrote : | The free (community) version of JBoss does not have this feature. From what i have read in these forums, the paid version of JBoss has this facility. | This is not good. :-) Besides, how can I undeploy the deployed JAR? Simply delete it? Should I stop the server first?

[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2008-05-08 Thread thomas2008ch
jaikiran wrote : You cannot use an Local interface from a remote client (the standalone java client, running in its own JVM). You will require a remote interface for the bean. Use an interface with @Remote. You are right. Now I change the Local to remote as follow: MyBeanLocal.java

[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2008-05-08 Thread thomas2008ch
Here is the list. Where can I find the correct jndi-name? Besides, I try your alternativ but I get Exception of MyJNDIName not bound. Global JNDI Namespace +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair) +- jmx (class: org.jnp.interfaces.NamingContext) | +- invoker

[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2008-05-08 Thread thomas2008ch
I see in the list folowings: | +- TestMyBean (class: org.jnp.interfaces.NamingContext) | | +- local (proxy: $Proxy65 implements interface com.wei.chen.MyBeanLocal,interface org.jboss.ejb3.JBossProxy,interface | It is still local though I've changed to remote in my codes. How can I

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How to deploy JAR onto server?

2008-05-08 Thread thomas2008ch
Many thanks to your reply! By the way, I've installed the JBoss 4.2 as a server in Eclipse 3.4. How can I deploy my ejb-project onto the JBoss server? I click Run on server but it seems not works. View the original post :

[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2008-05-08 Thread thomas2008ch
jaikiran wrote : anonymous wrote : +- TestMyBean (class: org.jnp.interfaces.NamingContext) | | | +- local (proxy: $Proxy65 implements interface com.wei.chen.MyBeanLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | By the way, are you sure that your

[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2008-05-08 Thread thomas2008ch
I got it. Many thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149366#4149366 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149366 ___ jboss-user mailing list