[jboss-user] [jBPM Users] - Re: jBPM4 and JBoss IDM

2009-09-24 Thread jeff.yuchang
Ah... I forgot to escape the xml tag. Thanks Ronald. ;-)

Here is the complete steps.

1. Download the JBoss Identity IDM 1.0.0.Beta1 from here 
http://repository.jboss.com/maven2/org/jboss/identity/idm/jbossidm/1.0.0.Beta1/jbossidm-1.0.0.Beta1.zip
 . (Sorry for that didn't put this distribution into the download page yet, 
will do it in the future).

2. Extract the zip ball, update the build.properties file, to config your 
database, jboss.home etc.

3. Go to the jboss folder, run: ant install.jbossidm.into.jboss to install the 
jbossidm.

4. Go to the JBoss AS (which jbpm 4.1 was deployed to)/server/$config (like 
default)/deploy/jbpm/jbpm-service.sar/jbpm.cfg.xml

Replace the 
with

5. Start the AS server, you should be ready to go. 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256879#4256879

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: jBPM4 and JBoss IDM

2009-09-24 Thread jeff.yuchang
Hi,

below is the step to use jboss idm in jBPM 4.1 manually.

1. Download the JBoss Identity IDM 1.0.0.Beta1 from here 
http://repository.jboss.com/maven2/org/jboss/identity/idm/jbossidm/1.0.0.Beta1/jbossidm-1.0.0.Beta1.zip.
 (Sorry for that didn't put this distribution into the download page yet, will 
do it in the future).

2. Extract the zip ball, update the build.properties file, to config your 
database, jboss.home etc.

3. Go to the jboss  folder, run: ant install.jbossidm.into.jboss to install the 
jbossidm.

4. Go to the JBoss AS (which jbpm 4.1 was deployed to)/server/$config (like 
default)/deploy/jbpm/jbpm-service.sar/jbpm.cfg.xml

Replace the 
with 

5. Start the AS server, you should be ready to go. 

Sorry for the inconvenience, I will work on this task later then.. Please let 
you know if you have any other issues.

*NB, the jBPM console is using the jbpm built-in identity, if you want to 
change that, you need to add another application-policy in the 
jbpm-service.sar/META-INF/jboss-service.xml

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256846#4256846

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256846
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: jBPM4 and JBoss IDM

2009-09-22 Thread jeff.yuchang
I just checked the jbpm 4.1, the installation has been taken out in this 
release. The integration work is done. I kept it as 'work in progress' as there 
was an issue in the IDM, it doesnt provide the user defined groupId. Tom like 
to IDM supports it. 

In the current code base, I am using the idm gorupId -> jBPM groupId mapping as 
a interim solution. The functionality should work, but I haven't tested against 
jbpm 4.1. It works against jbpm 4.0 AFAIK.

Also, the integration work was only tested against JBoss AS 5.x.

I will provide the installation step after I verified it against jbpm 4.1. 

-Jeff

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256521#4256521

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256521
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user



[jboss-user] [JBoss jBPM] - Re: jBPM4 process definition deployment.

2009-08-13 Thread jeff.yuchang
"JimDwyer" wrote : How do I deploy a process definition in jBPM4.  I don't see 
a place to do it on the GWT console.  The eclipse plugin doesn't have any tabs 
for deployment like the plugin for jBPM3.  Obviously I can modify the ant 
install scripts but that seems like a last resort.  How do I do it?
  | 
  | Jim

For the JBoss AS container, there is another approach you can do to the deploy. 
it is that build the bar file, and then copy it directly into the JBoss 
server's deploy folder. and then you are ready to go. you can see this 
(http://jeff.familyyu.net/2009/07/getting-started-with-jbpm-40-part-iii.html) 
for detail.

As Ronald said, given the limited time and resource, it takes time for us to do 
all the features.. but we definitely like your contributions to our project, 
actually, this is the big benefit of open source, isn't it?

-Jeff

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249552#4249552

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249552
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Use of external user database or directory

2009-08-11 Thread jeff.yuchang
"kukeltje" wrote : "jeff.yuchang" wrote : 
  |   | There was a dedicated section in the dev guide for this. Please refer 
to that for detail.
  |   | -Jeff
  | 
  | Was? did you remove it? Hard to refer then ;-P

LOL..:), just checked, it is still there, so plz do "s/was/is". btw, the link 
is 
here:http://docs.jboss.com/jbpm/v4.0/devguide/html_single/#customizingtheidentitycomponent

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249036#4249036

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249036
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Use of external user database or directory

