[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: External Directories On JBoss 4.2.x

2008-10-10 Thread ajay662
Yes, worked. Thanks. Couple of user errors on my part. First I was trying to list the contents of the directory... which looks like doesn't work because of the security. Secondly since the default binding (to interfaces) behavior changed with 4.2, my web-server was not bound on the interface on

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: External Directories On JBoss 4.2.x

2008-10-10 Thread ajay662
I am seeing the same issue after upgrading my application to jboss 4.2.3. The external directory configuration was working fine on jboss 4.0.5. In jboss 4.2.3 I see the error: 13:36:32,476 WARN [config] Unable to process deployment descriptor for context '/releases' My configuration in server

[jboss-user] [JBossWS] - Re: Jar file for org.jboss.ws.core.soap.SAAJMetaFactoryImpl.

2008-10-09 Thread ajay662
Voted. BTW, since I am only consuming web-services, following workaround worked for me: Workaround: compile against jaxws RI (version 2.1.3) jars and then copy these RI jars to server/default/lib dir. I haven't done any extensive testing so far, but application seems to be cruising so far. V

[jboss-user] [JBossWS] - Re: consume WS over https no longer works when upgraded to j

2008-10-09 Thread ajay662
For others benefit, in case they are running into same issue: My workaround: Since I am only consuming web-services and not hosting them, i was able to get my application working by compiling against jaxws RI jars (v 2.1.3) and then by copying these RI jars to server/default/lib for runtime. Vi

[jboss-user] [JBossWS] - Re: Jar file for org.jboss.ws.core.soap.SAAJMetaFactoryImpl.

2008-10-09 Thread ajay662
Now I am trying jboss-4.2.2 + metro 3.0.2. Saw the same error. Copied jbossws-client.jar over to server/default/lib dir. Now I get following class not found exception. Is there any brave soul here who has been able to get it working? We need help... | java.lang.RuntimeException: java.lang.N

[jboss-user] [JBossWS] - Re: Jar file for org.jboss.ws.core.soap.SAAJMetaFactoryImpl.

2008-10-09 Thread ajay662
I am seeing the same issue with 1) jboss 4.2.3 + metro 3.0.3 as well as 2) jboss 4.2.2 + metro 3.0.3 And I run into other issues after I copy the jbossws-client.jar into server/default/lib dir. Has anybody been able to successfully use jboss-metro with jboss 4.2.x? What are the exact steps

[jboss-user] [JBossWS] - Re: consume WS over https no longer works when upgraded to j

2008-10-09 Thread ajay662
Hi Richard, Thanks for your reply. The certificate is valid till 2015. Here is the complete relevant server.log. I apologize ... its kind of long. | 2008-10-09 09:26:46,176 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] END: rebuildMetaData | | ServiceM

[jboss-user] [JBossWS] - Re: consume WS over https no longer works when upgraded to j

