[jboss-user] [Security JAAS/JBoss] - Re: Urgent -Please - Custom Security Manager doesn't work!
Any reply?? Please help me! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243424#4243424 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243424 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - How to call external service(Third party api) from Enterpris
Hi, I have few questions on EJB3.0 with JBOSS Application server. We use EJB3.0 with JBOSS in our application. Here we have a requirement to use third party APIs for one of the business logic module. Queries: (a)Can we start this third party API as a separate service from EJB? I would like to call third party service from session bean and this third part service could use its own threads. (b)Can we start third party service explicitly from the container? We are looking ways to start these services explicit to the web /EJB container. Please let me know. Thanks, Chandra View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243425#4243425 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - How to call external service(Third party api) from Enterpris
Hi, I have few questions on EJB3.0 with JBOSS Application server. We use EJB3.0 with JBOSS in our application. Here we have a requirement to use third party APIs for one of the business logic module. Queries: (a)Can we start this third party API as a separate service from EJB? I would like to call third party service from session bean and this third part service could use its own threads. (b)Can we start third party service explicitly from the container? We are looking ways to start these services explicit to the web /EJB container. Please let me know. Thanks, Chandra View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243426#4243426 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243426 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss Messaging not working as expected
Hi. Finally i managed to create a jira task and attached my eclipse project. If anyone could have a look at it and help me it would be great. Here is the link to jira: https://jira.jboss.org/jira/browse/JBMESSAGING-1684 Thanks in advance. @gaohoward: If i use 1 queue it works just fine. Even with 5 queues it works most of the time but with for example 10 queues i never successfully finished a test. -Alex View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243428#4243428 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243428 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss Messaging not working as expected
That's great Alex. I'll take a look. Thanks. Howard View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243430#4243430 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - From Servlet Standalone Tomcat to EJB on JBoss
Hi, i have a Problem with security on standalone Tomcat and JBoss. But first, what I try to do: I have a Google Web Toolkit (GWT) Application. The servercomponent of this GWT app is a servlet. This GWT app is running on an standalone tomcat. From this servlet, I try to access a stateless session bean running on an remote JBoss server. Without any security solutions, it's running fine. Now I try to add some security to this system. So the GWT app is authenticating against the tomcat server with a form base authentication against an database. The JBoss server is also authenticating against the same database (because on tomcat and JBoss there should be the same users and roles). My problem is, that tomcat does not populate the username und password from the logged in principal to JBoss, so when calling my EJB, I have to do it in that way (otherwise I get an authentication failed error): | Properties env = new Properties(); | env.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.jboss.security.jndi.JndiLoginInitialContextFactory); | env.setProperty(Context.SECURITY_PRINCIPAL, TestUser); | env.setProperty(Context.SECURITY_CREDENTIALS, password); | | InitialContext ctx; | try { | ctx = new InitialContext(env); | connector = (MyBean) ctx.lookup(java:comp/env/ejb/MyBean); | } catch (NamingException e) { | //do something | } | Does somebody have a solution for this problem? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243431#4243431 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJBTimer Calling EJB issue ClassNotFoundException No Cla
How are you packaging the application(s)? Are the EJBs and the com.thesearchagency.service.kat.util.ServiceLocator part of the same application(jar)? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243432#4243432 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243432 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] portal and apache? style.css not found?
Hı all, I configured my httpd.conf as follows: The apache balances the load.. The portal home page comes, however, some images and colours cannot be seen.. When I examined the access_log , I see such errors... 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-core/themes/renewal/portal_style.css HTTP/1.1 404 241 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-core/themes/renewal/images/animated_favicon1.gif HTTP/1.1 404 253 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-identity/style.css HTTP/1.1 404 223 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-core/js/modal.js HTTP/1.1 404 221 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-core/css/modal.css HTTP/1.1 404 223 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-ajax/dyna/prototype.js HTTP/1.1 404 227 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-ajax/dyna/effects.js HTTP/1.1 404 225 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-ajax/dyna/dragdrop.js HTTP/1.1 404 226 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-ajax/dyna/dyna.js HTTP/1.1 404 222 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal-ajax/dyna/style.css HTTP/1.1 404 224 10.10.0.74 - - [13/Jul/2009:17:40:47 +0300] GET /portal HTTP/1.1 200 13939 Httpd.conf content ... SSLSessionCache dbm:/openssl/ssl_gcache_data ErrorLog /mms/httpd-2.2.11/logs/SSL.log LogLevel debug VirtualHost *:443 SSLEngine On SSLProxyEngine On SSLCertificateFile /openssl/server.crt SSLCertificateKeyFile /openssl/server.key SSLCACertificateFile /openssl/ca.crt ProxyPreserveHost On Proxy balancer://portalcluster BalancerMember https:// 10.10.0.138:9443/portal BalancerMember https:// 10.10.0.138:9443/portal route=portaltomcat1 /Proxy Location /portal Allow From All ProxyPass balancer://portalcluster/ stickysession=JSESSIONID nofailover=off /Location /VirtualHost VirtualHost *:90 Proxy balancer://portalcluster BalancerMember http://10.10.0.138:8080/portal BalancerMember http://10.10.0.138:8080/portal route=portaltomcat1 /Proxy Location /portal Allow From All ProxyPass balancer://portalcluster/ stickysession=JSESSIONID nofailover=off /Location /VirtualHost Could you please help to solve this problem? I couldn't find any solution? Thanks in advance.. Internal Virus Database is out-of-date. Checked by AVG. Version: 7.5.557 / Virus Database: 270.12.10/2088 - Release Date: 4/30/2009 6:01 AM Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmektedir. Mesajdaki gorusler gondericiye ait olup HAVELSAN A.S. resmi gorusu olmak zorunda degildir. Attention: This e-mail message is private and privileged.If you are not the recipient for whom this e-mail message is intended, please notify the sender immediately and delete this e-mail message from your system.All sent and received e-mail messages go through a virus scan. Any opinions presented in this e-mail message are solely those of the author and do not necessarily represent HAVELSAN A.S.`s formal and authorized views. ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Any recommendation how to use JBM2 Producers Pool?
you are correct that (1) should be avoided. regarding (2), When you are using 1 connection per producer are you creating a new session per producer. JBM2 will share connections between sessions created by the same connection factory, see http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html_single/index.html#connection-ttl.session.multiplexing. JMs has no notion of pooling, A JMS producer should *not* be shared between application threads, each should have its own. If you want to cut down on the number of producers being used you can write your own send method and pool the producers your self, just make sure your send method is synchronized on the producer being used. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243446#4243446 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Circular cache TimeToLive for Duplicated Message detecti
I'm not sure why you would want to do thi, could you explain your use case. also see http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html_single/index.html#duplicate-detection View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243447#4243447 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243447 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.1.0GA with JBM2.0.0. b3
First, thank you for your quick replies. I ran the JBM JEE samples which integrate with JBoss and they all run fine. So that is good news. Next I tried to find the testQueue of the MDB sample using the JMX console as pointed out by ataylor, but I fail to find the MBean. Also I still don't understand where/how you need to register your queues and stuff. For example the server config files delivered with the samples, where are they put under the server profile? Can someone please shed some light here ;-), cause I'm getting a bit confused. Thank you in advance View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243452#4243452 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: mapped-name is required for jdbc
Hi, please post the relevant snippet of web.xml. And maybe you should follow the error message and add the mapped-name element in resource-ref ;-). Hope this helps Wolfgang View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243453#4243453 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243453 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.1.0GA with JBM2.0.0. b3
have a look at http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html_single/index.html#predefined.queues View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243455#4243455 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Any recommendation how to use JBM2 Producers Pool?
If you're servlets are running in the same AS instance as the broker and it's JBoss AS then you can just use the JMS JCA adapter to pool connections. If it's not JBoss then you can share a ConnectionFactory (or ClientSessionFactory) instance between servlets - this will provide its own pooling of underlying connections. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243457#4243457 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.1.0GA with JBM2.0.0. b3
Tx, Andy Do you customize the default-with-jbm2/deploy/messaging.sar/jbm-jms.xml file or can you just a well drop-in your own jbm-jms.xml file in the deploy folder or a subfolder? Is the filename fixed or can you choose your own name? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243461#4243461 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss 5.1.0GA with JBM2.0.0. b3
guntherv wrote : Tx, Andy | | Do you customize the default-with-jbm2/deploy/messaging.sar/jbm-jms.xml file or can you just a well drop-in your own jbm-jms.xml file in the deploy folder or a subfolder? Is the filename fixed or can you choose your own name? what ever is easiest for you, the filename is fixed tho' View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243469#4243469 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243469 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Login information cached? Interceptor?
Thanks a lot for your help. That was exactly what I was looking for. Best regards, Anton View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243474#4243474 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243474 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Variable missing in assignment handler
hi all, my swimlane assignment handler is unable to retrieve variables that have been previous set in both root token and local token. the test involves a forkhandler, sub process and swimlane assignment handler. When inside the SwimlaneAssignmentHandler getVariable() returns null which is not what i was expecting | public void assign(Assignable assignable, ExecutionContext executionContext) { | | assertNotNull(shouldnt be null, executionContext.getVariable(IDENTIFIER)); | String expression = (String)executionContext.getVariable(EXPRESSION); | assertNotNull( shouldnt be null, expression ); | as it was set in the previous ActivityForkActionHandler.execute() | public void execute(final ExecutionContext executionContext) throws Exception { | .stuff | Token(rootToken, ITP + item.getId()); //TODO -lp | newToken.setTerminationImplicit(true); | executionContext.getJbpmContext().getSession().save(newToken); | final ExecutionContext newExecutionContext = new ExecutionContext(newToken); | newExecutionContext.getContextInstance().createVariable( | EXPRESSION, | item.getResponsibleExpression(), | newToken); | | I am not sure if the problem is with my process definition of the swimlan assignment | swimlane name='responsible' | assignment class='com.asteriski.itpflow.action.ActivityForkActionHandlerTest$SwimlaneAssignmentHandler'/ | /swimlane | or with how i am setting the local variables against token in the forkHandler above i have a attached the entire test case below. It is a bit tedious but i needed to include all the handler code. any help is most appreciated. | public class ActivityForkActionHandlerTest extends AbstractJbpmTestCase { | | static JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(jbpm.test.cfg.xml); | | public void testForkHandlerAndSubProcess() throws Exception { | | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); | | ProcessDefinition subProcessDefinition = ProcessDefinition.parseXmlString( | process-definition name='sub' + | start-state + | transition to='wait' / + | /start-state + | swimlane name='responsible' + |assignment class='com.asteriski.itpflow.action.ActivityForkActionHandlerTest$SwimlaneAssignmentHandler' / + | /swimlane + | task-node name='wait' + |description'just waiting'/description + |task name='task-waiting' signal='block' swimlane='responsible'+ | /task + | transition to='end_sub'/transition + | /task-node + | end-state name='end_sub' / + | /process-definition | ); | jbpmContext.deployProcessDefinition(subProcessDefinition); | | ProcessDefinition superProcessDefinition = ProcessDefinition.parseXmlString( | process-definition + | name='super' + | start-state name='start' + | transition name='to_state' to='forkActivities' + | /transition + | /start-state + | node name='forkActivities' + | action class='com.asteriski.itpflow.action.ActivityForkActionHandlerTest$ActivityForkActionHandler' config-type='bean' name='ActivityForkActionHandler'/action + | description + | find all activities that have no blocking state and generate a testign request+ | /description + |transition to='Sub Process'/transition + |/node + | process-state name='Sub Process' + | sub-process name='sub'/ + | transition to='task-node1'/transition +
[jboss-user] [EJB/JBoss] - Jboss Cache in cluster
Hello All, I'am using Jboss Cache 1.4.1 SP9 with Jboss 4.2.3 and JDK 6.0 U 11, to replicate some of my date over different nodes in the cluster. now the problem is that,if any node comes back in the cluster, all other of my nodes looses their data. I just go through the Wiki and clustering guide to solve this issue, but just of no use. my Cache configuration is | | server | | | !-- -- | !-- Defines TreeCache configuration -- | !-- -- | | mbean code=org.jboss.cache.TreeCache | name=jboss.cache:service=SessionTreeCache | | dependsjboss:service=Naming/depends | dependsjboss:service=TransactionManager/depends | | !-- | Configure the TransactionManager | -- | attribute name=TransactionManagerLookupClassorg.jboss.cache.JBossTransactionManagerLookup/attribute | | | !-- | DataNode locking level : SERIALIZABLE | REPEATABLE_READ (default) | READ_COMMITTED | READ_UNCOMMITTED | NONE | -- | attribute name=IsolationLevelREPEATABLE_READ/attribute | | !-- | Valid modes are LOCAL | REPL_ASYNC | REPL_SYNC | INVALIDATION_ASYNC | INVALIDATION_SYNC | -- | attribute name=CacheModeREPL_ASYNC/attribute | | | |!-- |Just used for async repl: use a replication queue |-- |attribute name=UseReplQueuetrue/attribute | |!-- |Replication interval for replication queue (in ms) |-- |attribute name=ReplQueueInterval1000/attribute | |!-- |Max number of elements which trigger replication |-- |attribute name=ReplQueueMaxElements0/attribute | | | !-- Name of cluster. Needs to be the same for all clusters, in order | to find each other | -- | attribute name=ClusterNameTreeCache-Cluster/attribute | | !-- JGroups protocol stack properties. Can also be a URL, | e.g. file:/home/bela/default.xml |attribute name=ClusterProperties/attribute | -- | | attribute name=ClusterConfig | config | !-- UDP: if you have a multihomed machine, | set the bind_addr attribute to the appropriate NIC IP address -- | !-- UDP: On Windows machines, because of the media sense feature | being broken with multicast (even after disabling media sense) | set the loopback attribute to true -- | UDP mcast_addr=228.1.2.3 mcast_port=45566 | ip_ttl=64 ip_mcast=true | mcast_send_buf_size=15 mcast_recv_buf_size=8 | ucast_send_buf_size=15 ucast_recv_buf_size=8 | loopback=false/ | PING timeout=2000 num_initial_members=3 | up_thread=false down_thread=false/ | MERGE2 min_interval=1 max_interval=2/ | !--FD shun=true up_thread=true down_thread=true /-- | FD_SOCK/ | VERIFY_SUSPECT timeout=1500 | up_thread=false down_thread=false/ | pbcast.NAKACK gc_lag=50 retransmit_timeout=600,1200,2400,4800 | max_xmit_size=8192 up_thread=false down_thread=false/ | UNICAST timeout=600,1200,2400 window_size=100 min_threshold=10 | down_thread=false/ | pbcast.STABLE desired_avg_gossip=2 | up_thread=false down_thread=false/ | FRAG frag_size=8192 | down_thread=false up_thread=false/ | pbcast.GMS join_timeout=5000 join_retry_timeout=2000 | shun=true print_local_addr=true/ | pbcast.STATE_TRANSFER up_thread=true down_thread=true/ | /config | /attribute | | !-- | Whether or not to fetch state on joining a cluster |-- | attribute name=FetchStateOnStartuptrue/attribute | | !-- | The max amount of time (in milliseconds) we wait until the | initial state (ie. the contents of the cache) are retrieved from | existing members in a clustered environment. | -- |
[jboss-user] [EJB 3.0] - Re: TimerService.createTimer() in @Service POJO, 4.2.3 vs 5
https://jira.jboss.org/jira/browse/EJBTHREE-1701 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243480#4243480 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: ORA-12519 on jboss-4.2.3.GA cluster
Hi, Could it possible to have document which you have followed to even create a cluster using jBoss 4.2.3GA. I didn't find any guid where to even start. Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243483#4243483 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jBPM 4 Demo Setup
Hi, i installed jBPM 4 by doing the steps from demo.setup from the jBPM User Guide. Installing jBoss, Eclipse and setting the Database Entries (users, groups etc.) was ok. After the installation I shoud go to the jBPM Console --- Doesn't work. (Ressource not found, http://localhost:8080/jbpm-console) But i can go to the jBOSS page (localhost:8080) After this i tried the steps to install the gpd plugin to eclipse. It seems to work by doing the steps Install new software in eclipse. But now i cannot find the JBoss jBPM Entry under preferences to configure the jbpm runtime. Defining the user library and adding the jpdl 4 schema seems to work. So now i cannot open the example jpdl.xml files with the grafical process designer and jboss jpdl isn' t also available und new -- other. Thanks for help. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243492#4243492 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Variable missing in assignment handler
I'll have a look later today, but one compliment in advance. It looks like a unittest that can be run with just a copy/paste (ok, a quickfix for the imports). Everything IN it... great... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243499#4243499 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 Demo Setup
Then something did not go right. I did this the day before the release and it worked for me. Can you see check in eclipse if the plugin is really active? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243500#4243500 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243500 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Error deploying simple servlet
I fixed my problem, I upgraded eclipse to 3.5 and JBoss Tools 3.1 and now it's all ok. It remains the issue of how to hot run the app without export every time a war. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243507#4243507 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243507 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Application Client can't find version.properties
When I run a Java Application I get a java.lang.RuntimeException when I request a connection instance on the factory. Exception in thread main java.lang.RuntimeException: version.properties is not available | at org.jboss.messaging.utils.VersionLoader.getVersion(VersionLoader.java:65) | at org.jboss.messaging.jms.client.JBossConnection.init(JBossConnection.java:147) | at org.jboss.messaging.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:514) | at org.jboss.messaging.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:115) | ... Apparently the org.jboss.messaging.utils.VersionLoader class (jbm-core.jar) tries to resolve the file version.properties on the classpath. The jbm-core.jar contains this file, but adding it to the classpath doesn't resolve the issue. Anybody any idea why this is happening ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243508#4243508 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243508 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Application Client can't find version.properties
Apparently this is already logged at JIRA: https://jira.jboss.org/jira/browse/JBMESSAGING-1616 Is there a workaround for this issue? Thank you View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243509#4243509 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243509 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - windowState not set on ActionRequest
Hi I am creating a PortletUrl using this piece of code in my doView method | PortletURL portlet_url = resp.createActionURL(); | portlet_url.setWindowState(WindowState.MINIMIZED); | portlet_url.setPortletMode(PortletMode.VIEW); | The resulting url is then used as the action url in a form submit. Upon activation of the form's submit I would expect that in the processAction method actionRequest.getWindowState() would return WindowState.MINIMIZED, as this is what the url indicates. But instead I get WindowState.NORMAL. I consider this a bug, but maybe I have misunderstood something in the portlet spec. I am running on a build of the branch JBoss_Portal_Branch_2_7_AS5 on JBoss AS 5.1GA --Soren View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243512#4243512 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243512 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Writing Comet Programming in Jboss 5
Hi, Can any one have a sample program for Comet in Jboss 5 ? I tried implementing org.jboss.servlet.http.HttpEventServlet . It is working . but after some time i am getting OutOfMemoryError. Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243524#4243524 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243524 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Application Client can't find version.properties
can you make sure that the jbm-core.jar is the first thing in your classpath View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243525#4243525 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243525 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - STDERR in JBoss startup with jBPM 4.0
Hi all, I am new to jBPM, just tried to installed jBPM 4.0, after the installation, I started JBoss 5, it output lots of ERROR: | 22:35:13,234 ERROR [STDERR] 63 [main] WARN org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - The use of javax.ws.rs.core.Applica | tion is deprecated, please use javax.ws.rs.Application as a context-param instead | 22:35:13,250 ERROR [STDERR] 79 [main] INFO org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - Adding listed @Provider class org.j | boss.bpm.report.FileWriter | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider DataSourceProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider DefaultTextPlain | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.StringTextStar | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.InputStreamProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.ByteArrayProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.FormUrlEncodedProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.FormUrlEncodedProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.StreamingOutputProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provid | ers.multipart.MultipartReader | 22:35:13,281 ERROR [STDERR] 110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.multipart.ListMultipartReader | 22:35:13,281 ERROR [STDERR] 110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.multipart.MultipartFormDataReader | 22:35:13,281 ERROR [STDERR] 110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.multipart.MapMultipartFormDataReader | 22:35:13,281 ERROR [STDERR] 110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.MultipartWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.MultipartFormDataWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.ListMultipartWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.MapMultipartFormDataWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.multipart.MultipartFormAnnotationReader | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.MultipartFormAnnotationWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.IIOImageProvider | The jBPM user guide says anonymous wrote : And you can surf to the jBPM console You can login as one of the following users: It points to the URL http://localhost:8080/gwt-console, but I was given 404 when tried to open it. Any idea? Thanks Derrick View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243532#4243532 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243532 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM Task Forms Example Not Working
Filed a jira issue today. Here's the link to it. https://jira.jboss.org/jira/browse/JBPM-2423 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243533#4243533 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243533 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Farm deployment errors with large WAR files
Done. I included 20 minutes of logging from both the master and child nodes. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243536#4243536 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243536 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - JBoss exiting with java.lang.OutOfMemoryError
I am running JBoss as a Windows service using jbossvc.exe. However, it runs for a while and terminates with the following JVM dump. Any thoughts? # # An unexpected error has been detected by Java Runtime Environment: # # java.lang.OutOfMemoryError: requested 2621440 bytes for GrET in C:\BUILD_AREA\jdk6_11\hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space? # # Internal Error (allocation.inline.hpp:42), pid=4020, tid=3756 # Error: GrET in C:\BUILD_AREA\jdk6_11\hotspot\src\share\vm\utilities\growableArray.cpp # # Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode windows-x86) # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --- T H R E A D --- Current thread (0x52bcb400): VMThread [stack: 0x52c9,0x52ce] [id=3756] Stack: [0x52c9,0x52ce] [error occurred during error reporting (printing stack bounds), id 0x8001] VM_Operation (0x5709fa74): GenCollectFull, mode: safepoint, requested by thread 0x55541c00 --- P R O C E S S --- Java Threads: ( = current thread ) 0x6fb95800 JavaThread RMI TCP Connection(idle) daemon [_thread_blocked, id=864, stack(0x5d42,0x5d47)] 0x7f3a2400 JavaThread OOB-1224,10.4.100.17:1756 [_thread_blocked, id=2768, stack(0x5dd3,0x5dd8)] 0x5a5fd000 JavaThread ClientMessageReceptor6 daemon [_thread_blocked, id=2440, stack(0x5e70,0x5e75)] 0x69e56800 JavaThread ClockDaemonThread daemon [_thread_blocked, id=312, stack(0x5e6b,0x5e70)] 0x599af400 JavaThread ClientMessageReceptor5 daemon [_thread_blocked, id=2796, stack(0x5e66,0x5e6b)] 0x6a328800 JavaThread ClientMessageReceptor4 daemon [_thread_blocked, id=3708, stack(0x5e61,0x5e66)] 0x6a328400 JavaThread ClientMessageReceptor3 daemon [_thread_blocked, id=1708, stack(0x5e5c,0x5e61)] 0x68668800 JavaThread ClientMessageReceptor2 daemon [_thread_blocked, id=2632, stack(0x5e43,0x5e48)] 0x69f44400 JavaThread ServerMessageReceptor7 daemon [_thread_blocked, id=2824, stack(0x5dc4,0x5dc9)] 0x5a425400 JavaThread ServerMessageReceptor6 daemon [_thread_blocked, id=1896, stack(0x5d9c,0x5da1)] 0x586e5800 JavaThread ServerMessageReceptor5 daemon [_thread_in_native, id=1260, stack(0x5dd8,0x5ddd)] 0x61ca7400 JavaThread ServerMessageReceptor4 daemon [_thread_blocked, id=1200, stack(0x575a,0x575f)] 0x5a0b6400 JavaThread ServerMessageReceptor3 daemon [_thread_blocked, id=3636, stack(0x5e57,0x5e5c)] 0x58565400 JavaThread ServerMessageReceptor2 daemon [_thread_in_native, id=252, stack(0x5e52,0x5e57)] 0x5f407400 JavaThread RequestProcessor-12 daemon [_thread_blocked, id=1648, stack(0x5e3e,0x5e43)] 0x599b1800 JavaThread RequestProcessor-11 daemon [_thread_blocked, id=3560, stack(0x5bc6,0x5bcb)] 0x5f8c1400 JavaThread http-0.0.0.0-8080-4 daemon [_thread_blocked, id=3564, stack(0x5e39,0x5e3e)] 0x5ad06400 JavaThread http-0.0.0.0-8080-3 daemon [_thread_blocked, id=2108, stack(0x5c66,0x5c6b)] 0x52f13800 JavaThread ModificationWatcher Task daemon [_thread_blocked, id=2244, stack(0x5311,0x5316)] 0x5543a400 JavaThread ajp-0.0.0.0-8009-Acceptor-0 daemon [_thread_in_native, id=3896, stack(0x5e34,0x5e39)] 0x55116c00 JavaThread http-0.0.0.0-8080-2 daemon [_thread_in_native, id=2636, stack(0x5e2f,0x5e34)] 0x669cd400 JavaThread http-0.0.0.0-8080-1 daemon [_thread_blocked, id=2592, stack(0x5e2a,0x5e2f)] 0x57cb7c00 JavaThread http-0.0.0.0-8080-Acceptor-0 daemon [_thread_in_native, id=1380, stack(0x5e25,0x5e2a)] 0x66fd4400 JavaThread JBossLifeThread [_thread_blocked, id=2524, stack(0x5e05,0x5e0a)] 0x563c9400 JavaThread PageSavingThread-VicadsAdmin daemon [_thread_blocked, id=3760, stack(0x5e00,0x5e05)] 0x5a865400 JavaThread Store Vicads.USER_CACHE Spool Thread daemon [_thread_blocked, id=2344, stack(0x5e20,0x5e25)] 0x5ac71c00 JavaThread Thread-61 daemon [_thread_blocked, id=1940, stack(0x5e1b,0x5e20)] 0x597f7400 JavaThread Thread-60 daemon [_thread_blocked, id=896, stack(0x5dc9,0x5dce)] 0x669fd400 JavaThread RequestController-15 daemon [_thread_blocked, id=1752, stack(0x5dfb,0x5e00)] 0x54df0400 JavaThread ZipFile Lock Reaper daemon [_thread_blocked, id=1756, stack(0x5df6,0x5dfb)] 0x5a7ee400 JavaThread Thread-57 daemon [_thread_in_native, id=2956, stack(0x5de7,0x5dec)] 0x62d15400 JavaThread Thread-54 daemon [_thread_in_native, id=324, stack(0x5de2,0x5de7)] 0x55939400 JavaThread Thread-49 daemon [_thread_in_native, id=204, stack(0x5dce,0x5dd3)] 0x63238c00 JavaThread Thread-43 daemon [_thread_in_native, id=3340, stack(0x5d3d,0x5d42)] 0x54646400 JavaThread Thread-42 daemon [_thread_in_native, id=3316, stack(0x5dbf,0x5dc4)] 0x56d6d000 JavaThread
[jboss-user] [JBoss Messaging] - Re: Application Client can't find version.properties
Andy, That was the first thing I tried after I read the Jira entry. jbm-core.jar is at top of Eclipse project classpath. Unfortunately the issue remains. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243542#4243542 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243542 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 Demo Setup
If i look in Eclipse what is already installed i get: - All jBPM 4 Tools Features - Common tools for jBPM 3 and jBPM 4 - Common tools for jBPM 3 and jBPM 4 Sources - Flow Language Common Tools Sources - Flow Languates Common Tools - jBPM 4 Graphical Editor and Tools - jBPM 4 Graphical Editor and Tools Sources View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243543#4243543 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243543 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: STDERR in JBoss startup with jBPM 4.0
The errors are no errors but info (look carefully and search the web) Well, just a 404 is very little info for us to help you with. Kind of saying: my car does not drive when I press the pedal, what is wrong? Answers like: did you start it? are valid then, Just like is handbreak off or whatever. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243544#4243544 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243544 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Streamlined tutorial on JBossWS w/ policies (WS-RM)?
Finally got it. I wrote up a fairly detailed explanation how on Google Knol if it's of use to anyone. http://knol.google.com/k/neil-mcfarlane/creating-your-first-web-services-in-java/ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243545#4243545 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243545 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Application Client can't find version.properties
Gunther- Can you create a self contained program which replicates this issue, file a JIRA and attach it? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243546#4243546 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243546 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Client socket time out: InvokerLocator properties ignored?
Hi, I have a standalone client connecting to an EJB3 session bean in a JBoss 4.0.4 GA AS. Since one of the operations takes a long time ( 40 min) to finish, I see a socket timeout exception on the client side. Trying to increase this timeout, first I edited the InvokerLocator's URI in ejb3.deployer/META-INF/jboss-service.xml:attribute name=InvokerLocatorsocket://${jboss.bind.address}:3873/?timeout=360/attribute This didn't work; the client socket timeout stayed the same. So I tried the alternative, configuring the invoker directly:mbean code=org.jboss.remoting.transport.Connector | name=jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3 | dependsjboss.aop:service=AspectDeployer/depends | attribute name=Configuration | config | invoker transport=socket | attribute name=numAcceptThreads1/attribute | attribute name=maxPoolSize300/attribute | attribute name=timeout isParam=true360/attribute | attribute name=serverBindAddress${jboss.bind.address}/attribute | attribute name=serverBindPort3873/attribute | attribute name=backlog200/attribute | /invoker | handlers | handler | subsystem=AOPorg.jboss.aspects.remoting.AOPRemotingInvocationHandler/handler | /handlers | /config | /attribute | /mbean | Which also didn't work, even though the first line in my server.log is this:2009-07-13 15:29:47,718 [main] INFO [org.jboss.remoting.transport.socket.SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.XXX.XXX:3873/?timeout=360] | I'm using jbossall-client.jar and jboss-ejb3-client.jar to run the client. Am I missing anything? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243550#4243550 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243550 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Application Client can't find version.properties
Tim While creating and executing the test client from the command line everything worked fine. After pointing the Eclipse Run configuration to the same JDK used in CLI mode it also worked in eclipse. In Eclipse I was using IBM JDK 1.5. thank you all for your efforts. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243555#4243555 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243555 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss exiting with java.lang.OutOfMemoryError
Have you monitored the memory usage? And the free memory available on the system? Also, is this running in a VM or a physical machine? The growableArray.cpp is often used to increase the ehap or permgen size. You might try setting -Xmx and -Xms to the same value, ditto for -XX:PermSize and -XX:MaxPermSize. Doing this will set the memory spaces at their maximum and prevent increasing or shrinking of the size, which should help avoid the problem. I find is rather unusual that you are getting an out-of-memory error when you are using only about 2GB of the 6GB of memory that you have available. Finally, you should report this to Sun - the JVM should not crash like this. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243561#4243561 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243561 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBCCacheLoader with Oracle 10g problem
niuxuetao_fiserv wrote : Btw, can I use the GenericTransactionManagerLookup in Websphere6.1? It should do. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243564#4243564 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: BerkeleyDB Deadlock Exception from JBoss Cache Loader: B
How many A objects do you expect to have in the system? Are all A objects stored under the same FQN? Also, of those A objects, take for example instance A1. Are you calling multiple attach/detach for the same A1 instance? Or for each A instance, i.e. A1, there's only one attach and one detach? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243566#4243566 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243566 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Announcing JBoss Cachee 3.1.0 - final release now availa
Yeah, PojoCache 3.0.0.GA works with JBoss Cache 3.1.0.GA. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243567#4243567 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243567 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: How to get cache size programmatically
You can such information via CacheJmxWrapperMBean. See http://www.jboss.org/index.html?module=bbop=viewtopict=156458postdays=0postorder=ascstart=10 for more information on how you can get hold of that interface. Are you running within an application server or standalone? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243568#4243568 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 Demo Setup
try 'open with'... can be that names are not fully related to the editor View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243571#4243571 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: How to get cache size programmatically
Even if running standalone, you can get hold of that interface programmatically following steps in http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/3.1.0.GA/userguide_en/html_single/index.html#jmx.registration Remember that from JDK5 onwards, you can get hold of an MBeanServer from a J2SE environment too. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243569#4243569 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243569 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Caching, hybernate and using enums = no go
If you want an Entity to be cached, I'd suggest you avoid @Replicable and instead configure it with @Cache annotation (see Hibernate/JPA annotations) so that the entity is added to the 2nd level cache. The 2nd level cache use case has been more road tested than what you're trying to do. See http://www.jboss.org/community/wiki/ClusteredJPAHibernateSecondLevelCachinginJBossAS5 for more info. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243575#4243575 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243575 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: BerkeleyDB Deadlock Exception from JBoss Cache Loader: B
We use about 10-20 nodes (i.e. 10-20 different FQNs) and each node keeps up to 1000,000 keys in the map, so each node/FQN also keeps up to 1000,000 instances of A. For A1, I am calling attach() and detach() only once respectively. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243576#4243576 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243576 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - JBAS5.1: ${} deployment notation - Newbie information reques
Can anyone point me at information on the ${} notation used throught the JBAS5.1 deployment configuration files? Example: jgroups-channelfactory-stacks.xml mcast_port=${jboss.jgroups.udp_async.mcast_port:45689} So where do I specify a value for jboss.jgroups.udp_async.mcast_port to override the default value? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243577#4243577 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243577 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: STDERR in JBoss startup with jBPM 4.0
The console url is: http://localhost:8080/jbpm-console, thats why you got 404. seems we forgot to update the user guide on this one, could you file a jira for this? Thanks Jeff View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243580#4243580 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243580 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Caching, hybernate and using enums = no go
Well, This is exactly the problem. The object needs to be a entity hence the @entity annotation AND it needs to be in JBoss Cache. Don't ask why. It needs to be. In the meantime I figured out that the problem has to do with javassist. Something is going wrong there. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243581#4243581 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243581 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Circular cache TimeToLive for Duplicated Message detecti
Andy, In my use case, I would like to detect duplicated user messages within user session time _window, meaning: 1. Client AB sends an asynchrone message about user AB to my application that willpersisted it to queue 2. If my application fails to ACK back in 15 seconds then the same message will be sent again. 3. I use the duplicated message detection that JBM offer and configure the id_cache_size. 4. I build a message ID from (userID and messageBody(10 chars)) 5. More than 15 min later (old session to time out) the same client is allowed to send the same user message with the same body. 6. JBM duplicated message detection will ignore the message as it found similar one in the cache. Thereâs none common between the same user messages except that itâs sent after the old session times out, thatâs why I was looking if thereâs a way to clean the message_detection cache of messagesIDs after a predefined time_window. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243587#4243587 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243587 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBAS5.1: ${} deployment notation - Newbie information re
The jboss.jgroups.udp_async.mcast_port is a system property, you can set it on the command line: run -Djboss.jgroups.udp_async.mcast_port=12345 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243588#4243588 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243588 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBAS5.1: ${} deployment notation - Newbie information re
The general syntax is: ${system-property[:default-value]} As far as I know, it applies to all configuration files. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243589#4243589 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - @XmlSeeAlso usage
Should I expect @XmlSeeAlso to work on an SLSB/WS SEImpl? | @Stateless | @WebService() | @XmlSeeAlso({Wakeboard.class, WakeboardBinding.class, Tower.class}) | public class WakeRider | { |... | } | I am having no luck in getting the additional classes added to the generated WSDL. I am using JBoss 4.2.3.GA w/ JBossWS 3.1.1.GA Native. Thanks, Craig View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243590#4243590 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243590 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: @XmlSeeAlso usage
I just tested, and it works with: JBoss 4.2.3.GA + JBossWS 3.1.1.GA Metro. So I guess the question really is: Is it supposed to work in 3.1.1.GA Native? Thanks, Craig. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243594#4243594 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243594 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: STDERR in JBoss startup with jBPM 4.0
jeff.yuchang wrote : The console url is: http://localhost:8080/jbpm-console, thats why you got 404. | | seems we forgot to update the user guide on this one, could you file a jira for this? | | Thanks | Jeff LOL I used the gwt-console for a several weeks, so did not notice this... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243595#4243595 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - node_enter event trouble
Hi all, I have the following in my process definition: state name=Forward call | event type=node_enter | action class=com.sample.action.MyActionHandler/ | /event | transition to=join2/transition | /state However, when the node_enter event is triggered MyActionHandler is never invoked. Does anyone know why this is? Thanks in advance View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243596#4243596 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243596 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: node_enter event trouble
Yep I know why this is You could have to fairly easily if you would have typed the for words jbpm node enter event in e.g. google: http://www.google.nl/search?q=jbpm+node+enter+event It should be a 'dash' instead of an underscore View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243597#4243597 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243597 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Hot deployment woks incorrectly with JBossAS Tools / JBIDE-4
Rob, Sorry that I am posting that in forum, but I could not edit the issue by some reason. It always tells me either that issue is closed or issue is null. -- I've got your idea about deployment descriptor and will use fake one to ensure redeployment. I haven't checked out JBoss 5.1 yet, so could not say anything about it. But what about using archives tool? Seems that the archive isn't deployed to JBoss at all... https://jira.jboss.org/jira/browse/JBIDE-4608 Alex. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243599#4243599 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243599 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Messaging 1.4.0 SP3 with JBoss AS 4.2.3
facing exactly the same problem. we are using JBoss 4.2.3 GA with JBM 1.4. Do any one have solution for this? Assuming this could be because of network issue, we changed the JBoss server bind address to loop back address, but still got the same error, showing, 2009-07-14 17:57:51,925 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[25724e, bisocket://10.1.150.170:2050639998] disconnecting ... 2009-07-14 17:57:51,925 DEBUG [org.jboss.remoting.transport.socket.SocketWrapper] ClientSocketWrapper[Socket[addr=/127.0.0.1,port=4235,localport=56656].1440636] closing 2009-07-14 17:57:51,925 DEBUG [org.jboss.remoting.callback.ServerInvokerCallbackHandler] ServerInvokerCallbackHandler[ab474q-8irr1u-fx4e2z0n-1-fx4e2ze3-4+ab474q-8irr1u-fx4e2z0n-1-fx4e2zg9-9] shut down Its quite urgent, can any one pls help? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243604#4243604 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243604 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re:
timfox wrote : clebert.suco...@jboss.com wrote : Take a look at jms-ds.xml | | | | | | The JNDI is java:/XAConnectionFactory. | | | | (You need to use the local JNDI for that... just do new InitialContext(). As you may known java:/ means local VM). | | | | | | you can just do: | | | | | | InitialContext ctx = new IntialContext(); | | | ConnectionFactory cf = (ConnectionFactory)ctx.lookup(java:/XAConnectionFactory); | | | | | | | | | That is NOT correct. | | If you lookup java:/XAConnectionFactory you will NOT be using JCA. | | There is a section on using JCA in the docs: | | http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html_single/index.html#d0e5931 | | Yes.. I remember that now... What confused me was the JMSProviderLoader that still on the jms-ds.xml: connection-factories |!-- | JMS Stuff |-- | |mbean code=org.jboss.jms.jndi.JMSProviderLoader name=jboss.messaging:service=JMSProviderLoader,name=JMSProvider | attribute name=ProviderNameDefaultJMSProvider/attribute | attribute name=ProviderAdapterClassorg.jboss.jms.jndi.JNDIProviderAdapter/attribute | attribute name=FactoryRefjava:/XAConnectionFactory/attribute | attribute name=QueueFactoryRefjava:/XAConnectionFactory/attribute | attribute name=TopicFactoryRefjava:/XAConnectionFactory/attribute |/mbean |!-- | JMS XA Resource adapter, use this to get transacted JMS in beans |-- |tx-connection-factory | jndi-nameJmsXA/jndi-name | xa-transaction/ | rar-namejms-ra.rar/rar-name | connection-definitionorg.jboss.messaging.ra.JBMConnectionFactory/connection-definition | config-property name=SessionDefaultType type=java.lang.Stringjavax.jms.Topic/config-property | config-property name=JmsProviderAdapterJNDI type=java.lang.Stringjava:/DefaultJMSProvider/config-property | max-pool-size20/max-pool-size | security-domain-and-applicationJmsXARealm/security-domain-and-application |/tx-connection-factory | /connection-factories | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243617#4243617 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243617 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: STDERR in JBoss startup with jBPM 4.0
anonymous wrote : The errors are no errors but info Yes, I noticed that as well, the prefix ERROR [STDERR] plus I followed the incorrect console URL so couldn't get into gwt made me feel there are something wrong... I wonder why ERROR [STDERR] is in there if it's meant to be normal INFO. anonymous wrote : http://localhost:8080/jbpm-console It works on me now anonymous wrote : could you file a jira for this? I am not very sure how to file a jira :(, can you please point me the right place. Derrick View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243620#4243620 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Variable missing in assignment handler
Further testing reveals that there are NO variables at all available in the Assignment handler. I am using Jbpm3.2.6 | | public void assign(Assignable assignable, ExecutionContext executionContext) { | | MapToken, TokenVariableMap tokenVariableMaps = executionContext.getContextInstance().getTokenVariableMaps(); | assertNotNull(tokenmap shouldnt be null, tokenVariableMaps); | | Q. Since the ExecutionContext has only one method to retrieve variable ExecutionContext.getVariable() which seem to be based on the root token. How can a local variable bound to a token be retrieved from the ExecutionContext? any help most appreciated. many thanks -lp View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243622#4243622 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243622 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: windowState not set on ActionRequest
I think JSR168/286 define that the WindowState change won't be propagated until the subsequent RenderRequest (after your ActionRequest). From JSR286: anonymous wrote : The setWindowState method allows a portlet to change its current window state. The new window state will be effective in the following processEvent and render requests. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243623#4243623 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Messaging 1.4.0 SP3 with JBoss AS 4.2.3
Please give exact version of JBM. also the full stack trace may help better understanding your issue. Thanks! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243624#4243624 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243624 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Calling stopDelivery causes a
Its been a while :) but I finally got a little time to dig into this one a little more, in the end the bit that seems to bite me is the MessageInflowLocalProxy, when requesting the stopDelivery - messages are continuing to pass through the MDB. The flow of the requests to stop finally make it to the MessageInflowProxy which will request a release of the proxy - due to a small stack of debugging I was sure I had a transaction in flight and I get to the release method. |protected void release(Object proxy) throws Throwable |{ | // We are now released | released.set(true); | | if (trace) | log.trace(MessageEndpoint + getProxyString(proxy) + release + Thread.currentThread()); | | // Tidyup any outstanding delivery | if (oldClassLoader != null) | { | try | { | finish(release, proxy, false); | } | catch (Throwable t) | { | log.warn(Error in release , t); | } | } |} | What I don't understand is that the oldClassLoader is null which means that the finish didn't get called - looking at that method that means that the finish doesn't get called and the transaction manager didn't get tidied up. So I continued to dig around to see where the oldClassLoader gets set - it looks like it is done in the before and after, which would imply that the TransactionDemarcationStrategy in the JmsServerSession needs to be TraditionalXATransactionDemarcationStrategy (since that it checked for) in the onMessage. I appear to have an XATransactionDemarcationStrategy in place so before and after aren't called. It looked like in the MessageInflowLocalProxy you look for the oldClassLoader in the delivery method too - if it is null you start a transaction. | try | { | // Check for starting a transaction | if (oldClassLoader == null) | { | boolean isTransacted = messageEndpointFactory.isDeliveryTransacted(methodInfo.getAdvisedMethod()); | startTransaction(delivery, proxy, container, method, args, isTransacted); | } | return container.localInvoke(methodInfo, args); | } | when you try to release how do you perform the check to ensure that the transaction has completed (when the oldClassLoader is null)? All this code is pretty new to me so excuse any things that I got patently wrong :) Any advice or help would be greatly appreciated. Cheers P View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243625#4243625 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243625 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Tutorial for setup of Authentication in JBoss?
Thanks Peter. We may get the wrong direction for LDAP authentication. First, I think our LDAP server is a flat ldap structure and thus I only use LdapLoginModule to test. In your config, you use LdapExtLoginModule. I still try to use different parameter for role checking config in LdapLoginModule. Still ok for authentication but fail on authorization. By the way, Peter, can we write a custom login module? As I search this topic, only find this article http://www.jboss.org/community/wiki/CreatingACustomLoginModule; but this is not a full custom login module, just extend the existing one. Is any document to teach us to write a login module? Thanks for any help. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243626#4243626 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243626 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - mod_proxy: RichFaces/A4J CSS JavaScript not loaded
I have a Facelets/Richfaces/Spring/Hibernate app that runs fine on Tomcat but when I mod_proxy Apache to TC, the webapp name is pre-pended to all the RichFaces and A4J CSS and Javascript. Hence, the RichFaces items are not loaded. I can see the prepended webapp name by viewing the HTML in FF/Firebug. I've seen a few posts similar to this - just wondering if there is a best practice or workaround to get past this issue. http://www.jboss.org/index.html?module=bbop=viewtopict=100386 http://www.jboss.org/index.html?module=bbop=viewtopicp=4100380 Thanks! Oh, more details here: http://www.nabble.com/-us...@httpd--mod_proxy:-CSS---JavaScript-not-loaded-td23270099.html View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243628#4243628 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243628 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Junit failed.
Hi, I have the following problem when I tried to establish a JNDI connectoin from a remote machine to the EJB3 JBOSS server thought JNDI. # ant test Buildfile: build.xml compile-test: [javac] Compiling 4 source files test: [junit] Testsuite: Client [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec [junit] [junit] Null Test: Caused an ERROR [junit] Client (wrong name: com/ip6networks/calling_card_registration/test/Client) [junit] java.lang.NoClassDefFoundError: Client (wrong name: com/ip6networks/calling_card_registration/test/Client) [junit] at java.lang.ClassLoader.defineClass1(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:620) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [junit] at java.lang.Class.forName0(Native Method) [junit] at java.lang.Class.forName(Class.java:247) [junit] [junit] [junit] Test Client FAILED BUILD SUCCESSFUL Total time: 4 seconds Main program: # cat Client.java package com.ip6networks.calling_card_registration.test; import com.ip6networks.calling_card_registration.test.Calculator; import com.ip6networks.calling_card_registration.test.CalculatorRemote; import com.ip6networks.calling_card_registration.test.ServiceLocator; public class Client { public static void main(String[] args) throws Exception { Calculator calculator = getSession(); System.out.println(in Client class); System.out.println(1 + 1 = + calculator.add(1, 1)); System.out.println(1 - 1 = + calculator.subtract(1, 1)); } private static Calculator getSession() throws Exception { Calculator mgr = null; mgr = (Calculator) ServiceLocator.getInstance().getService(Calculator); if (mgr == null) { //throw new SystemErrorException(Unable to connect to service); throw new Exception(Unable to connect to service); } else { return mgr; } } } It complained ServiceLocator. cant be casted to Calculator. Here is the ServiceLocator program: # cat ServiceLocator.java package com.ip6networks.calling_card_registration.test; import javax.naming.Context; import javax.naming.InitialContext; import java.util.*; import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.Log; public class ServiceLocator { private MapString, java.lang.Object cache; private static ServiceLocator ourInstance = new ServiceLocator(); private static final Log logger = LogFactory .getLog(ServiceLocator.class); public static ServiceLocator getInstance() { return ourInstance; } private ServiceLocator() { this.cache = Collections.synchronizedMap( new HashMapString, java.lang.Object()); } public java.lang.Object getService(String serviceName) { String serviceHost = 192.168.1.242; if (this.cache.containsKey(serviceName)) { return this.cache.get(serviceName); } try { java.lang.Object service = this.getContext( serviceHost).lookup( serviceName + Bean/remote); cache.put(serviceName, service); return service; } catch (Exception e) { e.printStackTrace(); logger.error(Unable to bind to service + serviceName + . Hostname: + serviceHost, e); return null; } catch (Throwable e) { e.printStackTrace(); logger.error(Unable to bind to service + serviceName + . Hostname: + serviceHost, e); return null; } } public java.lang.Object getService(String serviceName, String serviceHost) { String key = serviceHost + . + serviceName; if (this.cache.containsKey(key)) { return this.cache.get(key); } else { try { java.lang.Object service = this.getContext( serviceHost).lookup( serviceName + Bean/remote); cache.put(key, service); return service; } catch (Exception e) { logger.error(Unable to bind to service + serviceName + . Hostname: + serviceHost); return null; } } } private Context getContext(String serviceHost) throws javax.naming.NamingException { Properties properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory);
[jboss-user] [JBoss Cache: Core Edition] - Re: How to get cache size programmatically
Thanks for the reply. My application is deployed in tomcat6. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243631#4243631 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Websphere 6.1 and jBPM 4
Can anyone guide me with integrating jBPM 4 in Websphere App Server 6.1. Also, do you think jBPM 4 depends on the EJB 3.0 features to function correctly? I am a newbie in this field and would appreciate your kind support. Thanks Regards Samraat View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243633#4243633 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243633 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Abstract class as input Parameter in WebService
HI, I also have a similar problem with my webservice.. how did u solve the issue.. Thanks and Regards Sandeep View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243634#4243634 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243634 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user