2009-08-11 Thread jeff.yuchang
Yes, this is a very common use case.

Just write a class to implement the IdentitySession SPI, and then do a 
configuration in the jbpm.cfg.xml, You are ready to go. 
There was a dedicated section in the dev guide for this. Please refer to that 
for detail.

-Jeff

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249029#4249029

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249029
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Use of external user database or directory

2009-08-11 Thread jeff.yuchang
Yes, this is a very common use case.

Just write a class to implement the IdentitySession class, and then do a 
configuration in the jbpm.cfg.xml, and then you are ready to go. I remembered 
there was a dedicated section in the dev guide for this. Please refer to that 
for detail.

-Jeff

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249028#4249028

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: 3 blog entries about jBPM 4.0

2009-07-21 Thread jeff.yuchang
Yeah, I used the custom domain for my blog today, but it should give you a 
redirect page if you are using the old url, which I posted on here.

Or use the updated one as following.
http://jeff.familyyu.net/2009/07/getting-started-with-jbpm-40.html
http://jeff.familyyu.net/2009/07/getting-started-with-jbpm-40-part-ii.html
http://jeff.familyyu.net/2009/07/getting-started-with-jbpm-40-part-iii.html
http://jeff.familyyu.net/2009/07/getting-started-with-jbpm-40-part-iv.html

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244943#4244943

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244943
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: 3 blog entries about jBPM 4.0

2009-07-21 Thread jeff.yuchang
do you mean the blog links, or the sample project's tar file url?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244829#4244829

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244829
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: 3 blog entries about jBPM 4.0

2009-07-20 Thread jeff.yuchang
The last part of this series is at: 
http://jeffyuchang.blogspot.com/2009/07/getting-started-with-jbpm-40-part-iv.html

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244501#4244501

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244501
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: 3 blog entries about jBPM 4.0

2009-07-20 Thread jeff.yuchang
"kukeltje" wrote : Cool... looking forward to the 'intermediate complexity' 
usage ;-)
  | 
  | btw, no video was shot... sorry.

Thanks, will try to do that in the future oh, then we lost a good jbpm4 
video resource then. ;-)

Thanks
Jeff


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244575#4244575

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244575
___
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

2009-07-14 Thread jeff.yuchang
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=bb&op=viewtopic&p=4243580#4243580

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243580
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - 3 blog entries about jBPM 4.0

2009-07-12 Thread jeff.yuchang
Hi all,

Played with jBPM 4.0 on the weekend, and also wrote three blog entries for it.
here they are.
http://jeffyuchang.blogspot.com/2009/07/getting-started-with-jbpm-40.html
http://jeffyuchang.blogspot.com/2009/07/getting-started-with-jbpm-40-part-ii.html
http://jeffyuchang.blogspot.com/2009/07/getting-started-with-jbpm-40-part-iii.html

Hopefully it will help you get it started. Any comments are welcome. ;-)

Thanks
Jeff

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243106#4243106

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243106
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
"alesj" wrote : "jeff.yuchang" wrote : 
  |   | Is the jar package the only way to get this kind of resource?? I mean, 
do we have other approaches, or can we use a custom package suffix?
  | It's all by the spec. ;-)
  | 
  | What you had before was actually 3 deployments 
  | as directories that don't have a '.' in the name
  | are not treated as top level deployments.
  | 
  | Hence when you tried to lookup a resource from one of them,
  | probably the other one wasn't "ready" yet.
  | 
  | If you have a '.' in your "grouping" directory,
  | it will be treated as a top level deployment,
  | having those 2 files as sub-deployments and a metadata file.
  | This should of course see its resources at any given post-cl-creation time.