2008-10-08 Thread ajay662
Actually my TrustManager class do gets called. However the SSL handshake process seems to be quite length(and I don't understand much of the details) and eventually fails with above exception. For WS stack, I am using whatever comes default with jboss 4.2.3. Am using "default" server configurat

[jboss-user] [JBossWS] - consume WS over https no longer works when upgraded to jboss

2008-10-08 Thread ajay662
My web-service client application is running fine in jboss 4.0.5. I am accessing service over "https" and am using my own KeyManager and TrustManager for SSL. However when I upgraded to jboss 4.2.3, the client application stopped working and I get following exception 2008-10-08 13:24:35,057 I

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: why nobody talks openJPA here?

2008-03-27 Thread ajay662
Let me wrap up my findings for the benefit of others. I ended up using Hibernate. With 0.9.7 openjpa, i ran into the error that others have experienced too: org.apache.openjpa.persistence.PersistenceException: Invalid use of | destroyed classloader, UCL destroyed at: With 1.0 openjpa, my app

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: why nobody talks openJPA here?

2008-03-24 Thread ajay662
When I deploy the whole ear, above issue goes away. However since I use MDB in my application, I am running into this issue http://jira.jboss.com/jira/browse/JBAS-5049 Somebody has posted a patch here http://www.techienuggets.com/commentList.jsp?tx=18328&tx=18328&d-49653-p=1 I am now debating

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: why nobody talks openJPA here?

2008-03-24 Thread ajay662
Thanks nitros. I thought I will give it a try anyway to see exactly what the issues are. I added the openJPA jars (all of them) to server/lib. But when I deploy my jar containing the entities and persistence.xml, I see following error: ObjectName: persistence.units:unitName=covApiSession |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - why nobody talks openJPA here?

2008-03-21 Thread ajay662
Hello all, I am trying to port an application from weblogic to jboss AS 4.2.2. My application uses JPA and I was using OpenJPA as the persistence provider in weblogic. I don't see too much discussion here about openJPA and was wondering if anyone has tried using openJPA with jboss successfull

[jboss-user] [EJB 3.0] - Re: sharing state between web modules and ejb modules

2007-09-24 Thread ajay662
Thanks ALR. Couple of follow-up questions: Q1. How do I make 2 web modules share the stub for the SFSB? Q2. How do I access the same instance of SFSB (as used by web modules) from my MDBs? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088188#4088188 Reply

[jboss-user] [EJB 3.0] - Re: sharing state between web modules and ejb modules

2007-09-24 Thread ajay662
Thanks. However I can not use DB. Idea is to ship these 3 modules to our customers, who will develop/package the final j2ee application. So the final j2ee application will have our modules as well as customer developed modules. This final application may or may not have DB and I don't want to m

[jboss-user] [EJB 3.0] - Re: sharing state between web modules and ejb modules

2007-09-24 Thread ajay662
Yes. One web-module (W1) provides interface to client application and hence has knowledge of client sessions. Other web-module (W2) implements web-services and gets events/requests from a different source. W2 needs to modify session data which is inside W1. Also W2 posts JMS messages on a JMS t

[jboss-user] [EJB 3.0] - sharing state between web modules and ejb modules

2007-09-21 Thread ajay662
My application has 2 web modules and 1 ejb module. I need to share some state information (non persistent) between these 2 web modules and the ejb module. Is there any j2ee way to do it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087298#4087298 Reply t

[jboss-user] [EJB 3.0] - Re: handling ejb3 injection failure

2007-09-06 Thread ajay662
Thanks for your suggestions ALR. I have tried @IgnoreDependency in my other jboss-specific app and it does work fine. In this case however, I am actually looking for a portable solution and not something thats specific to a vendor. View the original post : http://www.jboss.com/index.html?m

[jboss-user] [EJB 3.0] - handling ejb3 injection failure

2007-09-05 Thread ajay662
In my servlet I want to inject an EJB, only if its available. @EJB | MyBeanClass myBean; My requirement is that 'myBean' gets initialized if corresponding EJB is available in the application, otherwise it stays NULL. Is there a way to achieve this? Is there a way to catch injection exceptions

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - portable j2ee application - how to handle persistence part

2007-07-31 Thread ajay662
I need to write a small j2ee application that I can deploy on jboss, weblogic and websphere. This application needs to run alongside customer's any other application already running on the application server. My application will have a need to persist some simple data. I am looking for suggest

[jboss-user] [Management, JMX/JBoss] - runtime adding a new MBean

2007-05-17 Thread ajay662
Is it possible to add a new MBean at runtime? My application is managing external devices running different software releases. When a new device gets added to my application and its of a release for which I don't already have an MBean, I want to add a new one dynamically. This MBean would then

[jboss-user] [EJB 3.0] - Re: recurring timer and app re-start issue

2007-05-04 Thread ajay662
Nobody else is experiencing this?? This is a major problem. I have a bunch of tasks scheduled to do nightly maintenance on my devices at 1pm every night. So I am using a recurring timer to schedule these. Everything works as expected if I keep my application running. But if have to re-start my

[jboss-user] [EJB 3.0] - Re: design pattern for canceling an EJB3 timer

2007-05-04 Thread ajay662
Thanks. As I iterate through the timers and find the one that I need to cancel, is there a way to know if a @Timeout callback is in progress for that Timer object? I don't see anything on the Timer class for this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[jboss-user] [EJB 3.0] - Re: Mixed EJB 2.1 and 3.0 in ejb-jar.xml

2007-05-04 Thread ajay662
You can mix ejb2.1 and ejb3 in your application. But they need to be deployed via separate jars. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043253#4043253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043253 _

[jboss-user] [EJB 3.0] - Re: design pattern for canceling an EJB3 timer

2007-05-04 Thread ajay662
Thanks. Does it need to be done from the same MDB (class) which created the timer? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043166#4043166 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043166 ___

[jboss-user] [EJB 3.0] - design pattern for canceling an EJB3 timer

2007-05-03 Thread ajay662
I need some advice on how to cancel an active EJB3 timer. Currently below is the flow of things in my application 1. Client schedules a task via SLSB. | 2. SLSB validates task parameters and queues a JMS msg, passing it the Task Object. | 3. Corresponding MDB gets the JMS message and dependi

[jboss-user] [EJB 3.0] - Re: recurring timer and app re-start issue

2007-04-20 Thread ajay662
I created the timer on a freshly installed jboss instance (so no prior timers) using the code below: timer = messageDrivenCtx.getTimerService().createTimer( | job.getFirstSchedTime(), job.getRecurringInterval(), job); Here recurring-interval is 1 hour (in milliseconds). After I go

[jboss-user] [EJB 3.0] - Re: recurring timer and app re-start issue

2007-04-19 Thread ajay662
Exactly. So the persisted state should be that initial timer has been delivered. And hence when I re-start jboss initial timer should not be re-delivered. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038885#4038885 Reply to the post : http://www.jboss.com

[jboss-user] [EJB 3.0] - recurring timer and app re-start issue

2007-04-18 Thread ajay662
Using ej3 timer service, I am creating a recurring hourly timer. Its working fine if I leave my application running, i.e. I get the initial timer callback as specified and then hourly from then on. However, after getting my initial timer callback, if I re-deploy my app or re-start jboss before

[jboss-user] [EJB 3.0] - TimerService - recurring timer question

2007-04-13 Thread ajay662
What is the expected behavior when the callback function takes longer to process than the recurring timer interval, i.e. say the timer callback function takes 15 secs to process each callback while the timer is configured for recurring every 10 secs. I am seeing that in this case JBOSS slows do

[jboss-user] [EJB 3.0] - MDB abstract base class and EJB3 annotations

2007-04-04 Thread ajay662
I have following scenario where my MDB class extends an abstract class which implements the MessageListener interface. public abstract class MDBBase implements MessageListener { |public void onMessage(Message message) { | | processJob(some-params) |} |p

[jboss-user] [EJB 3.0] - Re: MBean and cyclic dependency between SLSBs

2007-01-29 Thread ajay662
One possibility that struke me is to inject dependency for SLSB B as well inside MBean M. Would be interested in hearing other possible solutions... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007820#4007820 Reply to the post : http://www.jboss.com/index

[jboss-user] [EJB 3.0] - MBean and cyclic dependency between SLSBs

2007-01-29 Thread ajay662
I have an Mbean M. The start() method of this MBean calls a SLSB A. SLSB A has a cyclic dependency with SLSB B. So inside A I put @IgnoreDepdency for B. But now when my application gets deployed I get the NamingException that B not bound. Any idea how to work around this problem? Here is th

[jboss-user] [EJB 3.0] - Re: how to inject dependency on an mbean

2007-01-26 Thread ajay662
Ok. I found the answer in ejb3 trailblazer. The trail on JMX Service Objects talk about how to annotate a service that depends on other services using @Depends tag. I guess the same holds true for EJBs as well, i.e. if an EJB depends on a service, use @Depends tag. I used following to make it w

[jboss-user] [EJB 3.0] - how to inject dependency on an mbean

2007-01-26 Thread ajay662
I have an mbean deployed in a ejb2.1 jar file. Here is the deployment descriptor. | I am writing a ejb3 MDB which depends on above mbean. How do I inject dependency on the mbean. I have tried following inside MDB, but it does not work @Resource (mappedName="myapp:service=ClusterStatus") |

[jboss-user] [JBoss AOP] - Can ejb3 style interceptors be used with ejb 2.1 beans

2007-01-17 Thread ajay662
Trying to post in the right forum. Original post http://www.jboss.com/index.html?module=bb&op=viewtopic&t=99357 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002963#4002963 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [EJB 3.0] - sharing ejb3 style interceptors with ejb2.1 beans

2007-01-17 Thread ajay662
My application is a mix of ejb2.1 and ejb3 beans (actually mostly ejb2.1... have just started doing new development using ejb3). I am thinking of using ejb3 style interceptors to do audit logging of my application. My interceptor class public class AuditLoggger { | | @AroundInvok

[jboss-user] [EJB 3.0] - Re: J2EE 1.4 + EJB 3: how to mix

2007-01-11 Thread ajay662
Beautiful. Thanks. Separate jars (inside same ear) fixed the deployment issues. Now on to the next challenge of cross-referencing each other. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000522#4000522 Reply to the post : http://www.jboss.com/index.html?mo

[jboss-user] [EJB 3.0] - Re: J2EE 1.4 + EJB 3: how to mix

2007-01-11 Thread ajay662
We are in the same situation. Have been using EJB 2.1 SLSB and MDB for a while on jboss 4.0.5. Now we want to use ejb3 for new development. Are there any guidelines on how to deploy a mix of two. Should we use "ejb3" configuration from jboss 4.0.5 installation if we want to mix the two? Do ejb

[jboss-user] [EJB/JBoss] - xdoclet @jboss.depends not working if version 4.0

2007-01-10 Thread ajay662
Xdoclet attribute @jboss.depends does not work for me if version is 4.0. Looking at the jboss_xml.xdt (in xdoclet-jboss-module-1.2.3.jar) it looks like this attribute is only supported for version 3.2. What equivalent attribute are you guys using in version 4.0? I am using Xdoclet rel 1.2.3 and

[jboss-user] [JBossWS] - Re: jbossws 2.0.0.CR2 - binary version

2007-01-08 Thread ajay662
David, My jboss instance is only the "client" for web services which are running somewhere else. So I am the "consumer" inside jboss. If your needs are the same, you can just follow the Glassfish documentation. I would start from https://jax-ws.dev.java.net/ and just implement the client side

[jboss-user] [JBossWS] - Re: jbossws 2.0.0.CR2 - binary version

2007-01-08 Thread ajay662
Thanks for clarification. My requirements were to implement web services client from EJBs. So I was able to use JAX-WS 2.0 (Glassfish implementation) without problems. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999026#3999026 Reply to the post : http:/

[jboss-user] [Installation, Configuration & Deployment] - Re: JBoss JAXB class loading problem

2006-12-22 Thread ajay662
DerJohannes, were you able to get it working?If so, can you post your solution here. I am in a silimiar situation where I need to use JAXB 2.0 with jboss 4.0.5, but in my case I am getting a classCastException 15:59:10,469 ERROR [STDERR] java.lang.ClassCastException: javax.xml.bind.JAXBElemen

[jboss-user] [JBossWS] - Re: jbossws 2.0.0.CR2 - binary version

2006-12-21 Thread ajay662
Well the sources don't compile for me. I am following instructions from here: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQBuildAndInstall I have tried both against jboss 4.0.x as well as jboss 5.0.0.beta2. Jboss itself compiles and run ok. But Jbossws doesn't compile. I have used following

[jboss-user] [JBossWS] - jbossws 2.0.0.CR2 - binary version

2006-12-21 Thread ajay662
Since I am stuck with following issue http://www.jboss.com/index.html?module=bb&op=viewtopic&t=97721 I want to try version 2.0.0 CR2 on jboss-4.0.5 Is the binary version available somewhere for jbossws-2.0.0.CR2 or do I need to build it from the source? Thanks. View the original post : ht

[jboss-user] [JBossWS] - Re: wstools ignoring ??

2006-12-20 Thread ajay662
Forgot to mention. My development environment is jboss 4.0.5 jbossws-1.0.4.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995441#3995441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995441

[jboss-user] [JBossWS] - wstools ignoring ??

2006-12-20 Thread ajay662
In my wsdl there is a choice element somewhere. I am using wstools to generate the java classes from my wsdl, but wstools seems to be ignoring the "xsd:choice" element. Below are snippets from my wsdl and corresponding generated java classes: WSDL |

[jboss-user] [JBossWS] - Re: HELP with error

2006-12-01 Thread ajay662
Now that I figured out that I was using the wrong endpoint address, my next question [to the jboss team] is why is this exception logged at ERROR level by the "org.jboss.ws.jaxrpc.CallImpl" class? My endpoints are dynamic and I know them only at run time and its perfectly normal for some of the

[jboss-user] [JBossWS] - Re: HELP with error

2006-12-01 Thread ajay662
My mistake... was using the wrong endpoint address. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990532#3990532 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990532 ___ jbo

[jboss-user] [JBossWS] - HELP with error "Can not connect http client invoker"

2006-12-01 Thread ajay662
My development environment is jboss 4.0.5.GA jbossws-1.0.4.GA Trying to consume remote web-services from an MDB, using "service-ref" element in the deployment descriptor as mentioned in the JBossWS User guide. While invoking a web-service method, I get the following exception. I have looked

[jboss-user] [JBossWS] - Re: setting timeouts in clients

2006-12-01 Thread ajay662
Please ignore my last comment. The new class is StubExt documented in Chapter 5 of user guide. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990510#3990510 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990510 ___

[jboss-user] [JBossWS] - Re: setting timeouts in clients

2006-12-01 Thread ajay662
Which jar do I need for class "org.jboss.webservice.client.Stub" I am using jbossws-1.0.4.GA and I don't see it in jbossws-client.jar for jdk1.5 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990506#3990506 Reply to the post : http://www.jboss.com/index.h

[jboss-user] [JBossWS] - problem in using ServiceFactoryImpl

2006-11-30 Thread ajay662
I am trying to consume a remote web service from my EJB running inside JBoss. I want to use ServiceFactoryImp class and am packging "wsdl" and "jaxrpc-mapping.xml" files inside my EJB JAR file as | META-INF/wsdl/ | META-INF/jaxrpc-mapping.xml How do I create the URLs for these files

[jboss-user] [JBossWS] - Consuming from EJB - how to specify port-component-ref using

2006-11-30 Thread ajay662
I am on jboss 4.0.5, trying to implement ws client in one of my EJB, using jbossws-1.0.4.GA. I use xdoclet to generate my ejb-jar.xml. "Consuming Web Services" section of the JBossWS User Guide talks about adding a "service-ref" element to the EJB's deployment decriptor. But XDoclet doesn't see

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Error during close() of a topic subscriber

2006-11-28 Thread ajay662
I am on release 4.0.5. Any help would be much appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989448#3989448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989448

[jboss-user] [Messaging, JMS & JBossMQ] - Error during close() of a topic subscriber

2006-11-27 Thread ajay662
I have an MBean which creates a subscriber in its startService() method and closes it in its stopService() method. Everything is working fine, except when I undeploy my application and stopService() gets called, I get the JMSException "The subscription had not been previously registered". Its no

[jboss-user] [Management, JMX/JBoss] - can SchedulableMBeanMethod throw exception?

2006-11-15 Thread ajay662
Can the SchedulableMBeanMethod method throw exception? If so, what action does the MBeanServer take upon such an exception? Will MBean continue to get subsequent schedule triggers? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986270#3986270 Reply to the po