[jboss-user] [EJB 3.0] - Re: Webservice error
here is the entire exception stack | javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target. class webservices.action.BookSearchActionService for public webservices.beans.Book[] webservices.action.BookSearchActionService.searchBooks(java.lang.String) | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:77) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:372) | at org.jboss.ejb3.stateless.StatelessContainer.invokeEndpoint(StatelessContainer.java:727) | at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:96) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:219) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131) | at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | 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:235) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) | at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) | at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:595) | View the original post : http://www.jboss.org/index.html?module=bb&o
[jboss-user] [EJB 3.0] - Re: Webservice error
Please post the entire exception stacktrace and the client code which looks up the stateless bean. While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232626#4232626 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232626 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Webservice error
Hi, I am trying to extend a stateless sesssion bean BookSearchActionService to webservice. After deploying, when i try to invoke the webserice. I get following error. java.lang.IllegalArgumentException: Wrong target. class webservices.action.BookSearchActionService for public webservices.beans.Book[] webservices.action.BookSearchActionService.searchBooks(java.lang.String) Here is my SLB code | package webservices.action; | | import java.util.ArrayList; | | import javax.ejb.Stateless; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.ParameterStyle; | import javax.jws.soap.SOAPBinding.Style; | import javax.jws.soap.SOAPBinding.Use; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | import webservices.beans.Book; | @Stateless | @WebService(name="booksearch", | serviceName="booksearch", | targetNamespace="URN:ejbmodule.bookserch") | @SOAPBinding(parameterStyle=ParameterStyle.WRAPPED,style=Style.DOCUMENT,use=Use.LITERAL) | public class BookSearchActionService { | | @PersistenceContext | private EntityManager mgr; | @WebMethod(operationName="searchBooksByAuthor",action="searchBooksByAuthor") | public Book[] searchBooks(String author) { | ArrayList list = (ArrayList) mgr.createNamedQuery("findBooksByAuthor").setParameter("author", author).getResultList(); | Book[] books = new Book[list.size()]; | for (int i = 0; i < list.size(); i++) { | books = list.get(i); | } | return books; | } | | } | | Am I missing anything here ? thanks in advance. Mayuresh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232625#4232625 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232625 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: JNDI Entries Disappear Randomly in 4.2.3/4.3 (Bug?)
Is the server running in the cluster configuration (i.e. "all") or is it a default configuration? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232624#4232624 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232624 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - use apache web server with mod_jk to load balance multiple j
Hello, I am new to load balancing stuff. I want to load balance Jboss Portal Servers with Apache webserver (and mod_jk) on Windows. Can somebody provide me with steps or links for accomplishing the above task? This is very urgent.Any help will be greatly appreciated. Regards, Rinku View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232623#4232623 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Static variable gets shared in 2 applications
Hi, I have two turbine appliactions deployed in JBoss 4.0.4GA default profile. Actually turbine jar is packaged seperately in 2 ears but still static variables in turbine servlet are getting shared between 2 applications. I have added jboss-app.xml in meta-inf of both ear files e.g. test:loader=test.ear java2ParentDelegation=false After adding above, applications are not getting deployed. It throws exception like, java.lang.NoClassDefFoundError: java/lang/Object at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:672) at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:652) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) I am not getting why this is not working? Can anybody gives solution? If I add above jboss-app.xml for test applications having only servlet(common to both) then it works fine (static var is not getting shared). But it doesn't work for my turbine application where there are too many jars ejbs etc. Please give suggestions if anybody has. Thanks in advance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232621#4232621 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232621 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Remoting release 2.2.3 is available
Remoting version 2.2.3 is available. It features * Introduction of "connection identity" concept; * upgrading of servlet transport; * improved configuration flexibility; * miscellaneous bug fixes. Upgrading to 2.2.3 is particularly recommended if you are using JBossMessaging in Application Server 4.2. See https://jira.jboss.org/jira/browse/JBMESSAGING-1456 "Messages stuck in being-delivered state in cluster" and https://jira.jboss.org/jira/browse/JBREM-1128 "Introduce connection identity concept" for more information. To see the release notes, go to https://jira.jboss.org/jira/secure/ReleaseNote.jspa?version=12313088&styleName=Text&projectId=10031&Create=Create . Version 2.2.3 of jboss-remoting.jar may be found in the old repository at http://repository.jboss.com/jboss/remoting/. The distribution zip file may be found at http://www.jboss.org/jbossremoting/downloads/ . View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232617#4232617 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232617 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: ClassCastException looking up ConnectionFactory
Sorry my past reply is misleading. Here we usually don't answer JBoss MQ questions. It has its own forum where you can get support. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232616#4232616 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: issue related to JbossWS in server startup in JBoss port
My machine is connected to internet, though its going through Firewall. I tried with the following entry for proxy setting in run.conf: set JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=-Dhttp.proxyPort= -DproxySet=true But didn't worked. Finally, I tried with the same entry in run.bat and its working fine. I don't know why the server was not able to read the configuration from run.conf Any ways its working for me now. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232613#4232613 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: ClassCastException looking up ConnectionFactory
Hi, this is JBoss MQ question. It is no longer supported. JBoss Messaging 1.4 is the current messaging service. I would suggest you to download JBoss Messaging 1.4 to get started with. Also you can try JBM 2.0, a brand new product that has many great features! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232608#4232608 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232608 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: org.jboss.ws.WSException: Property '' not found in fault
I have run into the same issue. The @XmlType http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/XmlType.html#propOrder() says: "All of the JavaBean properties being mapped to XML Schema elements must be listed.". The issue may therefore not be in org.jboss.ws.metadata.umdm.FaultMetaData, which is correctly assuming propOrder is defined, but in JAX-WS RI, that is not creating propOrder. Also, when propOrder is not defined, the default value is String[] {""}: an array with one empty String... which is odd and causes JBossWS to fail. I have opened two discussions on why JAX-WS RI is not creating propOrder: http://forums.java.net/jive/thread.jspa?threadID=61739 http://forums.sun.com/thread.jspa?threadID=5387902 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232605#4232605 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232605 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Beans disappear in Global JNDI Namespace after running a
JaiKiran, I don't think it's bean related at all. It's JNDI losing entries randomly. I've documented my problem here: [url]http://www.jboss.org/index.html?module=bb&op=viewtopic&t=155839 [/url] Cheers, TJ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232604#4232604 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232604 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - JNDI Entries Disappear Randomly in 4.2.3/4.3 (Bug?)
Problem Statement After a server is running for a while, JNDI entries will randomly disappear. This doesn't allow other JBoss servers to look up queues and topics. Problem Symptoms 1. Clients will get random "ConnectionFactory" not bound errors (when they've already gotten that look up before. 2. They will get a reference to ConnectionFactory, but will get Queue not bound errors. Again this is after it's already been working for a while. 3. Any shutdown using shutdown.sh will result in RMIAdapter not bound errors forcing to do a kill -9 on the server process. Problem Resolution Restart server until the problem happens again. Where Help is Needed This is clearly a major issue. Our application is massively distributed with batch and online aspects. At any given time we have about twenty + clients (stand alone Java clients as well as Jboss servers) connecting to one batch-processor. They all queue batch requests to this server and things start failing smack dab in the middle of production (and the day). This problem has appeared in 4.3, 4.2.2 and 4.2.3 (we actually rolled back to 4.2.3 but for different reasons we can go into later). As I mentioned, restart of the batch processor fixes the problem. What makes this problem very hard to debug is that it happens after things have been running good for a while. Suddenly we'll get those errors, and from the client perspective it makes sense, because those JNDI entries are missing from the JNDIView JMX Bean. Can any body shed some light on this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232603#4232603 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232603 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - @Resource(name =
I've been searching the 'net trying to find out how to use in JBoss 5.0.1.GA. @Resource(name = "some/name") However, all of the examples show the annotation used this way: @Resource(mappedName = "some/jndi/name") Also, the specification says that mappedName is a provider specific attribute, app servers aren't required to even implement it, and that it is absolutely not portable. All sound like good reasons to avoid using mappedName. Since I can't seem to find any instructions (and guessing hasn't given me any results either), I'll ask. Is there a way to use the name form of the @Resource annotation in JBoss? If so, where can I discover (or configure) the name of the JMS topic I'm trying to inject? Thanks, Josh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232598#4232598 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232598 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Cache-Scope PUBLIC doesnt work
Anyone??? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232595#4232595 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - JBossWS client not sending Basic Authentication
Hi, I have a web service client that is trying to call a webservice secured with basic authentication. I had this working with JAVA 6 but not with JAVA 5. I am setting the username and password correctly as seen below but I am still getting a 401 error code back. When I used tcpmon to inspect the request\response, I can see that the username and password is not being passed to the client. | Map requestContext = ((BindingProvider) manager).getRequestContext(); | requestContext.put(BindingProvider.USERNAME_PROPERTY, username); | requestContext.put(BindingProvider.PASSWORD_PROPERTY, password); | When I debug, I can see that the web service proxy has the username and password in its Map. So why are they not being sent along with the webservice call? Does it have something to do with the versions of the Jars I am using? I am using JBoss 4.2.3 and the jars are. | jboss\client\xmlsec.jar | jboss\client\jboss-jaxws.jar | jboss\client\jbossws-client.jar | jboss\client\jboss-common-client.jar | jboss\lib\endorsed\serializer.jar | jboss\lib\endorsed\xalan.jar | jboss\lib\endorsed\xercesImpl.jar | commons-validator | commons-logging-api | created using jwsc ant task | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232592#4232592 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Getting IAE using JBossWS to access MS Dynamics AX
Server: JBoss-4.2.4GA with jbossws-3.0.1-native-2.0.4.GA. I used wsconsume to generate the client artefacts from an MS Dynamics Axapta 2009 instance. When trying to use one of them I get Caused by: java.lang.IllegalArgumentException: Illegal null argument:ns | at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.createNamespaceItemIfNotExistent(JBossXSModel.java:511) | at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.addXSElementDeclaration(JBossXSModel.java:351) | at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(WSSchemaUtils.java:707) | at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:202) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:401) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:178) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128) | at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:295) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:86) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:140) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:64) | at javax.xml.ws.Service.(Service.java:81) | at com.microsoft.schemas.dynamics._2008._01.services.GeneralJournalService_Service.(GeneralJournalService_Service.java:40) at biz.mbisoftware.fn.ejb.session.inventory.GeneralLedgerIfAx2009.sendAggregatedValues(GeneralLedgerIfAx2009.java:36) | I found https://jira.jboss.org/jira/browse/JBWS-686 which is solved, but studying the wsdl a question came up to my mind. The wsdl contains an import without namespace. Can this cause the exception? If yes, what can I do? First lines of WSDL: | http://schemas.microsoft.com/dynamics/2008/01/services";> | | | | | | | | | http://schemas.microsoft.com/dynamics/2008/01/services/Imports";> | http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd0"; namespace="http://schemas.microsoft.com/dynamics/2008/01/services"/> | http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd6"; namespace="http://schemas.microsoft.com/dynamics/2008/01/documents/Fault"/> | http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd1"; namespace="http://schemas.microsoft.com/2003/10/Serialization/"/> | http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd2"; namespace="http://schemas.microsoft.com/dynamics/2008/01/documents/LedgerGeneralJournal"/> | http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd3"/> | http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd4"; namespace="http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKeyList"/> | http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd5"; namespace="http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKey"/> | http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd7"; namespace="http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria"/> | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232588#4232588 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232588 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - ClassCastException looking up ConnectionFactory
Hello, I'm trying to get the P2P example working so that my webapp(running in JBoss 4.2.3) can write and consume messages. I used the example from the JBoss docs (http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/4/html-single/index.html#JMS_Examples-A_Point_To_Point_Example) and when I start the webapp and execute my JNDI lookup, I get this error : java.lang.ClassCastException: org.jboss.mq.SpyConnectionFactory cannot be cast to javax.jms.QueueConnectionFactory So, I change it to a SpyConnectionFactory and get a similar error about SpyQueue. I change that and then get this : | java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/service/WebAppClassLoader) previously initiated loading for a different type with name "javax/jms/QueueConnection" | java.lang.ClassLoader.defineClass1(Native Method) | java.lang.ClassLoader.defineClass(Unknown Source) | java.security.SecureClassLoader.defineClass(Unknown Source) | org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1814) | org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) | org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:75) | org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325) | org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) | java.lang.ClassLoader.loadClassInternal(Unknown Source) | Here's the original version of my code. | package test.jms; | | import javax.jms.JMSException; | import javax.jms.Queue; | import javax.jms.QueueConnection; | import javax.jms.QueueConnectionFactory; | import javax.jms.QueueReceiver; | import javax.jms.QueueSender; | import javax.jms.QueueSession; | import javax.jms.TextMessage; | import javax.naming.InitialContext; | import javax.naming.NamingException; | | public class QueueSetup | { | public void sendRecvAsync(String text) throws JMSException, NamingException | { | InitialContext iniCtx = new InitialContext(); | Object tmp = iniCtx.lookup("ConnectionFactory"); | QueueConnectionFactory qcf = (QueueConnectionFactory) tmp; | QueueConnection conn = qcf.createQueueConnection(); | Queue que = (Queue) iniCtx.lookup("queue/A"); | QueueSession session = conn.createQueueSession(false, | QueueSession.AUTO_ACKNOWLEDGE); | conn.start(); | | // Set the async listener | QueueReceiver recv = session.createReceiver(que); | recv.setMessageListener(new MyMessageListener()); | | // Send a text msg | QueueSender send = session.createSender(que); | TextMessage tm = session.createTextMessage("This is a test"); | send.send(tm); | send.close(); | } | } | Any ideas about what's wrong?(I did try java:JmsXA with similar results) Is there some setup that I missed? TIA View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232574#4232574 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232574 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - form-error-page not working
Hello, I've created a custom login module that implements javax.security.auth.spi.LoginModule. My login module works great when the user provides valid credentials, but when the user does not provide valid credentials the are bounced to a standard 403 error page, not the error page I've specified in web.xml. The relevant section of my web.xml looks like this: | | FORM | | /login.jsp | /loginError.jsp | | | Any idea why my form-error-page is not being honored? Also, I tried enabling extra logging per item #4 in the SecurityFAQ but I didn't see any extra logging printed out anywhere. I'm using JBossAS-5.0.1. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232573#4232573 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Problems with Jboss Cache 3.0.3 XML Configuration
I am currently trying to setup a simple cache and I am getting error when the XML configuration is attempting to be parsed. I am using the local.xml config that is shipped with Jboss. This is the error I am getting. ERROR [RootElementBuilder] (main) org.xml.sax.SAXException: http://java.sun.com/xml/jaxp/properties/schemaSource Exception in thread "main" org.jboss.cache.config.ConfigurationException: Could not parse the config file at org.jboss.cache.config.parsing.RootElementBuilder.readRoot(RootElementBuilder.java:111) at org.jboss.cache.config.parsing.XmlConfigurationParser.readRoot(XmlConfigurationParser.java:411) at org.jboss.cache.config.parsing.XmlConfigurationParser.parseStream(XmlConfigurationParser.java:117) at org.jboss.cache.config.parsing.XmlConfigurationParser.parseFile(XmlConfigurationParser.java:109) at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:78) at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:71) Any Suggestions would be appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232563#4232563 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Timer cancled during timeout execution
I'm using an EJB3 style Stateless Session Bean as a target for a timer. During my integration testing I have the timer turned up to repeat very quickly (100ms interval) so that I don't have to wait for too long while the tests are executing. However, it has illustrated a problem that may have taken a really long time to witness (in fact I may never have witnessed it). My test configures the timer to run on a tight interval, calls a method that starts the timer, does some checking to make sure the timer has done its job, and then cancels the timer. However, the test frequently cancels the timer while the handleTimeout method is executing. I know this, because I check to see if the Timer is valid at the beginning of the method, but toward the end of the method I get an exception when I call Timer.getInfo 10:56:12,890 ERROR [TimerImpl] Error invoking ejbTimeout ejb.NoSuchObjectLocalException: Timer was canceled Being in a session bean, I had assumed that the public methods, including the @Timeout public void handleTimeout(Timer tmr) method would be transactional and therefore wouldn't interfere with each other like this. Am I doing something wrong or is there a bug here? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232558#4232558 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.7.0 compatibility with Internet Explorer
This is fine on the latest snapshot of 2.7.2: https://jira.jboss.org/jira/secure/attachment/12327028/Picture+1.png albeit I am using IE6 ported to Mac, but it still uses the same windows cab files. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232554#4232554 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232554 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Problem with Dynamic Login Config on JBoss 5.0.1
Thx JaiKiran. That worked. Just to make this useful for other people looking for solution to this, here is what I did: - Put the dynamicloginconfig-service.xml in my ear META-INF, as suggested - and my dynamic-login-config.xml file is also in ear META-INF The dynamicloginconfig-service.xml file looks like this now: | | | META-INF/dynamic-login-config.xml | | | jboss.security:service=XMLLoginConfig | | | jboss.security:service=JaasSecurityManager | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232551#4232551 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232551 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: Netty JBossRemoting
Thank you for your reply. Is the multicast in the discovery mechanism going to work over different subnets? And what is the reason for Remoting2 to use its own multicast mechanism? I read that JBoss cluster is based on JGroup. Do you think JGroup could provide value to JBoss Remoting with its multicast capability? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232547#4232547 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232547 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: MDB external configuration
Alright. I'll give it a go. Thanks guys for the tip! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232546#4232546 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232546 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Licensing
You can run the community version of JBoss AS (other any of the other JBoss middleware products) without having to pay any support or licensing costs. Of course, you are then on you own if a problem comes up - you can post such a problem in these forums but there is no guarantee of a response. You can also purchase a support contract from Red Hat or one of its partners. That contract provides guaranteed resolution times for problems that you encounter, and enables you to download the enterprise version of various JBoss middlewares - those versions are typically better tested, are more stable, and periodically patches and service packs are provided to fix problems. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232541#4232541 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Modifying the database structure of JBoss Portal
JBoss Portal uses Hibernate for database access. So you should be able to change the table names by editing the domain.hbm.xml files located in jboss-portal.sar/conf/hibernate/* directories. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232535#4232535 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232535 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: MDB external configuration
I believe its a jboss specific thing. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232532#4232532 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232532 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Cannot find session during shutdown
ok, this is probably a service shutdown sequence issue between MDB and Transaction Service. You can ask AS guy for how to make sure the Transaction Service is shutdown before MDB services. Or you may not kill the process while there is live transactions. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232531#4232531 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Jboss clustering + JAAS principal issues on failover
Fixed it. Enabling "ClusteredSingleSign" did the trick. Enabling this replicating the principal on second node correctly. Thanks, Suresh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232529#4232529 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232529 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: MDB external configuration
"jaikiran" wrote : In either case i guess you could specify some system property that gets substituted per system, dynamically... | | Then, you can pass this property value as a JVM parameter through the server startup scripts... | | You can edit the run.bat or run.conf to pass this property too. That's a slick trick. Is property substitution on deployment descriptors a standard JavaEE thing, or is that specific to JBoss? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232526#4232526 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232526 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: MDB external configuration
I remember setting message selector in jboss.xml. A neat solution I should say ! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232523#4232523 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232523 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: javax.naming.NameNotFoundException: jdbc not bound
I'm sorry, I didn't look carefully enough at the config files presented in the wiki entry that I referred you to, and did not realize that the information was not relevant for a web app. Here is an example (usually the basic datasource name is the same in all the files, but I used different names so that you can see which names need to be the same): *-ds.xml excerpt: jdbc/SomeDS web.xml excerpt: | jdbc/TheDS | javax.sql.DataSource | Container | Shareable | jboss-web.xml: | | jdbc/TheDS | java:jdbc/SomeDS | | | datasource lookup in servlet: InitialContext ctx = new InitialContext(); | DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/TheDS"); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232520#4232520 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232520 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: MDB external configuration
anonymous wrote : I'm hesitant to require that the person installing my consumer application(s) unzip the ear, change the selector's "myClientID" value, and rezip it. I would rather use a identical application package on our multiple production servers (and the test servers for that matter) and have other files, descriptors, or database settings outside of the ear tweaked to account for the environment. I don't exactly remember which deployment descriptor file will contain the message selector - its either the ejb-jar.xml or the jboss.xml. In either case i guess you could specify some system property that gets substituted per system, dynamically. Something like this in the deployment descriptor: ${someproperty} Then, you can pass this property value as a JVM parameter through the server startup scripts: run.bat -Dsomeproperty=myClientID You can edit the run.bat or run.conf to pass this property too. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232515#4232515 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232515 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Oracle 10g with Jboss 4.2.3 Entity Manager / Hibernate
My application uses 3 different datasources all going to the same database. One with XA support is used via the JNDI name by the entity manager configured in persistence.xml. The other two are no-tx-datasources. I am able to access certain aspects using the datasources however as soon as I try to make a change via entity manager I get the error shown below. Any suggestions on what I am doing wrong. The same application works fine using SQL Server 2005. anonymous wrote : | 4:47:40,170 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider | 4:47:40,170 INFO [InjectedDataSourceConnectionProvider] Using provided datasource | 4:47:40,342 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production | ith the Partitioning, OLAP, Data Mining and Real Application Testing options | 4:47:40,342 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 10.2.0.4.0 | 4:47:40,389 INFO [Dialect] Using dialect: org.hibernate.dialect.Oracle10gDialect | 4:47:40,404 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory | 4:47:40,404 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup | 4:47:40,420 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup and then later anonymous wrote : | 14:47:48,920 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 | 14:47:48,951 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 1m:4s:969ms | 14:48:03,342 WARN [PageNotFound] No mapping for [/diagnostics/spring/j_security_check] in DispatcherServlet with name 'thunderhead' | 14:48:35,092 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null | 14:48:35,092 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fdd7:cf6:4a155b48:d1 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fdd7 | :cf6:4a155b48:d1 status: ActionStatus.ABORT_ONLY >) | 14:48:35,092 INFO [DefaultLoadEventListener] Error performing load command | org.hibernate.exception.GenericJDBCException: Cannot open connection | at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) | at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) | at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) | at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) | at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426) | at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144) | at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139) | at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547) | at org.hibernate.loader.Loader.doQuery(Loader.java:673) | at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236) | at org.hibernate.loader.Loader.loadEntity(Loader.java:1860) | at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48) | at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42) | at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3044) | at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:395) | at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:375) | at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:139) | at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195) | at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103) | at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878) | at org.hibernate.impl.SessionImpl.get(SessionImpl.java:815) | at org.hibernate.impl.SessionImpl.get(SessionImpl.java:808) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232512#4232512 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232512 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - I too have same problem -Permission denied!
i changed the file permission, after that also i am getting the same --- any idea thank & regard's Pal. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232510#4232510 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232510 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Could not find new XAResource to use for recovering non-
Thanks. That worked View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232509#4232509 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232509 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Cannot find session during shutdown
This is just a single JBoss instance, and the only one on the network while we are testing. The persistence if using Oracle 11g to a database on a second server. Thanks again P View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232505#4232505 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232505 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Cannot find session during shutdown
Hi Phillp, How many JBoss AS server instances are you running? Is the JBM running in one instance, and the MDB is running in another? Are they on the same machine or separate machines? If there are multiple instances, which one do you shut down first, which one second? Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232504#4232504 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232504 ___ 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: xa-datasource issue
I am having the same issue connecting to the same database using 3 datasources, one XA and two no-tx-datasources with different transaction isolation levels. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232503#4232503 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232503 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: DWR issues in cluster....
Please ignore this... I was wrong with my analysis. seems spring + dwr layer is not problematic. Anyway, I still have the problem unresolved... will post the details, once I get the fail-over working fine. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232502#4232502 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Jboss clustering + JAAS principal issues on failover
Further debugging, I found the issue is related to JAAS authentication at the application level. On failover the user principal is reset to null on second node hence, I can;t access the secured resources. My expectation is as I logged into application on node1 (user principal is set correctly)... the same principal should be replicated on node2. Any pointers would be highly appreciated. Thansk, Suresh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232501#4232501 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - How to configure jbpm in jboss.
Hi, Can anyone tell me how to configure jbpm in jboss app server.Is there any integrated version available? Thanks & Regards, Lalit. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232500#4232500 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232500 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Jboss clustering + JAAS principal issues on failover
Please ignore this... I was wrong with my analysis. seems spring + dwr layer is not problematic. Anyway, I still have the problem unresolved... will post the details, once I get the fail-over working fine. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232499#4232499 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Jboss clustering + JAAS principal issues on failover
Hi, I have a webapplication with JAAS authentication (form based + DB realm). The application works fine on stand-alone deployment. I clustered the solution: 2 nodes of JBoss 4.2.3 Apache + mod_jk as frontend loadbalancer (with sticky session enabled) When I try failover the http session data is replicated on second node properly but, the userprincipal is reset to "null". This leads to taking me to login page on accessing secured resource... my expectation is, as I logged in to application thru node1 I should be able to continue accessing the secured resources. Any pointers!! thanks, suresh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232498#4232498 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Monitoring JBoss with SNMP
Hi All, We use Solarwinds Orion for server monitoring and we would like to use it to monitor JBoss as well. Can anyone point me to a simple step-by-step document on how to setup SNMP monitoring of JBoss. This should also include what we should be monitoring, recommended thresholds etc. I have seen the following info: http://www.jboss.org/community/wiki/JBossSNMPAdapter We have got the SNMP adapter working (i think) but the above link doesn't really tell me what to do once we have the adapter installed. If anyone has any info that would be much appreciated! Thanks, Chris. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232496#4232496 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232496 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: issue related to JbossWS in server startup in JBoss port
Looks like your machine is not connected to internet. Please see this: http://www.jboss.org/docs/DOC-12633 for solution. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232495#4232495 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232495 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Accessing JBoss service from EJB
Dear guru! Coudl you please tell me how is it possible to access JBoss service (POJO marked with @Service and @Local/@Remote) from EJB? Is it possible just to inject such bean? What will be a JNDI name of a @Service POJO? Thanks in advance, Vadim View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232493#4232493 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Cannot find session during shutdown
We are running on a JBoss 5.0.1GA base, though we needed the startDelivery and stopDelivery methods to exist on the MDB container therefore we upgraded the EJB 3.0 container to 1.1.4(?). Judging from the log its a JBoss 1.4.1.GA server, this is just what came with the server. | 2009-05-20 12:29:01,038 INFO [org.jboss.jms.server.ServerPeer] (main) JBoss Messaging 1.4.1.GA server [0] started | The shutdown we are seeing just being initiated by a control+C on the terminal. If we don't have messages processing the shutdown is clean. Thanks again P View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232489#4232489 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Multiple clients and message types - selectors?
Posted: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=155809 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232488#4232488 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232488 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - MDB external configuration
I have a JavaEE system that has one feeder application and several consumer applications. The producer is transmitting messages over a JMS topic. The consumer applications are all EJB3 apps, and I had planned to use MDBs on the consumer systems to process the incoming messages. However, while most of the messages are legitimately broadcast messages, on occasion the producer system needs to target a specific consumer system. I had thought to do this via the selector mechanism. Something like this: clientID is NULL AND feed in ('feed1', 'feed2') | OR | clientID = 'myClientID' AND feed in ('feed1', 'feed2') I deploy my apps in ear files. Is there a way to specify a selector outside of the .ear file so the person installing the application can adjust the client ID? I'm hesitant to require that the person installing my consumer application(s) unzip the ear, change the selector's "myClientID" value, and rezip it. I would rather use a identical application package on our multiple production servers (and the test servers for that matter) and have other files, descriptors, or database settings outside of the ear tweaked to account for the environment. Ultimately, it would be great to be able to modify the selector at runtime so I can use my application's existing configuration mechanisms to locate and set the clientID. Is that possible? (FYI: I posted this scenario on the JB Messaging forum already to discuss the JMS aspects of this scenario http://www.jboss.org/index.html?module=bb&op=viewtopic&t=155644) Any other ideas are appreciated as well, Josh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232487#4232487 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232487 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: binary protocol?
Hi mattlf, JBoss Remoting is based on a binary protocol. Most of the data in the wire is serialized Java objects, either serialized by standard Java serialization or JBoss Serialization. Ron, please correct me if I'm wrong. :) HTH View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232485#4232485 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232485 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - How to get JBOSS to use parsers in web-inf/lib
I have installed JBOSS EAP 4.3 GA CP04 ( JDK 1.5 ) I have dom4j-1.6.1.jar xercesImpl-2.9.1.jar xml-apis-1.3.04.jar in my WEB-INF/lib . These are used for some application specific functionality. I need JBOSS to use this version of jars overriding its own version. I added this piece in the jboss-web.xml and deployed my war file. com.arisglobal:loader=agx63.war java2ParentDelegation=false Inspite of this, I am unable to force JBOSS to use my version of the jars. I also tried to add to JBOSS_CLASSPATH in the run.bat. BUt this requires to comment the JBOSS endorsed Libraries. THis is causing un-expected behaviour. The same war file I deployed once, is not getting deployed the second time. Please suggest if I have not approached this problem the right way. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232482#4232482 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232482 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Multiple clients and message types - selectors?
OK, thanks again for all your help. I'll post over there and see what I can dig up. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232480#4232480 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Wrong target. class org.jboss.jms.client.delegate.Client (Repost)
I actually found out the problem, I was using the wrong jar version. but then another problem arose: how do i recover with maven this file, given that it has dots in the directory name: http://repository.jboss.com/jboss/messaging/1.4.0.SP3/lib/jboss-messaging-client.jar If I do: | | | org.jboss.client | jbossall-client | 4.0.5.GA | compile | then maven tries for http://repository.jboss.com/jboss/messaging-client/1/4/0-SP3/lib/jboss-messaging-client/1.4.0-SP3/jboss-mesaging-client-1.4.0-SP3.jar How do I do that? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232296#4232296 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: Netty JBossRemoting
Hi, Remoting 2 uses plain Java socket API. Remoting 3 uses JBoss XNIO framework. To implement complicated protocol in the future, Netty might be used in conjunction with XNIO. Netty already provides XNIO transport so they can work together. On discovery, Remoting 2 uses its own mechanism based on multicast (or JNDI). Remoting 3, it's not implemented yet. Ron and David, please correct me if I'm wrong. :) HTH, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232477#4232477 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
"alesj" wrote : "jeff.yuchang" wrote : | | Is the jar package the only way to get this kind of resource?? I mean, do we have other approaches, or can we use a custom package suffix? | It's all by the spec. ;-) | | What you had before was actually 3 deployments | as directories that don't have a '.' in the name | are not treated as top level deployments. | | Hence when you tried to lookup a resource from one of them, | probably the other one wasn't "ready" yet. | | If you have a '.' in your "grouping" directory, | it will be treated as a top level deployment, | having those 2 files as sub-deployments and a metadata file. | This should of course see its resources at any given post-cl-creation time. Thanks for this info, very to the point. ;-) I've tested it change the idm name into 'idm.config', it works like a charm. ;-) Thanks Ales. ;-) -Jeff View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232456#4232456 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232456 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Licensing
Is Jboss free to use and deploy to a production environment, or are there licensing, or support costs involved? Rupert View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232455#4232455 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
"jeff.yuchang" wrote : | Is the jar package the only way to get this kind of resource?? I mean, do we have other approaches, or can we use a custom package suffix? It's all by the spec. ;-) What you had before was actually 3 deployments as directories that don't have a '.' in the name are not treated as top level deployments. Hence when you tried to lookup a resource from one of them, probably the other one wasn't "ready" yet. If you have a '.' in your "grouping" directory, it will be treated as a top level deployment, having those 2 files as sub-deployments and a metadata file. This should of course see its resources at any given post-cl-creation time. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232453#4232453 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232453 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Not getting workflow output on alfresco server console.
Hi, I am following this tutorial for workflow http://www.mastertheboss.com/en/jbpm/51-jbpm-tutorial-part-1.html but not getting expected results on back end alfresco server console.I am using alfresco 2.0.0 with JBoss with jdpl designer plugin for eclipse.I am deploying workflow from eclipse directly into alfresco using plugin. Can anyone please help me out how to get desired results? Thank You, Regards, Lalit View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232451#4232451 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Memory leak with Provider webservice implementation
Hi, I have a problem running my app that implements webservice using Provider api. After ~4hrs of mild load AS goes out of memory. I'm using JBoss 5.0.1 with sun jdk 1.6.0_14. Configuration is -Xms256m -Xmx1024m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -XX:+UseConcMarkSweepGC -Dsun.rmi.dgc.client.gcInterval=180 -Dsun.rmi.dgc.server.gcInterval=180 My endpoints defined as follows: | @WebServiceProvider(serviceName = "StorageService", portName = "External", wsdlLocation = "WEB-INF/wsdl/storage.wsdl") | @BindingType(value = HTTPBinding.HTTP_BINDING) | @ServiceMode(value = Service.Mode.PAYLOAD) | public class StorageServiceExternalProvider extends AbstractServiceProvider implements Provider { | | @Resource(type = Object.class) | protected WebServiceContext wsContext; | | public Source invoke(Source req) { | MessageContext mc = wsContext.getMessageContext(); | String path = ((String) mc.get(MessageContext.PATH_INFO)).substring(1); | return invoke(path, req); | } | | protected String getJndiNameSLSB() { | return "StorageExternalSarco/local"; | } | } | | | public abstract class AbstractServiceProvider { | private static Logger log = Logger.getLogger(AbstractServiceProvider.class); | | protected abstract String getJndiNameSLSB(); | | public Source invoke(String path, Source req) { | | JAXBContext jc = null; | Object local; | Method[] localMethods; | | try { | InitialContext ic = new InitialContext(); | local = ic.lookup(getJndiNameSLSB()); | ic.close(); | localMethods = local.getClass().getMethods(); | | jc = StorageJAXBContext.getContext(); | | } catch (Throwable t) { | log.error("Unable to initialize", t); | return new DOMSource(); | } | | Reader decoded; | Object in = null; | try { | | decoded = new StringReader(URLDecoder.decode(req.toString(), "utf8")); | in = jc.createUnmarshaller().unmarshal(decoded); | | if (in instanceof JAXBElement) | in = ((JAXBElement)in).getValue(); | | for (Method m : localMethods) | if (m.getName().equals(path)) | { | Object result = m.invoke(local, in); | Class retType = m.getReturnType(); | if (retType == Void.TYPE) | return new DOMSource(); | else | return new JAXBSource(jc, result); | } | | throw new Exception("Accessing invalid path: " + path); | | } catch (Throwable e) { | log.error("Error processing invocation for path: " + path + ", input type is: " + (in == null ? "NULL" : in.getClass()), e); | return new DOMSource(); | } | } | web.xml: | StorageServiceExternalProvider | com.photoholding.storage.StorageServiceExternalProvider | | | StorageServiceExternalProvider | /External/* | I tried to do jmap profiling and it shows lots of B[ and C[ objects growing with time. Looks like "Provider" instance is never released and GC skips it - size of the OldGen grows until GC can't handle it. Any help is appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232449#4232449 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232449 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
"alesj" wrote : "jeff.yuchang" wrote : Also, in this test, I ran the DU::getClasspath, I showed the idm.jar, but couldn't find the idm.cfg.xml file, I was putting it in the idm.jar/META-INF/. | | | Only metadata files should be in META-INF. | Configuration should be in the root. | | Or you need to add META-INF infront if you wanna look for that resource via CL. My bad.. ;-(.. OK, using the DU::getClassloader can get this resource.. Thanks for your help. Is the jar package the only way to get this kind of resource?? I mean, do we have other approaches, or can we use a custom package suffix? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232446#4232446 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
"jeff.yuchang" wrote : Also, in this test, I ran the DU::getClasspath, I showed the idm.jar, but couldn't find the idm.cfg.xml file, I was putting it in the idm.jar/META-INF/. | Only metadata files should be in META-INF. Configuration should be in the root. Or you need to add META-INF infront if you wanna lok for that resource via CL. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232445#4232445 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232445 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
"alesj" wrote : "jeff.yuchang" wrote : | | | | | 14:34:36,635 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ state=PreReal mode=Manual requiredState=Real | | | org.jboss.deployers.spi.DeploymentException: java.lang.IllegalArgumentException: Resource idm/jboss.idm.cfg.xml does not exist | | | | | | Why is there a idm/ at the begining? I was doing another test, trying to add the idm prefix.. After I remove the idm, it was still the same, I just copied the another stacktree, apart from the file name, it is the same. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232444#4232444 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - How to pass/set ContextData to be available on interceptors
I have 2 jboss instances. Clients connect to the first app1 on jboss1, which connects to the second app2 on jboss2 : client-> jboss 1 ->jboss2 This means that each method that is invoked on jboss1 invokes some method(s) on jboss2. JBoss1 is just another client from Jboss2 point of view I have to log all user activity. Each jboss instance writes to it's own log file. I am ussing an interceptor to log all application's bean/method invocations on each jboss instance. @AroundInvoke public Object intercept(InvocationContext ctx) throws Exception { log.info(ctx.getMethod().getName()); ... ctx.proceed(); } I want establish reliable corelation between jboss1 log and cluster jboss logs. How can I obtain client (jboss1) information on jboss2? Or, if that is not possible, how can I pass some context information from jboss1(app1) method to jboss2(app2) method, without explicitly changing method signature on app2? Ideally the information should be available on InvocationContext.getContextData() on the jboss2, but I don't know how to set contextdata on InvocationContext. Looking at InvocationContextImpl.java I can see that getContextData tries to get the metadata from ClientInterceptorUtil: metadata = ClientInterceptorUtil.getClientMetadataMap(wrapped); I don't know how/where to set the data to ClientInterceptorUtil. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232443#4232443 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232443 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
Also, in this test, I ran the DU::getClasspath, I showed the idm.jar, but couldn't find the idm.cfg.xml file, I was putting it in the idm.jar/META-INF/. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232442#4232442 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232442 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Modifying the database structure of JBoss Portal
In a portal training a very interesting question was raised: If you install JBoss Portal on a host system and you want to use the databases of a host, you have some reglementations: It is not allowed to have table names in your database with more than 8 letters. Is it possible to influence the names of the tables which JBoss Portal is creating during the first startup? Thanks, Andy View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232441#4232441 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232441 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
Just finished the test, same result, the whole stack tree is as following: | 17:34:07,272 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ state=PreReal mode=Manual requiredState=Real | org.jboss.deployers.spi.DeploymentException: java.lang.IllegalArgumentException: no config resource | at org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:123) | at org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:42) | at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) | at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) | at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) | at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781) | at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698) | at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304) | at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205) | at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405) | at org.jboss.Main.boot(Main.java:209) | at org.jboss.Main$1.run(Main.java:547) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.IllegalArgumentException: no config resource | at org.jboss.identity.idm.impl.configuration.jaxb2.JAXB2IdentityConfiguration.createConfigurationMetaData(JAXB2IdentityConfiguration.java:121) | at org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:75) | ... 23 more | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232440#4232440 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232440 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
"jeff.yuchang" wrote : | | | 14:34:36,635 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ state=PreReal mode=Manual requiredState=Real | | org.jboss.deployers.spi.DeploymentException: java.lang.IllegalArgumentException: Resource idm/jboss.idm.cfg.xml does not exist | | | Why is there a idm/ at the begining? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232439#4232439 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232439 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Join Problem
Ok. i do not put a controller class because i use WfEngine for that. Here is some wfengine works: | | final String taskInstanceId = BPMEngineRegistry.getLocalId(wfTask.id); | | | | wfEngine.signal(wfTask.path.id, null); | wfEngine.endTask(taskInstanceId, null); | that line of code works (signalling to another task) for process that not in fork/join context. Should I add a taskcontrollerhandler to be able to work? Thanks a lot. Cheers. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232435#4232435 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232435 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
"alesj" wrote : "jeff.yuchang" wrote : pack the stuff into .jar suffix approach doesn't work, the same resource was not found exception. | | | If you use this approach, then you have to use DU::getClassLoader, | when trying to load resources. | | I was using the DU::getResourceClassLoader && getResourceLoader do the test, it didn't find it, I will try to use the DU::getClassLoader do the test, whats the difference between these? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232434#4232434 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
Thanks, below it is the exception: | 14:34:36,635 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ state=PreReal mode=Manual requiredState=Real | org.jboss.deployers.spi.DeploymentException: java.lang.IllegalArgumentException: Resource idm/jboss.idm.cfg.xml does not exist | at org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:119) | at org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:41) | at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) | at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) | at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) | at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781) | at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698) | at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304) | at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205) | at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405) | at org.jboss.Main.boot(Main.java:209) | at org.jboss.Main$1.run(Main.java:547) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.IllegalArgumentException: Resource idm/jboss.idm.cfg.xml does not exist | at org.jboss.identity.idm.impl.configuration.jaxb2.JAXB2IdentityConfiguration.createConfigurationMetaData(JAXB2IdentityConfiguration.java:112) | at org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:71) | ... 23 more | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232432#4232432 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232432 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Join Problem
in your processdefinition xml "controller class attribute is blank" how come you were able to complete the two parallel task? after removing controoler class tag from xml the process instance ended sucussfully. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232429#4232429 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
"jeff.yuchang" wrote : pack the stuff into .jar suffix approach doesn't work, the same resource was not found exception. | If you use this approach, then you have to use DU::getClassLoader, when trying to load resources. "jeff.yuchang" wrote : | By putting the default config files in the deployers/idm doesn't work either. Nothing happened this way, seems it can't listen the -jboss-idm.xml suffix file in the deployer folder. Sure, you cannot expect it to find a match you're just about to instruct it how to find. ;-) And I only meant that you move the .hbm files to deployers/idm. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232428#4232428 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232428 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Multiple clients and message types - selectors?
Well, as per JMS spec, JBoss Messaging lets you set the client id programmatically after creating a connection, and you can define and set selectors when creating a consumer. However if you're using MDBs it's different, bear in mind MDBs are not part of JBM, they're part of the app server, and follow a different contract defined in the JEE spec. I'm not sure if that is possible, but you're best bet is to ask in the EJB forum. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232426#4232426 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232426 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Join Problem
Hi, I have same problem. here is my process definition: | | | | a test for fork/join workflow | | | | | | | | | | | | | Please approve A | | | | CORBANK | | | | | | | | | | | Please approve B | | | | APPROVERS | | | | | | | | | | | | | | Document for review | | | | REVIEWER | | | | | | | | | ...the two task had already completed/signaled but got stuck on join. any idea? Thanks a lot. Cheers. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232425#4232425 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
Can you please post the entire exception stacktrace when you try to access that resource? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232413#4232413 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Staic variable is getting shared between two applications
Hi All, I have two turbine appliactions deployed in JBoss default profile. Actually turbine jar is packaged seperately in 2 ears but still static variables in turbine servlet are getting shared between 2 applications. I have added jboss-app.xml in meta-inf of both ear files e.g. test:loader=test.ear java2ParentDelegation=false After adding above, applications are not getting deployed. It throws exception like, java.lang.NoClassDefFoundError: java/lang/Object at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) I am not getting why this is not working? Can anybody gives solution? If I add above jboss-app.xml for test applications having only servlet(common to both) then it works fine (static var is not getting shared). But it doesn't work for my turbine application where there are too many jars ejbs etc. Please give suggestions if anybody has. Thanks in advance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232412#4232412 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232412 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: javax.naming.NameNotFoundException: jdbc not bound
Thanks for Peter's help. Refer to the "Setup a Oracle Datasource" article , http://www.jboss.org/community/wiki/SetUpAOracleDatasource, Refer to the "DataSource configuration" article , http://www.jboss.org/community/wiki/ConfigDataSources Both of these 2 article do not mention that it needs to config "web.xml" and jboss-web.xml". About the link to "How do I create a resource-ref?" article, it also does not show how to config for these 2 xml file. So stranger, there is no correct document or article to completely guide the end user to setup the data source for a web application to use. Dear JBoss, Please create a better documentation for using JBoss AS so that any end user won't need to search around to find the usage/method/solution of using JBoss AS. Thanks a lot. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232411#4232411 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Clustered temporary queue problem
Does anybody know, whether it is a possible way of using temporary queues/topics? Thanks a lot! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232407#4232407 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: emptySessionPath with HTTP/1.1 Connector
same problem. in jboss4 works, in jboss5 doesn't View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232406#4232406 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232406 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
pack the stuff into .jar suffix approach doesn't work, the same resource was not found exception. By putting the default config files in the deployers/idm doesn't work either. Nothing happened this way, seems it can't listen the -jboss-idm.xml suffix file in the deployer folder. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232405#4232405 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232405 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user