Thanks for this info, very to the point. ;-)
I've tested it change the idm name into 'idm.config', it works like a charm. ;-)

Thanks Ales. ;-)

-Jeff

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232456#4232456

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232456
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
"alesj" wrote : "jeff.yuchang" wrote : Also, in this test, I ran the 
DU::getClasspath, I showed the idm.jar, but couldn't find the idm.cfg.xml file, 
I was putting it in the idm.jar/META-INF/.
  |   | 
  | Only metadata files should be in META-INF.
  | Configuration should be in the root.
  | 
  | Or you need to add META-INF infront if you wanna look for that resource via 
CL.

My bad.. ;-(.. OK, using the DU::getClassloader can get this resource.. Thanks 
for your help. 

Is the jar package the only way to get this kind of resource?? I mean, do we 
have other approaches, or can we use a custom package suffix?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232446#4232446

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232446
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
"alesj" wrote : "jeff.yuchang" wrote : 
  |   | 
  |   |   | 14:34:36,635 ERROR [AbstractKernelController] Error installing to 
Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ 
state=PreReal mode=Manual requiredState=Real
  |   |   | org.jboss.deployers.spi.DeploymentException: 
java.lang.IllegalArgumentException: Resource idm/jboss.idm.cfg.xml does not 
exist
  |   |   | 
  |   | 
  | Why is there a idm/ at the begining?

I was doing another test, trying to add the idm prefix.. After I remove the 
idm, it was still the same, I just copied the another stacktree, apart from the 
file name, it is the same.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232444#4232444

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232444
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
Also, in this test, I ran the DU::getClasspath, I showed the idm.jar, but 
couldn't find the idm.cfg.xml file, I was putting it in the idm.jar/META-INF/.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232442#4232442

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232442
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
Just finished the test, same result, the whole stack tree is as following:


  | 17:34:07,272 ERROR [AbstractKernelController] Error installing to Real: 
name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ 
state=PreReal mode=Manual requiredState=Real
  | org.jboss.deployers.spi.DeploymentException: 
java.lang.IllegalArgumentException: no config resource
  | at 
org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:123)
  | at 
org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:42)
  | at 
org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
  | at 
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
  | at 
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
  | at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
  | at 
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
  | at org.jboss.Main.boot(Main.java:209)
  | at org.jboss.Main$1.run(Main.java:547)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.IllegalArgumentException: no config resource
  | at 
org.jboss.identity.idm.impl.configuration.jaxb2.JAXB2IdentityConfiguration.createConfigurationMetaData(JAXB2IdentityConfiguration.java:121)
  | at 
org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:75)
  | ... 23 more
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232440#4232440

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232440
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
"alesj" wrote : "jeff.yuchang" wrote : pack the stuff into .jar suffix approach 
doesn't work, the same resource was not found exception.
  |   | 
  | If you use this approach, then you have to use DU::getClassLoader,
  | when trying to load resources.
  | 
  | 

I was using the DU::getResourceClassLoader && getResourceLoader do the test, it 
didn't find it, I will try to use the DU::getClassLoader do the test, whats the 
difference between these?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232434#4232434

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232434
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
Thanks, below it is the exception:


  | 14:34:36,635 ERROR [AbstractKernelController] Error installing to Real: 
name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ 
state=PreReal mode=Manual requiredState=Real
  | org.jboss.deployers.spi.DeploymentException: 
java.lang.IllegalArgumentException: Resource idm/jboss.idm.cfg.xml does not 
exist
  | at 
org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:119)
  | at 
org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:41)
  | at 
org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
  | at 
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
  | at 
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
  | at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
  | at 
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
  | at org.jboss.Main.boot(Main.java:209)
  | at org.jboss.Main$1.run(Main.java:547)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.IllegalArgumentException: Resource 
idm/jboss.idm.cfg.xml does not exist
  | at 
org.jboss.identity.idm.impl.configuration.jaxb2.JAXB2IdentityConfiguration.createConfigurationMetaData(JAXB2IdentityConfiguration.java:112)
  | at 
