[JBoss-user] [Beginners Corner] - Re: servlet depends on MBean!
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 /jboss-web Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894572#3894572 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894572 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: JBoss TMP Folder
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 that you delete everything under /tmp folder. Thanks Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894242#3894242 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894242 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: JBoss TMP Folder
Claudia, Can you please post the exception stack for my reference. You can find the full stack under JBOSS_HOME/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=bbop=viewtopicp=3894347#3894347 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894347 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: server.log gets deleted every time jboss server starts u
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 name=Threshold value=INFO/ !-- Rollover at midnight -- param name=DatePattern value='.'-MM-dd/ !-- Rollover at top of each hour -- param name=DatePattern value='.'-MM-dd-HH/ !-- Remaing elements after this should be the same as RollingAppender -- /appender Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894350#3894350 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894350 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: JBoss 4.0.2 web deployment module query
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 example2.war * you might have done as below. 1) c:\ jar -cvf example2.war example2/* or zipped it using tools like winzip. If you still like to do the way you did then you need to change the servlet mapping in the web.xml...you need to specify url-pattern/example2/servlet/HelloWorldurl-pattern Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894351#3894351 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894351 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: java.lang.NoClassDefFoundError: antlr/RecognitionExcepti
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. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894356#3894356 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894356 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: java.lang.NoClassDefFoundError: antlr/RecognitionExcepti
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 c where c.Name =:Name).getSingleResult() return em.createQuery(from CustomerCMP c).getResultList(); in both method calls. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894369#3894369 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894369 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Can't save data in database
Can you post your hibernate.cfg.xml file for reference. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894370#3894370 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894370 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: JBoss TMP Folder
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 compiled during the deployment. To test, edit jsp once again with some content and save it, undo the changes and save it again. This should change the timestamp in the JBOSS_HOME/server//deploy folder. If you see the timestamp change in this folder then everything should work fine. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894148#3894148 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894148 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: jboss-jmx.jar 0 download - where???
It can be found under JBOSS_HOME/lib folder. Where JBOSS_HOME is the root directory of your JBOSS Installation. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894149#3894149 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894149 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: ClassCastException
Remove xerces jar file from /server/all/deploy folder. Xerces already exists under JBOSS_HOME/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 running your application. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894150#3894150 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894150 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: ClassCastException
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=bbop=viewtopicp=3894151#3894151 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894151 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Jboss warning(No appenders could be found for logger) du
Make sure that you have log4j.xml file under your JBOSS_HOME/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=bbop=viewtopicp=3894152#3894152 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894152 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: How to deploy a sar after a jar?
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 SAR is dependent on multiple files then you can use depends-list tag as follows. depends-list depends-list-elementjboss:j2ee:service=EJB,jndiName=jName1 depends-list-elementjboss:j2ee:service=EJB,jndiName=jName2 /depends-list Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894153#3894153 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894153 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: How to deploy a sar after a jar?
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 above example with the jndiName on which your SAR is depended. If SAR is dependent on multiple files then you can use depends-list tag as follows. mbean code=xxx name=yyy depends-list depends-list-elementjboss:j2ee:service=EJB,jndiName=jName1 depends-list-elementjboss:j2ee:service=EJB,jndiName=jName2 /depends-list /mbean Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894154#3894154 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894154 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Deploying web application war file on JBoss App Svr
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. * !-- The default login configuration used by any security domain that does not have a application-policy entry with a matching name -- application-policy name = other !-- A simple server login module, which can be used when the number of users is relatively small. It uses two properties files: users.properties, which holds users (key) and their password (value). roles.properties, which holds users (key) and a comma-separated list of their roles (value). The unauthenticatedIdentity property defines the name of the principal that will be used when a null username and password are presented as is the case for an unuathenticated web client or MDB. If you want to allow such users to be authenticated add the property, e.g., unauthenticatedIdentity=nobody -- login-module code = org.jboss.security.auth.spi.UsersRolesLoginModule flag = required / /application-policy * Create users.properties and roles.properties under conf folder and feed with some user data and check it. Regards. Lokesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894155#3894155 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894155 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Using JBoss Transactional Cache in distributed clustered env
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 cache. If Node 'A' commits a transaction and Node 'B' is working on the same data on cache what will be the result? Does the cache on Node 'B' gets updated before the transaction is commited? Please suggest me. Thanks Regards. Lokesh. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3891807#3891807 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891807 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user