[jboss-user] [JBossMQ] - Re: Auto-delete unretreived messages?
Set message expiration? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172960#4172960 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172960 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing JBoss Datasource from EJB 3.0
Thank you jaikiranji Mabimal View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172958#4172958 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172958 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing JBoss Datasource from EJB 3.0
Maybe this is what you want: MyAppEjb.jar | | | | | |- configuration.xml | | | | | |- org | | | | | |--- myapp | | | | | | | |--- MyConfigurationReader.class | In your MyConfigurationReader.class (which reads the configuration.xml) you could do this: InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("configuration.xml"); | Then pass that inputStream to an xml parser. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172955#4172955 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172955 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: exception after out-of-the-box deploy
hello Peter, thanks to your reply I found out that I do have an access rights issue here. If I unzip the application in my home directory, JBoss starts without complaining. What I didn't mention was that /datacommon is a shared fat32 partition, and i think i have to step through the mount options I used. Cheers from Berlin / Germany, Jan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172953#4172953 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172953 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Lookup EJB via JNDI
I can't modify bean that I want to lookup. | @Local | public interface LookupBeanLocal | { | public Object lookup(String name); | } | | @Stateless | public class LookupBean implements LookupBeanLocal | { | public Object lookup(String name) | { | // Here I need to get bean with name 'name' | } | } | Then in other bean I want to get bean by name like @EJB annotation can do: | @Stateless | public class MyBean implements MyBeanLocal | { | @EJB | private LookupBeanLocal lookupBean; | | @EJB(name = "MyBean") | private MyBeanLocal myBean; | | public void test() | { | MyBeanLocal me = (MyBeanLocal) lookupBean.lookup("MyBean"); | assert myBean.equals(me); | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172952#4172952 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172952 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: UnicastRef2
"nagaraju.uppara" wrote : Please help me the same This thread is more than a year old. You will have to provide more details about your setup (Operating system, JBoss and Java versions) and what issue you are running into. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172950#4172950 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172950 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing JBoss Datasource from EJB 3.0
Hi jaikiranji, I actually want to access my Configuration.xml text by keeping it in the context root, but where to keep this file ( I am in confusion of it too). Here in this xml file, i want to keep username,password,ip,maxcon,idletime etc. which i want to access from class file and pass it to ConnectionPool class. And whenever my client accesses EJB, i will call this class and maintain the Connection. But how to achieve this? Thank you Mabimal View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172949#4172949 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172949 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Application Access Error
Looks like a classloader issue. Do you have more than one jar on the server or your application which has this struts class? Also see this http://wiki.jboss.org/wiki/ClassCastExceptions for debugging such issues. The jmx-console method mentioned in that wiki might help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172947#4172947 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172947 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Lookup EJB via JNDI
Post the code of your bean. anonymous wrote : It doesn't work because of I need to specifiy application name here: | | | | new InitialContext().lookup("MyApp/BeanLocal/local"); | | That's the default JNDI name given to the bean. You can override it by using @RemoteBinding or @LocalBinding annotation on your bean. Here's an example: import org.jboss.ejb3.annotation.LocalBinding; import org.jboss.ejb3.annotation.RemoteBinding; | @Stateless | @LocalBinding (jndiBinding="MyUserManagerBeanLocal") | @RemoteBinding (jndiBinding = "MyUserManagerBeanRemote") | public class UserManagerBean implements UserManagerLocal, UserManagerRemote { | You can then use the MyUserManagerBeanLocal or MyUserManagerBeanRemote as the jndi name in the JNDI lookup. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172946#4172946 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172946 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing JBoss Datasource from EJB 3.0
"mabimal" wrote : Hello all, | | I am building just the ejb-module(EJB-JAR) not the Enterprise Archive (EAR) file. So please help me to find the contextRoot of the ejb-module. What is the code to achieve the contextRoot of the EJB-module. | You have to tell us, what exactly you are trying to do with the context root? Why do require that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172945#4172945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172945 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Lookup EJB via JNDI
How can I lookup EJB via JNDI like @EJB annotation do it? I don't know neither application name nor bean name at compile time. | ... | @EJB | private BeanLocal bean; | ... | I tried using InitialContext: | new InitialContext().lookup("BeanLocal/local"); | It doesn't work because of I need to specifiy application name here: | new InitialContext().lookup("MyApp/BeanLocal/local"); | Then I tried using java:comp/env: | ... | @Resource | private EJBContext ctx; | ... | ctx.lookup("BeanLocal"); | ... | But it always returns null. It's because of my java:comp/env includes only the current bean. I know there must be a method to lookup EJB. If not how does @EJB annotation work (I couldn't find implementation of @EJB annotation in JBoss 5.0.0 sources)? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172937#4172937 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172937 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - use seam when i call my page happen "Could not open JPA Enti
i use seam ,richfaces with spring integration,the components.xml is that: http://jboss.com/products/seam/components"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:spring="http://jboss.com/products/seam/spring"; xmlns:persistence="http://jboss.com/products/seam/persistence"; xmlns:core="http://jboss.com/products/seam/core"; xmlns:drools="http://jboss.com/products/seam/drools"; xmlns:bpm="http://jboss.com/products/seam/bpm"; xmlns:security="http://jboss.com/products/seam/security"; xmlns:mail="http://jboss.com/products/seam/mail"; xsi:schemaLocation=" http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd http://jboss.com/products/seam/components http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd http://jboss.com/products/seam/components-2.0.xsd http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd http://jboss.com/products/seam/spring http://jboss.com/products/seam/spring-2.0.xsd";> /security.drl and my spring config file is: http://www.springframework.org/schema/beans"; xmlns:aop="http://www.springframework.org/schema/aop"; xmlns:util="http://www.springframework.org/schema/util"; xmlns:seam="http://jboss.com/products/seam/spring-seam"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:tx="http://www.springframework.org/schema/tx"; xmlns:jee="http://www.springframework.org/schema/jee"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd http://jboss.com/products/seam/spring-seam http://jboss.com/products/seam/spring-seam-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"; default-lazy-init="true"> com.happybolin.seam.domain.model.Account com.happybolin.seam.domain.model.Cmsuser and i pack the ear deploy into jboss server,jboss is worked well.so i think spring container and seam container work well.but when i call my application http://localhost:8080/Seamspring/index.html jboss server render: Caused by: java.lang.IllegalStateException: JTA EntityManager cannot access a tr ansactions at org.hibernate.ejb.AbstractEntityManagerImpl.getTransaction(AbstractEn tityManagerImpl.java:316) at org.jboss.seam.persistence.EntityManagerProxy.getTransaction(EntityMa nagerProxy.java:110) at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.seam.ioc.spring.SeamManagedEntityManagerFactory$SeamManaged PersistenceContextHandler.invoke(SeamManagedEntityManagerFactory.java:142) at $Proxy211.getTransaction(Unknown Source) at org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction(Defaul tJpaDialect.java:69) at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransact ionManager.java:326) ... 57 more 11:36:38,093 ERROR [SeamPhaseListener] uncaught exception java.lang.IllegalStateException: Could not start transaction please help me!!! View the original post : http://www.jboss
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss AS 4.2.3 start as service question
Originally I had the log file as being /var/log/jboss, but it was not creating it on its own, and when I created it it would not even write to it. So I even tried moving it to the $JBOSS_HOME/server/default/log directory, it has user and group of "jboss". I do not get why it will not write to it. If I execute "service jboss start" the only thing logged to the console is "Starting jboss.." as found in my startup script before the actual command is executed. Nothing else is written to the console. However, I did figure it out :-). su -l apparently does not work on my system. While it gives no error, if I use sudo -u instead it works perfectly :-): sudo -u jboss $JBOSS_HOME/bin/run.sh > $JBOSS_LOG_FILE 2> /dev/null & View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172934#4172934 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172934 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossMQ] - Re: Sonic JCA Resource Adapter Wait for Available Session En
Hi vimalm, Did you manage to solve this problem ? I got the same problem as you and stuck on how to fix it. Thanks, Binh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172932#4172932 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172932 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Native WS-Reliable Messaging Error - The RM Destination requ
I am trying to implement a web service that does both MTOM-XOP and reliable messaging. I have the service running with MTOM-XOP and patterned it after the MTOMEndPoint EJB3 example provided in the jboss native ws 3.0.2. I am running JBoss 4.2.2. I then tried to implement the steps from the Reliable Messaging Tutorial at http://jbws.dyndns.org/mediawiki/index.php?title=Native_WS-ReliableMessaging_Tutorial I had problems with the wsdl I modified, so I added the following annotations to the endpoint and let JBOSS build the wsdl instead @WebService( | name = "EflexServiceEndpoint", | serviceName = "EflexService", | endpointInterface = "com.eflex.webservice.EflexServiceEndpoint" | // wsdlLocation = "WEB-INF/wsdl/EflexService.wsdl" | ) | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) | @BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";) | @EndpointConfig | ( |configFile = "META-INF/wsrm-jaxws-endpoint-config.xml", |configName = "Standard WSRM Endpoint" | ) | @PolicyAttachment(@Policy( | policyFileLocation = "META-INF/wsrm-exactly-once-in-order-policy.xml", | scope = PolicyScopeLevel.WSDL_BINDING) | ) | | public class EflexServiceEndpointBean implements EflexServiceEndpoint | { | | Here is the exception I get: anonymous wrote : org.jboss.ws.extensions.wsrm.RMFault: The RM Destination requires the use of WSRM | at org.jboss.ws.extensions.wsrm.server.RMInvocationHandler.prepareResponseContext(RMInvocationHandler.java:134) | at org.jboss.ws.extensions.wsrm.server.RMInvocationHandler.invoke(RMInvocationHandler.java:306) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:221) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | Which seems to say that my service is expecting WSRM, but that the client has not implemented it. Here is my client code. | public final class EflexServiceClient | { | |private static final String serviceURL = "http://localhost:80/wseflex/EflexService";; | |public static void main(String[] args) throws Exception |{ |InputStream is = null; |if (args.length != 0) |{ |is = new FileInputStream(args[0]); |} else { |is = new ByteArrayInputStream("reqest".getBytes()); |} | | QName serviceName = new QName("http://webservice.eflex.com/";, "EflexService"); | URL wsdlURL = new URL(serviceURL + "?wsdl"); | Service service = Service.create(wsdlURL, serviceName); | EflexServiceEndpoint port = (EflexServiceEndpoint)service.getPort(EflexServiceEndpoint.class); | SOAPBinding binding = (SOAPBinding)((BindingProvider)port).getBinding(); | binding.setMTOMEnabled(true); | ((StubExt)port).setConfigName("Standard Anonymous WSRM Client", "META-INF/wsrm-jaxws-client-config.xml"); | | Source src = new StreamSource(is); | SourceRequest request = new SourceRequest(); | request.setData(src); | | SourceResponse response = port.echoSource(request); | Source respSource = response.getData(); | | ((RMProvider)port).closeSequence(); | ... | | Any help on this is greatly appreciated. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172930#4172930 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172930 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: How to remove themes from the options list?
Hello everybody, I'm a beginner user of the JBOSS Portal with many doubts. I'd be grateful if you answer a question: How can I remove themes from the options list? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172931#4172931 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172931 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Application Access Error
Hi, iam getting the following exception while trying to access my application that is deployed in Jboss 4.0.2 GA. java.lang.LinkageError: loader constraints violated when linking org/apache/struts/action/ActionMapping class at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.struts.chain.commands.util.ClassUtils.getApplicationInstance(ClassUtils.java:66) at org.apache.struts.chain.commands.servlet.CreateAction.getAction(CreateAction.java:66) at org.apache.struts.chain.commands.AbstractCreateAction.execute(AbstractCreateAction.java:82) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.bofa.ach.acxis.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:95) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Can any one help me in resolving the issue. Thanks dasari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172928#4172928 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172928 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossMQ] - Re: Message delivery stopped after a while (using HTTPIL)
Hi srouil, Did you manage to solve that problem ? I got exactly the same problem and stuck on how we could fix it. Thanks Binh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172926#4172926 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172926 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Is there a wsconsume equivalent to wsdl2Java's namespace
This solution worked for me: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118735#4118735 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172922#4172922 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172922 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: exception after out-of-the-box deploy
I do not see anything obviously wrong. The JDK 6 issue typically will not show up until you start using web services. Usually, when others have gotten the "Trying to install an already registered mbean" there is something wrong with the installation of JBossAS, but the problem was most often solved by downloading the ZIP file and installing it again. I assume that your account has full access rights to the /datacommon/java/jboss-4.2.3.GA directory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172921#4172921 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172921 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.0.0.Alpha1 is released
ok - will do. Yes the same thing happens with 2.0. I moved to 2.1 in the hope that this might be fixed. Adding the jar back manually after deleting it from the manifest works both in eclipse and when you deploy. I'll post a jira. It is also possible there's something funky in my eclipse. I just blew away my config and I'm downloading a clean eclipse 3.4 and reinstalling everything. If I still have the issue I'll post to jira tonight. beren View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172920#4172920 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172920 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] Problems with TimerBean and transaction-rollback
Hi everybody, I'm working with JBoss 5 CR 1 playing around with a Timer Bean. Here are some details: - the Timer's time-out method is marked with a RequiresNew TX-attribute - the timeout I create is a one-shot timer (it has to be executed exactly once) The Timer Bean's timeout code resembles what follows: @Timeout @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) public void foo(Timer timer) { try { if(accessDataStore()) { ... } else { ... } } catch(DataStoreException e) { sessionCtx.setRollbackOnly(); } } What upsets me is that whenever the guard of the if statement throws a DataStoreException, the setRollbackOnly() method is called but the timer does not get rescheduled: querying the PUBLIC.TIMERS table of the JBoss Hypersonic internal DB, I can see no timer is scheduled anymore. This does not sound appropriate to me due to what the JEE 5 spec states: "If the timer is a single-action timer, the container removes the timer after the timeout callback method has been successfully invoked (e.g., when the transaction that has been started for the invocation of the timeout callback method commits)." (JSR 220 - EJB Core Contracts and Requirements v 3.0 Final Release - Section 18.2.2) I've temporarily solved the problem creating a repetitive-timer and canceling it if and only if the timeout method succeeds, but I feel like the right approach was the former one. Any help is appreciated. Thanks in advance, Francesco Russo smime.p7s Description: S/MIME cryptographic signature ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] Problems with TimerBean and transaction-rollback
Hi everybody, I'm working with JBoss 5 CR 1 playing around with a Timer Bean. Here are some details: - the Timer's time-out method is marked with a RequiresNew TX-attribute - the timeout I create is a one-shot timer (it has to be executed exactly once) The Timer Bean's timeout code resembles what follows: @Timeout @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) public void foo(Timer timer) { try { if(accessDataStore()) { ... } else { ... } } catch(DataStoreException e) { sessionCtx.setRollbackOnly(); } } What upsets me is that whenever the guard of the if statement throws a DataStoreException, the setRollbackOnly() method is called but the timer does not get rescheduled: querying the PUBLIC.TIMERS table of the JBoss Hypersonic internal DB, I can see no timer is scheduled anymore. This does not sound appropriate to me due to what the JEE 5 spec states: "If the timer is a single-action timer, the container removes the timer after the timeout callback method has been successfully invoked (e.g., when the transaction that has been started for the invocation of the timeout callback method commits)." (JSR 220 - EJB Core Contracts and Requirements v 3.0 Final Release - Section 18.2.2) I've temporarily solved the problem creating a repetitive-timer and canceling it if and only if the timeout method succeeds, but I feel like the right approach was the former one. Any help is appreciated. Thanks in advance, Francesco Russo smime.p7s Description: S/MIME cryptographic signature ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - exception after out-of-the-box deploy
Hello there, probably something obvious I'm missing, but I'm kind of stuck and as such thankful for any help. I'm trying to run an out-of-the-box JBoss 4.2.3.GA on my freshly installed linux system (ubuntu 8.04). Having set JAVA_HOME to java-6-sun, I get the following exception after starting bin/run.sh I read something about this maybe an Java 5 issue, but I dont see many places where i might have misconfigured my java. I have another system up, same Java-Version, same environment configuration (at least as far as i can say... ;-) ), and it runs like a charme... many thanks for any help, jan | [EMAIL PROTECTED]:/datacommon/java/jboss-4.2.3.GA/bin$ ./run.sh | = | | JBoss Bootstrap Environment | | JBOSS_HOME: /datacommon/java/jboss-4.2.3.GA | | JAVA: /usr/lib/jvm/java-6-sun/bin/java | | JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 -Djava.net.preferIPv4Stack=true | | CLASSPATH: /datacommon/java/jboss-4.2.3.GA/bin/run.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar | | = | | 23:01:30,461 INFO [Server] Starting JBoss (MX MicroKernel)... | 23:01:30,473 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439) | 23:01:30,474 INFO [Server] Home Dir: /datacommon/java/jboss-4.2.3.GA | 23:01:30,474 INFO [Server] Home URL: file:/datacommon/java/jboss-4.2.3.GA/ | 23:01:30,474 INFO [Server] Patch URL: null | 23:01:30,474 INFO [Server] Server Name: default | 23:01:30,475 INFO [Server] Server Home Dir: /datacommon/java/jboss-4.2.3.GA/server/default | 23:01:30,475 INFO [Server] Server Home URL: file:/datacommon/java/jboss-4.2.3.GA/server/default/ | 23:01:30,475 INFO [Server] Server Log Dir: /datacommon/java/jboss-4.2.3.GA/server/default/log | 23:01:30,475 INFO [Server] Server Temp Dir: /datacommon/java/jboss-4.2.3.GA/server/default/tmp | 23:01:30,475 INFO [Server] Root Deployment Filename: jboss-service.xml | 23:01:30,807 INFO [ServerInfo] Java version: 1.6.0_06,Sun Microsystems Inc. | 23:01:30,808 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b22,Sun Microsystems Inc. | 23:01:30,808 INFO [ServerInfo] OS-System: Linux 2.6.24-19-generic,i386 | 23:01:31,145 INFO [Server] Core system initialized | 23:01:32,586 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ | 23:01:32,587 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml | 23:01:33,058 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc. | 23:01:33,058 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer | 23:01:33,216 INFO [TransactionManagerService] Starting recovery manager | 23:01:33,303 INFO [TransactionManagerService] Recovery manager started | 23:01:33,303 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference | 23:01:33,861 ERROR [MainDeployer] Could not create deployment: file:/datacommon/java/jboss-4.2.3.GA/server/default/deploy/ejb3.deployer/ | org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3 | at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103) | at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451) | at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) | at org.jboss.system.ServiceController.install(ServiceController.java:226) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy4.install(Unknown Source) | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172915#4172915 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172915 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jbos
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: UnicastRef2
Please help me the same View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172908#4172908 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172908 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - boot strapping spring inside Jboss
Hi there, I'm trying to bootstrap Spring and a bunch of spring related beans inside Jboss without using the .spring deployer, because I need to be able to deploy this inside WAS too. My web.xml and spring libraries work inside WAS, but when i put it over onto JBoss, JBoss reads the web.xml and everything appears to be okay, but it never triggers any of the Listeners, even to create them. Am i missing something? I've followed the following: http://www.codechimp.net/?p=22 Any help would be greatly appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172905#4172905 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172905 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: How to check with java code, if a deploy was sucessfull?
no... sory... I probablely wrote wrong the subject of the topic. To check with java code if a deploy was sucessfull, I can invoke method boolean isDeployed() of MainDeployer MBean... But I have to set a timer and invoke this method several times until I have "true". (with a time limit, because deploy can failed). I wana have a return when deploy finish, giving the answer if deploy was sucessfull or not... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172899#4172899 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172899 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: Missing version number in jar-version.xml
henk53 wrote : Wouldn't it be better to include this information in jar-versions.xml anyway, since that's where this information is also supposed to be, right? ;) This is known as preaching to the choir... henk53 wrote : jar-versions.xml ... does contain the exact versions for ... I have found that jar-versions.xml typically lists the JBossAS version number as the version number for the JARs that belong to JBoss, despite the fact that many of those JARs are in separate projects with their own release numbers. Makes it hard to determine what is included. But the manifest.mf seems to be more accurate. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172896#4172896 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172896 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Classloading issue (loading class from another jar)
Is this stack trace different than what you started with? You originally wrote "unable to acces class in our custom jar" which I interpreted to mean you were getting a ClassNotFound exception. The stack trace you posted is another issue entirely. I have no idea how to convince Struts to call your custom convert method. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172895#4172895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172895 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Portlet Instance
Hi, I also need to access the portlet instance id. Has this been fixed? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172894#4172894 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172894 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Single instance hosts several apps
By "performance analysis" I mean what have you done so far to determine where the bottleneck exists in the system? What system statistics have you monitored (CPU usage, thread counts, and so on)? Have you monitored garbage collection statistics? What application statistics have you monitored (for every servlet, EJB, and so on JBossAS provides an MBean that provides information such as number of calls, total/min/max response time)? Do the apps use a database and if so what database tools have you employed to ascertain the performance of the database? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172892#4172892 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172892 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: configuring jboss logs
There is no way to configure the logs to do this, but various JMX MBeans keep this kind of information. A cron job that uses twiddle to grab that data should work (this is basically what Nagios does). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172891#4172891 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172891 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.0.0.Alpha1 is released
Ok, so this looks like a Seam 2.1 issue. Have you tried with Seam 2.0 - does it happen there too ? ejb-jar needs to have jboss-seam.jar in manifest.mf; makes no sense without it. Could you report it in jira and we'll look at what is going on. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172887#4172887 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172887 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBossTools crash Easy Eclipse
easy-jboss-ide-aop 2.0.0.beta ? That does not look like something related to JBoss Tools ? In any case the problem is most likely XULRunner/Mozilla issues. Follow Denis instructions and let us know how that goes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172886#4172886 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172886 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Cannot connect to port 1099
Hi Brain, I am also facing the same issue while connecting to 1099 port for our application. Please let me know the steps to resolve the same. Thanks in Advance Warm Regards Nagaraju View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172884#4172884 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172884 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: Missing version number in jar-version.xml
Wouldn't it be better to include this information in jar-versions.xml anyway, since that's where this information is also supposed to be, right? ;) I noticed though that jar-versions.xml for Jboss 5 beta 1 does contain the exact versions for the different Hibernate/JPA jars. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172879#4172879 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172879 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Classloading issue (loading class from another jar)
Peter, Do you suggest any other steps to debug the issue.Did i make the issue clear? regards shiva View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172877#4172877 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172877 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Issues in Ejb 3.0 Deployment
Two things to try. In Eclipse, In the Package Explorer, when you expand your project there should be an entry for "JRE System Library" with a version in brackets behind it. What is that version? >From a command prompt, run: %java_home%\bin\javap -verbose -classpath xxx com.demo.hello.HelloBeanBean where xxx is the base directory into which Eclipse is compiling the classes. Post the output. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172876#4172876 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172876 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Single instance hosts several apps
We have an external partner (siteseeing) that conects one especific app every minute, and reports the times to us. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172875#4172875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172875 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - configuring jboss logs
Hi, Sorry if this the incorrect place for this, but could not find a specific topic for JBoss logs. Apart from the standard log configuration defined in the wiki: http://wiki.jboss.org/wiki/Logging What else is configurable in jBoss logs? I am particularly looking at how to configure the logs to contain some metrics at certain intervals. E.g.: Every X minutes, it should give me the threads in use, total threads available, free memory available etc. Is there a way to configure this? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172874#4172874 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172874 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: Missing version number in jar-version.xml
Most of the jar files contain a META-INF/manifest.mf file that identify the version for that jar file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172873#4172873 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172873 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Single instance hosts several apps
What kind of performance analysis have you done so far? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172872#4172872 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172872 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Clumsy JDBC configuration 2.2.0.CR7
Could you file a JIRA issue with specific configuration orderings as a test case? http://jira.jboss.com/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172869#4172869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172869 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Issues in Ejb 3.0 Deployment
Hi Kiran, Thanks for the quick response. As i said earlier, I have only one jdk in my system. 1.5.0._07 anonymous wrote : | C:\>echo %JAVA_HOME% | C:\Program Files\Java\jdk1.5.0_07 | anonymous wrote : C:\>java -version | java version "1.5.0_07" | Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) | Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing) Eclipse also points to the same. More over I am getting this exception only during ejb deployment. When i remove this ejb.jar from the ear, The other war files are properly deployed and functioning as well. When i try to deploy a ejb jar ( both via an ear or separately i am getting this problem ). I am kind of stuck over here. Thnx Vasu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172868#4172868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Missing version number in jar-version.xml
I use JBoss4.2.3 GA in a project, and need to check the jar versions in the JBoss AS distribution. I read ar-version.xml and found the version for hibernate3.jar, but could not find version information for hibernate-annotations.jar and hibernate-entitymanager.jar. I also noticed there are also other jar items that do not have the referenced jar version information. I'm wondering whether the information is missing or by some reason it's written in this way and how can I get the version information of the jars. Thanks a lot in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172866#4172866 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172866 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Single instance hosts several apps
Hi, I have a Jboss instance that servers 4 applications. Sometimes the response time increases in one of them. Is there a way to measure the impact of one app on another? How can I know if the increased response time is another app´s duty? Thanks, Andre View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172861#4172861 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172861 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence,JBoss/CMP, Hibernate , Database] - Re: Conection pool doesn ´t recycle
How this is done depends on the database and the JDBC driver. For example, see the instructions (and cautions) for MySQL at http://wiki.jboss.org/wiki/SetUpAMysqlDatasource View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172860#4172860 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172860 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem in deploying web modules
Wait a minute - I had asked someone on another thread to post the the contents of their war file so I got confused - ignore my two previous posts. Could you post the stack trace for the exception you are getting. Also, under what circumstances are you getting the zip file error? For example, does it occur when you deploy the war file? Does it happen is you copy the war file to the deploy folder first and then start the app server? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172858#4172858 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172858 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence,JBoss/CMP, Hibernate , Database] - Conection pool doesn´t recycle
Hi, I have a Jboss instance that has a database conection pool. At 3:00 in the morning the database stops to do backup, and when it starts my app can´t conect anymore. I think the conection pool should be automatically recicled when the database comes back. Any ideas on how to solve that problem? Any sugestion would be appreciated, André View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172857#4172857 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172857 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem in deploying web modules
Actually, "contents" is not the correct term. The JSPs probably act more like templates for the data that is provided by the sevlets. It looks like this app uses Seam - most of the actual on-screen data will come from EJBs or POJOs managed by Seam, but the JSPs will be used to position that data. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172856#4172856 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172856 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem in deploying web modules
Look in the *.jsp files - they contain the visual contents of the web application. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172855#4172855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172855 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: problem in understanding deployment
HI, Yes i checked in default/tmp/deploy folder. I am using jboss 4.0.2 version ..old version.. i dont see any *.war files in default/tmp/deploy folder. regards, seek View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172854#4172854 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: problem in understanding deployment
There might not be any html files. Instead, the web content could be provided by JSP files (*.jsp), by servlets (which will be Java *.class files), or by any number of other file types depending on the framework used. List the contents of the war file using the jar utility (it's in java_home/bin) as follows: jar -tf xxx.war Post the output for jar and we will go from there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172852#4172852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172852 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem in deploying web modules
META-INF/ META-INF/MANIFEST.MF WEB-INF/ WEB-INF/web.xml WEB-INF/classes/ WEB-INF/classes/com/ WEB-INF/classes/com/clarkware/ WEB-INF/classes/com// WEB-INF/classes/com//appname/ WEB-INF/classes/com//appname/domain/ WEB-INF/classes/com//appname/r3adapter/ WEB-INF/classes/com//appname/spring/ WEB-INF/classes/com//appname/transform/ WEB-INF/classes/com//appname/web/ WEB-INF/classes/com//appname/web/admin/ WEB-INF/classes/com//appname/web/ajax/ WEB-INF/classes/com//appname/web/assemblyline/ WEB-INF/classes/com//appname/web/component/ WEB-INF/classes/com//appname/web/component/Addon/ WEB-INF/classes/com//appname/web/component/deal/ WEB-INF/classes/com//appname/web/component/history/ WEB-INF/classes/com//appname/web/component/prefquestion/ WEB-INF/classes/com//appname/web/component/price/ WEB-INF/classes/com//appname/web/customer/ WEB-INF/classes/com//appname/web/deal/ WEB-INF/classes/com//appname/web/designbook/ WEB-INF/classes/com//appname/web/jbpm/ WEB-INF/classes/com//appname/web/material/ WEB-INF/classes/com//appname/web/milestone/ WEB-INF/classes/com//appname/web/model/ WEB-INF/classes/com//appname/web/prod/ WEB-INF/classes/com//appname/web/reports/ WEB-INF/classes/com//appname/web/reports/sales/ WEB-INF/classes/com//appname/web/site/ WEB-INF/classes/com//appname/web/site/holiday/ WEB-INF/classes/com//appname/web/tdm/ WEB-INF/classes/com//appname/web/util/ WEB-INF/classes/com//component/ WEB-INF/classes/com//component/addon/ WEB-INF/classes/com//component/attribute/ WEB-INF/classes/com//component/bpc/ WEB-INF/classes/com//component/dne/ WEB-INF/classes/com//component/dne/designnote/ WEB-INF/classes/com//component/dne/shapes/ WEB-INF/classes/com//component/dne/transform/ WEB-INF/classes/com//component/entitlement/ WEB-INF/classes/com//component/entitlement/action/ WEB-INF/classes/com//component/holiday/ WEB-INF/classes/com//component/milestone/ WEB-INF/classes/com//component/note/ WEB-INF/classes/com//component/optionlist/ WEB-INF/classes/com//component/organization/ WEB-INF/classes/com//component/orm/ WEB-INF/classes/com//component/pref/ WEB-INF/classes/com//component/price/ WEB-INF/classes/com//component/scenario/ WEB-INF/classes/com//component/scenario/deal/ WEB-INF/classes/com//component/seam/ WEB-INF/classes/com//component/security/ WEB-INF/classes/com//component/site/ WEB-INF/classes/com//component/team/ WEB-INF/classes/com//component/user/ WEB-INF/classes/com//component/user/domain/ WEB-INF/classes/com//component/user/web/ WEB-INF/classes/com//jbpm/ WEB-INF/classes/com//jbpm/action/ WEB-INF/classes/com//jgrapht/ WEB-INF/classes/com//synch/ WEB-INF/classes/com//synch/command/ WEB-INF/classes/com//synch/command/java/ WEB-INF/classes/com//synch/command/xml/ WEB-INF/classes/com//synch/graphwalker/ WEB-INF/classes/com//synch/milestone/ WEB-INF/classes/com//synch/ps/ WEB-INF/classes/com//synch/ps/ms/ WEB-INF/classes/com//synch/site/ WEB-INF/classes/com//synch/tdm/ WEB-INF/classes/com//synch/validator/ WEB-INF/classes/com//synch/walker/ WEB-INF/classes/com//tdm/ WEB-INF/classes/org/ WEB-INF/classes/org/springmodules/ WEB-INF/classes/org/springmodules/workflow/ WEB-INF/classes/org/springmodules/workflow/jbpm31/ WEB-INF/classes/org/springmodules/workflow/jbpm31/definition/ WEB-INF/dtd/ WEB-INF/lib/ WEB-INF/tld/ assets/ assets/_notes/ assets/skins/ jsp/ jsp/admin/ jsp/assemblyline/ jsp/component/ jsp/component/deal/ jsp/customer/ jsp/deal/ jsp/deal/cp/ jsp/deal/de/ jsp/deal/ds/ jsp/deal/material/ jsp/deal/ol/ jsp/deal/pl/ jsp/deal/task/ jsp/designbook/ jsp/designbook/monument/ jsp/designbook/note/ jsp/designbook/note/editor/ jsp/designbook/note/editor/META-INF/ jsp/designbook/note/editor/images/ jsp/designbook/note/editor/js/ jsp/designbook/note/editor/js/appname/ jsp/designbook/note/editor/js/imagePreloader/ jsp/designbook/note/editor/js/moveDiv/ jsp/designbook/note/editor/js/prototype/ jsp/designbook/note/editor/js/rico/ jsp/designbook/note/editor/js/walterzorn/ jsp/designbook/note/editor/js/xmlparser/ jsp/designbook/note/editor/theme/ jsp/designbook/printpreview/ jsp/eng/ jsp/eng/dc/ jsp/jbpm/ jsp/material/ jsp/milestone/ jsp/milestone/definition/ jsp/model/ jsp/model/option/ jsp/model/wb/ jsp/model/wb/fp/ jsp/model/wb/monument/ jsp/model/wb/template/ jsp/pno/ jsp/prod/ jsp/prod/forecast/ jsp/prod/ms/ jsp/prod/ps/ jsp/prod/ps/ei/ jsp/prod/ps/smc/ jsp/prod/ps/wa/ jsp/reports/ jsp/reports/schedule/ jsp/reports/schedule/milestone/ jsp/site/ jsp/site/holiday/ jsp/site/location/ jsp/synch/ jsp/synch/mp/ pages/ pages/allocationchange/ pages/assemblyline/ pages/component/ pages/component/addon/ pages/component/deal/ pages/component/history/ pages/component/optionList/ pages/component/prefquestion/ pages/component/price/ pages/de
[jboss-user] [Beginners Corner] - Re: Naming Service Error(could not start on port 1099)
Some possibilities: 1) Port 1099 is in use but tcpview is not showing it (there was a while on XP where tcpview did not show all opened ports - a later XP patch fixed this). Try using netstat, see if that helps. Oh, another way to tell of a port is open it to use telnet to test it: telnet localhost 1099 If the port is not open, you will get a connection error. If the port is open, you will see text+gibberish, and possibly a screen refresh (like using the 'cls' command) 2) You have a firewall and it is preventing the port from being opened. 3) The JVM is unable to open the port for some reason. JDK 1.3.1_01 is a very old version of 1.3.1, perhaps you should try using the latest patch for 1.3.1. (Looks like 1.3.1_19 is the latest for Windows) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172847#4172847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172847 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss AS 4.2.3 start as service question
It's empty? Did you turn off the console log? If not, it should have some contents - according to the strace the app server even opened up some sockets, so I know that it started up and thus will, by default, log to the console. Then look at the server/default/log/boot.log and server.log. See if there are any stack traces. If so, post the boot.log and the complete stack trace from server.log. (Do NOT post all of server.log. Though you could use grep to filter out the DEBUG log messages and post the rest.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172845#4172845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: problem in understanding deployment
Hi, Have you checked under default\tmp\deploy folder? Which version of jboss are you using ? Are there any tmp.war files other than your war file in tmp\deploy folder? Regards, Rajesh Pelluru View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172838#4172838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172838 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - JBM w/ EJB 2 MDB issue (new to JBM)
I was able to get the default queue producer\consumer set up and working fine with JMS 1.4 sp3. I'm having trouble replacing the default consumer with an EJB 2 MDB. Here is my xml destination set up: | | jboss.messaging:service=ServerPeer | jboss.messaging:service=PostOffice | | 1. It seems that the serverpeer and postoffice components are required for this consumer to work within JMS, is that correct? My server won't deploy without them being referenced in this xml. No JBM EJB examples seem to mention this. 2. For my consumer class, I've used the EJB 2 consumer example from the JMS manual, and extended DestinationServiceSupport in order to get the server peer\post office components. The server deploys, but when I kick out a message I get a reflection exception: Caused by: java.lang.IllegalArgumentException: Unable to find operation createQueue(java.lang.String,java.lang.String) I don't understand why this is happening, especially since createQueue isn't defined in my MDB class and I haven't changed anything else. Once I change the destination reference to the default queue example everything works again. I am new to all of this so I might be way off in my approach. Can anyone help? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172837#4172837 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172837 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Can 2 unclustered JBoss instances share the same DB tables f
We have a configuration consisting of 2 JBoss instances (unclustered) and one database. Each instance runs the same application. The application includes an MDB. Is it possible for each JBoss instance to use the same DB tables for messaging queues? Would there be a risk that messages would be processed twice as they're take from the queue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172836#4172836 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: problem in understanding deployment
hi rajesh. i checked the deploy folder but i dont see tmp12863-exp.war file. what else i can do if dont find this file in deploy directory.what is the significance of this file? regards seek View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172835#4172835 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172835 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: problem in understanding deployment
Hi, Please check in below location for all jsps/html files in your war file. \server\default\tmp\deploy\ tmp12863-exp.war Regards, Rajesh Pelluru View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172830#4172830 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172830 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: problem with the MailNode:transition doesn't have destin
thanks for replying, i removed the jbpm-3.1.4 from the project and it still doesn't work, you 're right,it's better to specify the transition names but it's not the problem here. any idea? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172826#4172826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - async fork
Hi, I've got a problem to get async nodes right. I read on JIRA ther once was an issue with this but got resolved. So I wonder where my mistake is. JBPM Version is 3.2.3 The process definition: | | | | | | | | | | | | || String nodename=executionContext.getNode().getName(); | for(int i=0;i<=7;i++){ | Thread.currentThread().sleep(1000); | System.out.println(nodename + " is waiting (" +i+")"); | } | System.out.println("loop done"); | | executionContext.leaveNode(); | | | | | | | || String nodename=executionContext.getNode().getName(); | | for(int i=0;i<=7;i++){ | Thread.currentThread().sleep(1000); | System.out.println(nodename + " is waiting (" +i+")"); | } | System.out.println("loop done"); | | executionContext.leaveNode(); | | | | | | | || String nodename=executionContext.getNode().getName(); | | for(int i=0;i<=7;i++){ | Thread.currentThread().sleep(1000); | System.out.println(nodename + " is waiting (" +i+")"); | } | System.out.println("loop done"); | | executionContext.leaveNode(); | | | | | | | | | | | | | | | This throws an exception org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) This happens when the second thread enters the join node and hibernate tries to update a token. I tested this with MYSQL and transaction-isolation = REPEATABLE-READ and READ-COMMITTED but nothing helped. Where am I wrong? Thanks for your help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172823#4172823 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Issues in Ejb 3.0 Deployment
anonymous wrote : java.lang.ClassNotFoundException: Unexpected error during load of: com.demo.hello.HelloBeanBean, msg=Bad version number in .class file | at You probably compiled it with a higher version of JDK and are using JBoss with a lower version of Java. What do the following commands output? echo %JAVA_HOME% java -version Also ensure that your Eclipse is not pointing to some other JDK version for compiling. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172824#4172824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172824 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - JNDI remote lookup of classes in isolated EAR
I have the following issue: I have an EJB3 session bean (SB1) with a remote interface (I2) which is in an isolated ear EAR1. I2 extends I1 which is in a POJO jar in EAR1. In a second ear - EAR2, I have the same POJO jar defining I1. >From EAR2 I wish to locate SB1 (via JNDI) without including the session bean's >EJB jar within the package. (this is then cast to I1, which should allow the EAR to access the exposed methods on I1) The lookup of the JNDI name works fine and the bean can be located, despite the isolation of the EARs, but it throws a ClassNotFoundException for I2. If I remove the isolation tags from the jboss-app.xml, then everything works fine. I expected the JNDI lookup to find I2 via JNDI/RMI - hence loading I2 from EAR1. Is there a way of getting this behaviour? Thanks - I have searched the forums/wiki for an answer to this problem, so please accept my apologies if this has already been answered View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172822#4172822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Problems setting timer to entity bean
Hi, Im getting the below error while setting timer over an entity bean using 'timerService.createTimer(date, entitybean);'. I have heard this problem could arise out of using two local datasources but Im using only one. 19:12:32,534 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.ejb.EJBTransactionRolledbackException: Failed to create timer | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87) | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:81) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107) | at $Proxy101.addTimerToSale(Unknown Source) | at com.um2.mauction.session.wrapper.AuctionBean.addAuction(AuctionBean.java:120) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) | at org.jboss.ws.core.se
[jboss-user] [EJB 3.0] - Issues in Ejb 3.0 Deployment
Hi All, I am newbie to Ejb 3.0. I am facing a problem while deploying an Ejb jar . Environment being used. eclispe ( using jboss tools plugins ) and jboss 4.2.2. GA The problem i am facing is that while deploying the ejb jar, I am getting this exception . java.lang.ClassNotFoundException: Unexpected error during load of: com.demo.hello.HelloBeanBean, msg=Bad version number in .class file at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:560) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415) at java.lang.ClassLoader.loadClass(Unknown Source) at org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:293) at org.jboss.ejb3.Ejb3DescriptorHandler.populateBaseInfo(Ejb3DescriptorHandler.java:215) at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:138) at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:486) at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:442) ... There is only one problem in it. I have only jvm installed in my system. Java 1.5.0_07. How should i have to go about this problem. I am using eclipse to run the server. Looking forward for your help. Thanks in advance Vasu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172816#4172816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172816 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - problem in understanding deployment
Hello .. I am working on a application which is deployed in jboss. I looked in to the war file and i can see all the class files are located in different jar files.But i can not see the static conets.like htm files and image files.I have searched entire jboss directory but did not found. How to check in which location the htm files are located and how the server is picking the htm files and image files. I have even searched entire system. But when i access the application it is working properly. But i can not see the location where it is picking the htm files. Could any one let me know how to check on this and which configuration it will say the location of these sources. Rgards, seek View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172815#4172815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.0.0.Alpha1 is released
The other issue is: 08:54:23,709 WARN [SeamPhaseListener] There should only be one Seam phase listener per application When you use the wizard to create an EAR project I get this issue every time. The application will deploy properly, but then it will not load up and you'll get an exception about duplicate PhaseListener's. I think the problem is a collision between the base project and the ejb project and their manifest files. If you go into the manifest file in the META-INF directory of the ejb project and delete the reference to jboss-seam.jar and then redeploy your app it will now work. Of course this causes problems in the eclipse project. You can right-click on the project and now go in and manually add jboss-seam.jar back to the build path to fix that. I figured this out this morning as a workable solution. Kind of messy and just a hack, but so far it works. beren View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172813#4172813 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172813 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: problem with the MailNode:transition doesn't have destin
and transitions should have names... is also better oh and you have wrong jars... jpdl3.1.4 is supperseded by jbpm-jpdl-3.2.3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172811#4172811 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing JBoss Datasource from EJB 3.0
Hello all, I am building just the ejb-module(EJB-JAR) not the Enterprise Archive (EAR) file. So please help me to find the contextRoot of the ejb-module. What is the code to achieve the contextRoot of the EJB-module. In the anticipation of the solution Mabimal View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172807#4172807 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172807 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB3 transaction / lazy loading issue
solved it! it turns out that sorting the collection returned from one of the entity's getters (using collections.sort) make hibernate think i changed the entity. i cloned the collection before sorting and it is solved - no more update query when the transaction exits. cool! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172805#4172805 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172805 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: mail node issue
Hi everyone; Please i use the same version and i still have the same exception. Any idea? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172804#4172804 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172804 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: problem with the MailNode:transition doesn't have destin
The problem is that the method "signal" works whenever i try to move to a stateNode but it causes problems when the destination is a MailNode or a TaskNode;i 've added the MailNode.hbm.xml in the hibernate.cfg.xml and no results. thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172801#4172801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBossTools 3 Alpha + Ganymede
Thanks, it works. I installed via Eclipse Update. Marco. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172793#4172793 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.0.0.Alpha1 is released
I just ran thru the wizard taking all the defaults with MySQL as a database. Here's the components.xml file that is generated: http://jboss.com/products/seam/components"; xmlns:core="http://jboss.com/products/seam/core"; xmlns:persistence="http://jboss.com/products/seam/persistence"; xmlns:drools="http://jboss.com/products/seam/drools"; xmlns:bpm="http://jboss.com/products/seam/bpm"; xmlns:security="http://jboss.com/products/seam/security"; xmlns:mail="http://jboss.com/products/seam/mail"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation= "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd";> /security.drl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172792#4172792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172792 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.0.0.Alpha1 is released
http://www.seamframework.org/Community/JbossToolsEARWizard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172789#4172789 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: question regarding some 'dates' in task instance
At this moment, I am trying to implement 'suspend until' like this (note, I will call this method in some kind of service class, so not in an ActionHandler) : public void suspendTaskInstanceUntil(final TaskInstance taskInstance, final String suspendUntilDate){ | | taskInstance.suspend(); | CreateTimerAction cta = new CreateTimerAction(); | cta.setName("suspendUntilTimer"); | cta.setDueDate(suspendUntilDate); | Action action = null; | String actionName = "resume action"; | Delegation delegation = new Delegation("foo.bar.ResumeAction"); // will call taskInstance.resume() | | delegation.setProcessDefinition(taskInstance.getProcessInstance().getProcessDefinition()); | action= new Action(delegation); | action.setName(actionName); | cta.setTimerAction(action); | try { | cta.execute(ExecutionContext.currentExecutionContext()); | | } catch (Exception e) { | throw new RuntimeException(e); | // e.printStackTrace(); | } | jbpmContext.save(taskInstance); | | } I saw sth like this (as a poc) in an actionhandler and wanted a similar behaviour (but without the action handler ) My problem is now : ExecutionContext.currentExecutionContext() returns null... So what I am trying to do does not work Could anyone suggest a fix / alternative / workaround for this ? (btw : the similar resume task method, would first kill the dynamic timer (if existing) and then resume the task Sincerely, Dieter D'haeyere. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172781#4172781 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: question regarding some 'dates' in task instance
I see that I left some errors in the code : you will find a jbpmContext (which is not declared in this piece of code), but normally I execute this code within a callback, so the jbpmContext is actually there... I thought to remove the callback code to make things simpler View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172783#4172783 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - problem with the MailNode:transition doesn't have destinatio
Hi everybody, I have a problem with the method signal(). Here is my processdefintion(where i want to test the email notification) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When i try to move to a mailnode,It returns the following error: | "transition 'test' doesn't have destination. check your processdefinition.xml" | I've searched in the forum and found that's a problem of libs, but i already use the following jars: jbpm-3.1.4.jar jbpm-identity-3.2.3.jar jbpm-jpdl-3.2.3.jar I would be thankful for any suggestion. Please help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172774#4172774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Naming Service Error(could not start on port 1099)
Hi Peter j, I did use tcpview by sysinternal nothing running on the port 1099 and i am posting the error JBOSS_CLASSPATH=;C:\jdk1.3.1_01/lib/tools.jar;run.jar;../lib/crimson.jar jboss.home = E:\CIM_Appl\CIM_Appl\jBoss_tomcat\jboss Using JAAS LoginConfig: file:/E:/CIM_Appl/CIM_Appl/jBoss_tomcat/jboss/conf/tomca t/auth.conf Using configuration "tomcat" [root] Started Log4jService, config=file:/E:/CIM_Appl/CIM_Appl/jBoss_tomcat/jbos s/conf/tomcat/log4j.properties [Info] Java version: 1.3.1_01,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Client VM 1.3.1_01,Sun Microsystems Inc. [Info] System: Windows 2000 5.1,x86 [Shutdown] Shutdown hook added [Service Control] Initializing 47 MBeans [WebService] Initializing [WebService] Initialized [NamingService] Initializing [NamingService] Initialized [JNDIView] Initializing [JNDIView] Initialized [TransactionManagerService] Initializing [TransactionManagerService] Initialized [ClientUserTransactionService] Initializing [ClientUserTransactionService] Initialized [JaasSecurityManagerService] Initializing [JaasSecurityManagerService] Initialized [JdbcProvider] Initializing [JdbcProvider] Loaded JDBC-driver:org.hsqldb.jdbcDriver [JdbcProvider] Initialized [HypersonicDatabase] Initializing [HypersonicDatabase] Initialized [XADataSourceLoader] Initializing [XADataSourceLoader] Initialized [ServerDataCollector] Initializing [ServerDataCollector] Initialized [ContainerFactory] Initializing [ContainerFactory] Initialized [EmbeddedTomcatServiceSX] Initializing [EmbeddedTomcatServiceSX] Initialized [JBossMQService] Initializing [JBossMQService] Initialized [StateManager] Initializing [StateManager] Initialized [PersistenceManager] Initializing [PersistenceManager] Initialized [JVMServerILService] Initializing [JVMServerILService] Initialized [RMIServerILService] Initializing [RMIServerILService] Initialized [OILServerILService] Initializing [OILServerILService] Initialized [UILServerILService] Initializing [UILServerILService] Initialized [TopicManager] Initializing [TopicManager] Initialized [TopicManager] Initializing [TopicManager] Initialized [TopicManager] Initializing [TopicManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [QueueManager] Initializing [QueueManager] Initialized [NamingAlias] Initializing [NamingAlias] Initialized [NamingAlias] Initializing [NamingAlias] Initialized [JMSProviderLoader] Initializing [JMSProviderLoader] Initialized [ServerSessionPoolLoader] Initializing [ServerSessionPoolLoader] Initialized [J2eeDeployer] Initializing [J2eeDeployer] Initialized [RARDeployer] Initializing [RARDeployer] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaNoTransCMFactory] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaSharedLocalCMFactory] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaXACMFactory] Initialized [ConnectionFactoryLoader] Initializing [MinervaDS] Initialized [ConnectionFactoryLoader] Initializing [JmsXA] Initialized [AutoDeployer] Initializing [AutoDeployer] Initialized [JMXAdaptorService] Initializing [JMXAdaptorService] Initialized [RMIConnectorService] Initializing [RMIConnectorService] Initialized [MailService] Initializing [MailService] Initialized [Service Control] Initialized 47 services [Service Control] Starting 47 MBeans [WebService] Starting [WebService] Started webserver with address: null port: 8083 [WebService] Codebase set to: http://unilog-113:8083/ [WebService] Started [NamingService] Starting [NamingService] Starting jnp server [NamingService] Could not start on port 1099 java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.(Unknown Source) at org.jnp.server.Main.start(Main.java:200) at org.jboss.naming.NamingService.startService(NamingService.java:149) at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107 ) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16 28) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 23) at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf igurationService.java:836) at $Proxy0.start(Unknown Source) at org.jboss.util.ServiceControl.start(ServiceControl.java:81) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.j
[jboss-user] [JBoss Portal] - Full Portal Page Refresh Problem
Hi, I have deployed two portlets in JBoss Portal.In first portlet,user can enter user name in an input box & clicks submit.After clicking Submit button,the user name is shown in other portlet with some greeting message.The user name is shown in other portlet using APPLICATION_SESSION in Portlets. It is working fine but when i click on Submit button,the entire portal page is refreshed instead of the two portlets leading to restart of other portlets.I am confused as what is leading to this behavior- Submit button or something else.Can anyone help me on this. TIA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172769#4172769 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172769 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Non-java webservices in JBOSS
Hi, I am new to JBOSS and web service. I would like to know whether we can host a non-java web service (especially C and C++) in JBOSS. Please help... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172765#4172765 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172765 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - hibernate tool template problem
Hi all. I am developing a template for Hibernate Tool and i have a little problem. Is there "something" to know if a column of an entity is an id? I've searched in every *.ftl under pojo dir in hibernate-tools.jar but i've found nothing. Currently, the snippet that i use is: <#foreach field in pojo.getAllPropertiesIterator()> | <#if !field.equals(clazz.identifierProperty)> | <#if pojo.getMetaAttribAsBool(field, "gen-property", true)> | ${fieldsForInitConstructor}${pojo.getJavaTypeName(field, jdk5)} ${field.name} | | | | Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172764#4172764 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172764 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Jboss cache
How can i cache two different folders in different location.IO have added two and tried .But the issue both the folders are coming in both the places View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172763#4172763 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - in JBoss cache
Hi i wanted to cache two folders in two different location. I have added two entries and put the datas.But the issue is in both the places both folders are coming.How and where i can specify this folder should cache in this location and another one in another location. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172762#4172762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172762 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Spring Component Auto Detection
I've added the following test to VFS |public void testDirectoryFind() throws Throwable |{ | URL url = getResource("/vfs/test/outer.jar"); | String urlString = url.toExternalForm(); | int p = urlString.indexOf(":"); | URL rootURL = new URL("vfszip" + urlString.substring(p) + "/org/jboss/test/vfs"); | VirtualFile root = VFS.getRoot(rootURL); | assertNotNull(root); |} | which should somehow resemble your case. And it passes for me locally. Send me the debug log from VFSResourcePatternResolver |protected List getVFSResources(URL rootURL, String subPattern) throws IOException |{ | log.debug("Scanning url: " + rootURL + ", sub-pattern: " + subPattern); | VirtualFile root = VFS.getRoot(rootURL); | PatternVirtualFileVisitor visitor = new PatternVirtualFileVisitor(subPattern); | root.visit(visitor); | if (log.isTraceEnabled()) | log.trace("Found resources: " + visitor); | return visitor.getResources(); |} | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172756#4172756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: JBoss 4.2.2 AS Vulnerability to CVE-2008-2938
Thanks for your very quick answer, Jean! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172749#4172749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm jrules Rule Compilation error
anonymous wrote : Only a type can be imported. com.sample.action.LoginBean resolves to a package Isn't this the cause? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172747#4172747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.0.0.Alpha1 is released
got a link ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172742#4172742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm jrules Rule Compilation error
Hi All, Im working on jbpm jrule sample. I'm getting this error while running jbpm application in jbpm-console. Error completing task: An exception of type "org.jbpm.graph.def.DelegationException" was thrown. The message is: Rule Compilation error : [Rule name=Your First Rule, agendaGroup=MAIN, salience=0, no-loop=false] login/Rule_Your_First_Rule_0.java (2:23) : Only a type can be imported. com.sample.action.LoginBean resolves to a package login/Rule_Your_First_Rule_0.java (8:285) : l cannot be resolved login/Rule_Your_First_Rule_0.java (9:326) : l cannot be resolved com.sample.action.LoginBean Please help me to get through this error. Here is my files: - loginrule.drl --- package login import com.sample.action.LoginBean; #list any import classes here. #declare any global variables here rule "Your First Rule" when exists LoginBean LoginBean(username == "XXX") then System.out.println("first rule"); end -- RulesActionHandler.java --- package com.sample.action; import org.jbpm.graph.def.ActionHandler; import org.jbpm.graph.exe.ExecutionContext; import org.drools.RuleBase; import org.drools.compiler.PackageBuilder; import org.drools.RuleBaseFactory; import org.drools.WorkingMemory; public class RulesActionHandler implements ActionHandler { String RuleFile = "/loginrule.drl"; public void execute(ExecutionContext executionContext) throws Exception { // TODO Auto-generated method stub String username = (String)executionContext.getContextInstance().getVariable("u1"); String department = (String)executionContext.getContextInstance().getVariable("u2"); com.sample.action.LoginBean bean = new com.sample.action.LoginBean(); bean.setUsername(username); bean.setDepartment(department); bean.print(); RuleBase ruless = readRule(RuleFile); WorkingMemory memory = ruless.newStatefulSession(); memory.insert((LoginBean)bean); org.jbpm.context.exe.ContextInstance ci = executionContext.getContextInstance(); memory.setGlobal("ci", ci); executionContext.getToken().signal(); } private RuleBase readRule(String filename) throws java.io.IOException,Exception{ RuleBase rulebase = null; PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl(new java.io.InputStreamReader(RulesActionHandler.class.getResourceAsStream(filename))); rulebase = RuleBaseFactory.newRuleBase(); rulebase.addPackage(builder.getPackage()); return rulebase; } } - LoginBean.java -- package com.sample.action; public class LoginBean { public LoginBean() { super(); // TODO Auto-generated constructor stub } private String username; private String department; public String getUsername() { return username; } public LoginBean(String username) { super(); this.username = username; } public LoginBean(String username, String department) { super(); this.username = username; this.department = department; } public void setUsername(String username) { this.username = username; } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } public void print(){ System.out.println("User Namev : "+username); System.out.println("Department : "+department); } } - processdefinition.xml --- /loginrule.drl Thanking You, Shoba View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172739#4172739 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172739 ___ jboss
[jboss-user] [JBoss Cache: Core Edition] - Clumsy JDBC configuration 2.2.0.CR7
Hello I'm configuring the cache using Spring. And I noticed some strange behaviours with the JDBCCacheLoader. I'm using C3p0 for connectionpooling and I have my own ddl for table creation and I rewrote some sqls. Because there are no setters for all the c3p0 properties I have to use the setProperties method. For all others I wanted to use the setters. After my first tries. I got severall sql exceptions. Especially on those sqls I haven't wrote on my own. I checked the source code and noticed that the configurer does some default configurations while processing the properties. It creates some default sqls if not set. Now lets say you use another tablename and use the setter to configure instead of the properties (I need them only for c3p0). the order you call the methods results in different configurations. One that might work and one that doesn't. All the default sqls would be created with the default table name. All others will be overriden by the setter if not specified before. Wouldn't it be better to have an state for the configuration-Objects. And to have an explicit initialisation task? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172740#4172740 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172740 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user