org.jboss.identity.idm.integration.jboss5.IDMDeployer.deploy(IDMDeployer.java:71)
  | ... 23 more
  | 
  | 



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232432#4232432

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232432
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
pack the stuff into .jar suffix approach doesn't work, the same resource was 
not found exception.

By putting the default config files in the deployers/idm doesn't work either. 
Nothing happened this way, seems it can't listen the -jboss-idm.xml suffix file 
in the deployer folder.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232405#4232405

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232405
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-20 Thread jeff.yuchang
No luck with the DeploymentUnit's cl either.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232374#4232374

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232374
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - can't read resource from the classpath??

2009-05-20 Thread jeff.yuchang
Hi all,

I've created a deployer for jboss identity, which is listening on the 
-jboss-idm.xml file.

It has two deployer classes, one is the deployer that IDMVFSParsingDeployer, 
which extends AbstractVFSParsingDeployer, the other is IDMSimpleVFSRealDeployer 
that extends AbstractSimpleVFSRealDeployer.

The work that deployer need to be done is simple.

1. IDMVFSParsingDeployer just need to listening on the -jboss-idm.xml, and then 
turn this xml file into javabean object(Metadata).

2. IDMSimpleVFSRealDeployer will get the config file from the javabean 
object(metadata), and then use the jboss identity API to start its service.

So in the jboss5.0.1.GA/server/default/deployer, it will have a idm-deployer.
in its deploy folder, it has idm folder that only contains three files.


  | default-jboss-idm.xml
  | jboss.idm.cfg.xml
  | jboss.idm.hibernate.cfg.xml
  | 

In the IDMVFSParsingDeployer, I am using the vsfile.openStream to read the 
default-jboss-idm.xml, it works great.. 

the default-jboss-idm.xml is following

  | 
  | http://www.w3.org/2001/XMLSchema-instance";
  | 
xsi:schemaLocation="urn:jboss:identity:idm:deployer:v1_0_alpha 
identity-deployer.xsd">
  | java:/identitySessionFactory
  | jboss.idm.cfg.xml
  | 
  | 
  | true
  | 
  | 
  | 

so I can read the idmConfigFile property from here, but the question is, now I 
invoke the 


  | JAXB2IdentityConfiguration.createConfigurationMetaData("jboss.idm.cfg.xml")

It will tell me it can't find the jboss.idm.cfg.xml resource.

the code for the JAXB2IdentityConfiguration.createConfigurationMetaData is:


  |   ClassLoader classLoader = SecurityActions.getContextClassLoader();
  |   InputStream inputStream = 
