[JBoss-user] [Beginners Corner] - Re: servlet depends on MBean!

2005-09-13 Thread vlokesh
Package your servlet in a war file. Package your mbean in a SAR file. Create jboss-web.xml under WEB-INF folder and mention the SAR dependency in that file. Example ** jboss-web.xml under WEB-INF < jboss-web > < depends >someservice:mbeanName Regards. Lokesh. View the original post :

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Can't save data in database

2005-09-12 Thread vlokesh
Can you post your hibernate.cfg.xml file for reference. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894370#3894370 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894370 -

[JBoss-user] [Beginners Corner] - Re: java.lang.NoClassDefFoundError: antlr/RecognitionExcepti

2005-09-12 Thread vlokesh
Your Query is wrong Change this return (CustomerCMP) em.createQuery("from Customer c where c.Name =:Name").getSingleResult() return em.createQuery("from Customer c").getResultList(); To return (CustomerCMP) em.createQuery("from CustomerCMP

[JBoss-user] [Beginners Corner] - Re: java.lang.NoClassDefFoundError: antlr/RecognitionExcepti

2005-09-12 Thread vlokesh
What configuration are you using for your deployment? default or all? The error says that you dont have antlr.jar in your classpath. If you are deploying the ejb app under all configuration then it will not throw that exception. antlr.jar is used to constructing the queries. Regards. Lokesh

[JBoss-user] [Installation, Configuration & Deployment] - Re: JBoss 4.0.2 web deployment module query

2005-09-12 Thread vlokesh
I guess you did something wrong in creating the .war file. According to me you might have created war on example2 folder. Dont do this, go to example2 folder and then create the war file. For example if your folder is under c:\example2 then do the following. 1) cd c:\example2 2) jar -cvf exam

[JBoss-user] [Installation, Configuration & Deployment] - Re: server.log gets deleted every time jboss server starts u

2005-09-12 Thread vlokesh
Use org.apache.log4j.DailyRollingFileAppender in place of RollingFileAppender. Example *** < appender name="File" class="org.jboss.logging.appender.DailyRollingAppender > < param name="FILE" value="${jboss.server.home.dir}/log.server.log}/> < param name="Append" value="false"/> < param n

[JBoss-user] [Beginners Corner] - Re: JBoss TMP Folder

2005-09-12 Thread vlokesh
Claudia, Can you please post the exception stack for my reference. You can find the full stack under /server//log folder. If you are using configuration then replace the with all. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894347#

[JBoss-user] [Beginners Corner] - Re: JBoss TMP Folder

2005-09-12 Thread vlokesh
Generally this should not be the behaviour of JBoss AS. I am trying to understand whats happening in your case. In the mean time can you do the following steps. 1) Stop JBoss AS. 2) Delete all the folders under /tmp folder manually. 3) Restart the JBoss AS and test your application. Make sure

[JBoss-user] [Installation, Configuration & Deployment] - Re: Deploying web application war file on JBoss App Svr

2005-09-11 Thread vlokesh
Can you check your login-config.xml under /server/default/conf folder? You application might be referring to the default login configuration used by the security domain that doesnt have any application-policy mentioned. *

[JBoss-user] [Installation, Configuration & Deployment] - Re: How to deploy a sar after a jar?

2005-09-11 Thread vlokesh
You need to tell the SAR that it depends on JAR File by editing its jboss-service.xml file. Take a look at the following example for your reference. < mbean code="xxx" name="yyy" > < depends >jboss:j2ee:service=EJB,jndiName=jName< /depends > < mbean > you should replace the jnName in the abov

[JBoss-user] [Installation, Configuration & Deployment] - Re: How to deploy a sar after a jar?

2005-09-11 Thread vlokesh
You need to tell the SAR that it depends on JAR File by editing its jboss-service.xml file. Take a look at the following example for your reference. jboss:j2ee:service=EJB,jndiName=jName you should replace the jnName in the above example with the jndiName on which your SAR is depended. If

[JBoss-user] [Beginners Corner] - Re: Jboss warning(No appenders could be found for logger) du

2005-09-11 Thread vlokesh
Make sure that you have log4j.xml file under your /server//conf folder. can be a) all b) default or c) minimal which is according to your configuration. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894152#3894152 Reply to the post :

[JBoss-user] [Beginners Corner] - Re: ClassCastException

2005-09-11 Thread vlokesh
please change /server/all/deploy in my previous post to /server/all/lib. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894151#3894151 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894151

[JBoss-user] [Beginners Corner] - Re: ClassCastException

2005-09-11 Thread vlokesh
Remove xerces jar file from /server/all/deploy folder. Xerces already exists under /lib/endorsed folder. as xercesImpl.jar and loaded by Server Loader. Trying to load two jars with the same classes will cause class cast exceptions. Remove the xerces jar from /server/all/deploy folder and try

[JBoss-user] [Beginners Corner] - Re: jboss-jmx.jar 0 download - where???

2005-09-11 Thread vlokesh
It can be found under /lib folder. Where is the root directory of your JBOSS Installation. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894149#3894149 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&

[JBoss-user] [Beginners Corner] - Re: JBoss TMP Folder

2005-09-11 Thread vlokesh
The tmp directory is the location to which the deployments are copied for local use. All files (including subfolders) in this directory will be deleted on every start up of the JBoss AS. If you find that your JSP file doesnt have the correct timestamp matching then it might not have been compi

[JBoss-user] [JBossCache] - Using JBoss Transactional Cache in distributed clustered env

2005-08-26 Thread vlokesh
Hello, I want to implement JBoss Transactional Cache in distributed clustered environment. I want to know that if i implement distributed cache will there be any performance/transactional issues due to cache replication? For example, I have two nodes 'A' and 'B' which are using distributed cac