classLoader.getResourceAsStream(configResource);
  |   if (inputStream == null)
  |   {
  |  throw new IllegalArgumentException("Resource "+configResource+" 
does not exist");
  |   }
  |   return createConfigurationMetaData(inputStream);
  | 

So I am wondering whether because the lib was in the deployer/idm-deployer 
folder, and then can't access the resources in the deploy/idm/ directory?

Or I did something wrong in other places?

Thoughts?


Thanks
Jeff

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232188#4232188

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232188
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: java.lang.InterruptedException in NewMsgsWorker

2008-12-10 Thread jeff.yuchang
Thanks for your reply. 

Well, the case is that in some cases, we didn't see this warning, while some of 
them are. So I am wondering if there are any potential issues. 

Just like I described in the https://jira.jboss.org/jira/browse/SOA-708, 

==
Got this error reproduced against SOA-P 4.3.0.GA. Both the standalone and 
embedded version.

Steps to reproduce the error:

1. start the server, bin/run.sh (for embedded version, I ran bin/run.sh -c 
default)
2. Open another window, go to the samples/quickstarts/bpm_orchestration2
 ant deploy
 ant deployProcess
 ant startProcess
3. Press 'Ctrl + C' in the server window.

But the interesting thing is that this error didn't happen on 
jbossesb-server-4.4.GA 
=


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195549#4195549

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195549
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - java.lang.InterruptedException in NewMsgsWorker

2008-12-10 Thread jeff.yuchang
Hi All,

While working on this issue (https://jira.jboss.org/jira/browse/SOA-708), I got 
the following exceptions when I press 'Ctrl + C' to shutdown the AS.


21:28:52,820 INFO [HypersonicDatabase] Database standalone closed clean
21:28:52,919 WARN [NewMsgsWorker] Interrupted waiting for new msg check
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at 
EDU.oswego.cs.dl.util.concurrent.Semaphore.acquire(Semaphore.java:108)
at 
EDU.oswego.cs.dl.util.concurrent.SemaphoreControlledChannel.take(SemaphoreControlledChannel.java:131)
at 
org.jboss.resource.adapter.mail.inflow.NewMsgsWorker.run(NewMsgsWorker.java:75)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at 
org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595) 


Detailed information from dump thread as following:

===
"WorkManager(2)-1" daemon prio=1 tid=0x5bee9360 nid=0x4d88 in Object.wait() 
[0x5bc73000..0x5bc73db0]
at java.lang.Object.wait(Native Method)
- waiting on <0x85628290> (a EDU.oswego.cs.dl.util.concurrent.Semaphore)
at java.lang.Object.wait(Object.java:474)
at 
EDU.oswego.cs.dl.util.concurrent.Semaphore.acquire(Semaphore.java:108)
- locked <0x85628290> (a EDU.oswego.cs.dl.util.concurrent.Semaphore)
at 
EDU.oswego.cs.dl.util.concurrent.SemaphoreControlledChannel.take(SemaphoreControlledChannel.java:131)
at 
org.jboss.resource.adapter.mail.inflow.NewMsgsWorker.run(NewMsgsWorker.java:75)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at 
org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595)
===

Can someone please shed me some light on this? What cause would it be?

Thanks
Jeff

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195519#4195519

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195519
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Classloader question

2007-10-25 Thread jeff.yuchang
any suggestions here... What am I doing wrong here..

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098750#4098750

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098750
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Classloader questions

2007-10-21 Thread jeff.yuchang
Hi, 

Firstly, I am sorry I put a link here to ask the question again, but I am not 
sure which section should be the classloader issue belonged to.

My classloader question is at 
:http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121786

Any comments are appreciated!

Best Regards
Jeff[/url]

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097263#4097263

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097263
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Classloader question

2007-10-21 Thread jeff.yuchang
Hi, I've read the JBoss classloader from this wiki 
http://www.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases.

And I tried to write a simple code to see if it worked as it described. 

Firstly, I've wrote a very simple class, called Util. the code is:


  |  package com.company.util;
  | 
  | public class Util {
  | 
  | public String getResponse() {
  | return "This response is from Application Server's library such 
as JBoss" ;
  | }
  | 
  | public String getRequest() {
  | return "doNothing";
  | }
  | 
  | }
  | 

and package this class as a JAR, called util.jar.

I've written another class, called Util.


  |  package com.company.util;
  | 
  | public class Util {
  | 
  | public String getResponse() {
  | return "This response is from web app's library" ;
  | }
  | 
  | }
  | 

and I package this class as util-webapp.jar

3).
I wrote a simple class, which call the Util class, as following :

  | Util util = new Util();
  | System.out.println("Util response is: [" + util.getResponse() + 
"]");
  | 

Belows are some scenarios that I deployed.

1.
1) put the util.jar in the JBoss_HOME/lib
2) put the util-webapp.jar in my war, and I deployed war in the 
$JBoss_home/server/default/deploy

Result: I've found that the application uses the war's jar, which is 
util-webapp.jar.

2.
1) put the util.jar in the JBoss_home/lib/endorsed
2) put the util-webapp.jar in my war, and I deployed war in the 
$JBoss_home/server/default/deploy

Result: It uses the util.jar in the endorsed folder.

3) 
1) put the util.jar in the JBoss_HOME/lib
2) put the util-webapp.jar in my war.
3) I package the war in an ear, and then uses the isolated classloader, and  
"java2ParentDelegation=false", 

Result, it still uses the util-webapp.jar

I dont know what I am doing wrong here, but it seems it doesn't work as the 
JBoss configuration wiki said, can someone shed some light on this.

Thanks in advance
Jeff

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097261#4097261

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097261
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Hang on in the isolated ClassLoader.

2007-10-19 Thread jeff.yuchang
Oh, I have to say I tested it against JBoss4.0.5 and JBoss4.2.1, both have the 
same problem.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096889#4096889

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096889
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: RA deployment in JBoss

2007-10-19 Thread jeff.yuchang
Just found this forum doesn't allow author to update the thread. :(

for convenience, click 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096879#4096879 to get 
the issue that I am talking about.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096885#4096885

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096885
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: RA deployment in JBoss

2007-10-19 Thread jeff.yuchang
Resolved this error by putting the ejb in the ear. I forgot to put the ejb jar 
in the ear, but the RAR has need to access the ejb jar, so the 
"ClassCastException" occurs.

However, now I am facing another problem, it also refers to classloader, I 
don't know which part of this forum should I post to regard to the classloader 
issue, I post it here 
( http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096879#4096879 )

Can someone, who is familiar with the classloader, give me a hint.

Regards
Jeff



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096880#4096880

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096880
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Hang on in the isolated ClassLoader.

2007-10-19 Thread jeff.yuchang
Hi, 

I've deployed an EAR that contains a EJB jar and RAR.

The RAR is the CXF based RA, In the RA, I am establishing a web service to 
connect the EJB.

I am setting the jboss-app.xml, "java2ParentDelegation=false", then it will get 
hang on when I start the web service.  I set the Log to the Fine, and the log 
is shown below:

My jboss-app.xml:

  | 
  | 
  | 
  | apache.cxf:loader=cxf.ear
  | 
  | java2ParentDelegation=false
  | 
  | 
  | 
  | cxf-ds.xml
  | 
  | 
  | 
  | 

application.xml


  | 
  | 
  | 
  | cxf-jca
  | 
  | greeterejb.jar
  | 
  | 
  | cxf.rar
  | 
  | 
  | 
  | 

cxf-ds.xml


  | 
  | 
  | 
  |   
  | CXFConnector
  | cxf.ear#cxf.rar
  | 
org.apache.cxf.connector.CXFConnectionFactory
  |   
  | 
  | 
  | 


Can someone shed some light on this error, I am stucked with it right now,
since it doesn't throw any exceptions... got hang on here...

And if I set the "java2ParentDelegation=true", it works fine, but I need to use 
the "java2ParentDelegation=false", since CXF is using some jars which are 
conflict with some jars that JBoss shipped.

Any comments are greatly appreciated!

---
FINE: Checking system property javax.xml.bind.JAXBContext
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
FINE:   not found
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
FINE: Checking META-INF/services
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
FINE: Reading 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp7396cxf.ear-contents/cxf.rar-
contents/jaxb-impl-2.1.4.jar!/META-INF/services/javax.xml.bind.JAXBContext
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder newInstance
FINE: Trying to load com.sun.xml.bind.v2.ContextFactory
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder newInstance
FINE: loaded com.sun.xml.bind.v2.ContextFactory from 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/
deploy/tmp7396cxf.ear-contents/cxf.rar-contents/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/ContextFact
ory.class
Oct 19, 2007 5:13:24 PM com.sun.xml.bind.v2.ContextFactory createContext
FINE: Property com.sun.xml.bind.XmlAccessorFactoryis not active.  Using JAXB's 
implementation
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, [EMAIL PROTECTED], cl=org.j
[EMAIL PROTECTED] url=null ,addedOrder=0}
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, [EMAIL PROTECTED], cl=org.j
[EMAIL PROTECTED] url=null ,addedOrder=0}
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, [EMAIL PROTECTED], cl=org.j
[EMAIL PROTECTED] url=null ,addedOrder=0}
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, [EMAIL PROTECTED], cl=org.j
[EMAIL PROTECTED] url=null ,addedOrder=0}
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, [EMAIL PROTECTED], cl=org.j
[EMAIL PROTECTED] url=null ,addedOrder=0}



Thanks
Jeff

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096879#4096879

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem deploying EAR having webservices on JBoss 4.2.1

2007-10-19 Thread jeff.yuchang
Hi, the error seems to me that CXF's jaxb jar is conflict with jaxb jar that 
JBoss shipped.

Are you setting the isolated classloader and set the 
java2ParentDelegation=false in the jboss-app.xml.

Give that a shot and let me know if it works.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096835#4096835

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096835
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: RA deployment in JBoss

2007-10-17 Thread jeff.yuchang
Back to the problem.

As I said before, the error that I had firstly is due to the older version 
(xmlapi.jar and resolver.jar) in the my RAR than the $JBoss/lib, So I remove 
these two jars to use the jars that JBoss had.

But then I restart it again, it complains the ClassCastException,,, the error 
stack is:
-
23:00:59,248 ERROR [STDERR] java.lang.ClassCastException: $Proxy63
23:00:59,248 ERROR [STDERR] at 
sun.reflect.annotation.AnnotationParser.annotationForMap(Annotati
onParser.java:239)
23:00:59,248 ERROR [STDERR] at 
sun.reflect.annotation.AnnotationParser.parseAnnotation(Annotatio
nParser.java:229)
23:00:59,248 ERROR [STDERR] at 
sun.reflect.annotation.AnnotationParser.parseAnnotations2(Annotat
ionParser.java:69)
23:00:59,248 ERROR [STDERR] at 
sun.reflect.annotation.AnnotationParser.parseAnnotations(Annotati
onParser.java:52)
23:00:59,248 ERROR [STDERR] at 
java.lang.Class.initAnnotationsIfNecessary(Class.java:3031)
23:00:59,248 ERROR [STDERR] at 
java.lang.Class.getAnnotation(Class.java:2989)
23:00:59,248 ERROR [STDERR] at 
org.apache.cxf.jca.servant.EJBEndpoint.isJaxWsServiceInterface(EJ
BEndpoint.java:159)
23:00:59,279 ERROR [STDERR] at 
org.apache.cxf.jca.servant.EJBEndpoint.publish(EJBEndpoint.java:7
6)
23:00:59,279 ERROR [STDERR] at 
org.apache.cxf.jca.cxf.JCABusFactory.initializeServantsFromProper
ties(JCABusFactory.java:128)
23:00:59,279 ERROR [STDERR] at 
org.apache.cxf.jca.cxf.JCABusFactory.access$200(JCABusFactory.jav
a:49)
23:00:59,279 ERROR [STDERR] at 
org.apache.cxf.jca.cxf.JCABusFactory$EJBServicePropertiesMonitorW
orker.run(JCABusFactory.java:269)
23:00:59,279 ERROR [STDERR] at 
org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)

23:00:59,279 ERROR [STDERR] at 
org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.j
ava:275)
23:00:59,279 ERROR [STDERR] at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Pooled
Executor.java:743)
23:00:59,279 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)


The code is:

Class interfaceClass = Class.forName(this.getServiceClassName());
if (cls == null) {
return false;
}

if (null != cls.getAnnotation(WebService.class)) {
return true;
}
return true;


So, I suspect that in this situation, it might used the different classloader...

Any thoughts?

Thanks
Jeff


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096137#4096137

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096137
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: RA deployment in JBoss

2007-10-17 Thread jeff.yuchang
A little story about my situation:

Before I pack the rar file in an ear, I use the cxf-ds.xml and cxf.rar to do 
the deployment.

Because the cxf uses some jars which JBoss used its older version, to make it 
cxf based RA works, I need to endorse a bunch of jars in the 
$JBoss/lib/endorsed.

*  geronimo-activation_1.1_spec-1.0-M1.jar
* geronimo-annotation_1.0_spec-1.1.jar
* geronimo-ws-metadata_2.0_spec-1.1.1.jar
* jaxb-api-2.1.jar
* jaxb-impl-2.1.4.jar
* jaxb-xjc-2.1.4.jar
* jsr181-api-1.0-MR1.jar
* saaj-api-1.3.jar
* saaj-impl-1.3.jar
* stax-api-1.0.1.jar
* stax-utils-20060502.jar

and it can start successfully, however, I am looking for an elegant way to do 
this instead of using endorsed.

So I know I need to use the scoped classloader, and in order to do that, it 
needs me to pack the RAR to an EAR, and then adding the jboss-app.xml to 
configure.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096131#4096131

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096131
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: RA deployment in JBoss

2007-10-17 Thread jeff.yuchang
Firstly, thanks for your reply, to make you easy understood my situation, I 
will post all relevant xml configure file. ;-)

1. application.xml



cxf-jca

cxf.rar



2. jboss-app.xml



apache.cxf:loader=cxf.ear

java2ParentDelegation=false



cxf-ds.xml



3. cxf-ds.xml


  
EIS/CXFConnector
cxf.ear#cxf.rar

org.apache.cxf.connector.CXFConnectionFactory
  




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096124#4096124

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096124
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: RA deployment in JBoss

2007-10-17 Thread jeff.yuchang
And then I found it was caused by the xmlapi jar.

In my RA.rar, I have the xmlapi.jar, whose version is lower than the xmlapi in 
the $JBoss_HOME/lib/endorsed folder, so I remove the xmlapi.jar in my RA.

Then I start the jboss again, and see another error is: 

22:28:26,091 ERROR [STDERR] java.lang.ClassCastException: $Proxy63
22:28:26,091 ERROR [STDERR] at 
sun.reflect.annotation.AnnotationParser.annotationForMap(Annotati
onParser.java:239)
22:28:26,091 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on 
http-0.0.0.0-8080
22:28:26,123 ERROR [STDERR] at 
sun.reflect.annotation.AnnotationParser.parseAnnotation(Annotatio
nParser.java:229)
22:28:26,123 ERROR [STDERR] at 
sun.reflect.annotation.AnnotationParser.parseAnnotations2(Annotat
ionParser.java:69)
22:28:26,123 ERROR [STDERR] at 
sun.reflect.annotation.AnnotationParser.parseAnnotations(Annotati
onParser.java:52)
22:28:26,123 ERROR [STDERR] at 
java.lang.Class.initAnnotationsIfNecessary(Class.java:3031)
22:28:26,123 ERROR [STDERR] at 
java.lang.Class.getAnnotation(Class.java:2989)
22:28:26,123 ERROR [STDERR] at 
org.apache.cxf.jaxws.support.JaxWsImplementorInfo.initialise(JaxW
sImplementorInfo.java:259)


It seems it uses the JBoss server lib again, instead of using the library in my 
RAR file.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096121#4096121

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096121
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - RA deployment in JBoss

2007-10-17 Thread jeff.yuchang
Hi, All

I have a RA, which is packed in an EAR. I've followed this thread ( 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=88080 ) to deploy the 
RAR in ear.

myapp.ear
myapp.rar
META-INF/application.xml
META-INF/jboss-app.xml
myapp-ds.xml

in the jboss-app.xml, I set the classloader is isolated, and the 
java2ParentDelegation as false.

And then I start the JBoss, I would see below error. 

Error stack is:

org.jboss.util.NestedRuntimeException: Premature end of file.; - nested 
throwable: (org.xml.sax.SAXP
arseException: Premature end of file.)
at 
org.jboss.util.propertyeditor.DocumentEditor.getAsDocument(DocumentEditor.java:88)
at 
org.jboss.util.propertyeditor.ElementEditor.setAsText(ElementEditor.java:41)
at 
org.jboss.system.ServiceConfigurator.parseTextSerialData(ServiceConfigurator.java:565)
at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:329)
at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
at 
org.jboss.system.ServiceConfigurator.processDependency(ServiceConfigurator.java:661)
at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:357)
at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
at 
org.jboss.system.ServiceConfigurator.processDependency(ServiceConfigurator.java:661)
at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:357)
at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at 
org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterce
ptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy35.create(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.create(XSLSubDeployer.java:192)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterce
ptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.