[jboss-user] [JBoss jBPM] - Re: Accessing the parent/super execution from a subprocess e

2009-08-13 Thread flavio.donze
hi shekharv

That's how I'm getting the key right now and it works fine, but it's an ugly 
cast.
I would like to have a getSuperProcessExecution() on the OpenExecution 
interface.
OpenExecution has a method getSubProcessInstance() but no method to access the 
super ProcessInstance, that's basically the issue here.

greets
flavio

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

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


[jboss-user] [JBoss Portal] - Re: Incomplete deployment listing--> Packages waiting for de

2009-08-13 Thread murali67p
--- Packages waiting for a deployer ---
org.jboss.deployment.deploymenti...@71f8d3f4 { 
url=file:/D:/JBoss/server/default/deploy/511.alaska.govProj }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/JBoss/server/default/deploy/511.alaska.govProj
  altDD: null
  lastDeployed: 1250225315609
  lastModified: 1250225315593
  mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.deploymenti...@71f8d3f4 { 
url=file:/D:/JBoss/server/default/deploy/proj }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/JBoss/server/default/deploy/proj
  altDD: null
  lastDeployed: 1250225315609
  lastModified: 1250225315593
  mbeans:


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Classloader Isolation (again)

2009-08-13 Thread jaikiran
anonymous wrote : 00:05:05,257 ERROR [StandardContext] Context 
[/county_library] startup failed due to previous errors
  | java.lang.RuntimeException: mapped-name is required for cxf of deployment 
county_library.war 

Not sure what this one is about. But i would first fix the xerces issue and 
later on look into this one (if at all it still shows up).

anonymous wrote : Also, you mention proper configuration -- does my 
jboss-classloading.xml look ok?

Looks OK. But i am not an expert on that file. I am more used to jboss-app.xml 
http://www.jboss.org/community/wiki/classloadingconfiguration. Either of them 
should work.

anonymous wrote : 
  |  Also, I saw some people asking on the forum for a good reference to that 
file and what can go in it but no one seems to have provided anything yet. Do 
you know if anything exists? 

Unfortunately, the closest you can get to the details of that file is one wiki 
and one forum post with an example (i guess there's where you found the version 
that you are using). Other than that, there is not much documentation on how to 
handle each of those attributes in the file and what values mean what.




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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Incomplete Deployment listing (for the nth time)

2009-08-13 Thread sukumarp
Hi,
Can you please elaborate the change you made on 
deploy/uuid-key-generator.sar/META-INF/jboss-service.xml  file to fix this 
issue?

Thanks,
Sukumar.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Classloader Isolation (again)

2009-08-13 Thread justinmiller
Gotcha. I'll try and remove xerces for now. Also, there is a cxf error in that 
stacktrace I posted. I definitely don't get that when I deploy to tomcat 
standalone. It made me think it was also a classloader issue. Any ideas with 
that error? 

What I haven't tried yet is removing xerces and redploying. Maybe that issue 
would go away?

Also, you mention proper configuration -- does my jboss-classloading.xml look  
ok? Anything that needs to be added. Also, I saw some people asking on the 
forum for a good reference to that file and what can go in it but no one seems 
to have provided anything yet. Do you know if anything exists?

Thanks again,
Justin

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

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


[jboss-user] [EJB/JBoss] - Re: TxConnectionManager and enabling trace level logging

2009-08-13 Thread jaikiran
Which version of JBossAS?

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Classloader Isolation (again)

2009-08-13 Thread jaikiran
"justinmiller" wrote :  The jars in my deployment should not conflict with the 
server jars and vice versa given the configuration of my jboss-classloading.xml.
  | 
  | Thanks,
  | Justin

Just to make it clear - it's only the xerces jar(s) which are running into this 
issue. For all other thirdparty jars you should be able to override them with 
proper configuration.


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Classloader Isolation (again)

2009-08-13 Thread jaikiran
Honestly, i haven't been able to spend much time to look into this after the 
initial investigation. Maybe sometime later during this weekend.
 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to detect deployment failure

2009-08-13 Thread jaikiran
anonymous wrote : more interesting part is the war file (which contains a bunch 
of WS(s)) also show in JMX console.
  | 
  | My solution was to try reading the war MBean attrs through JMX and see if 
has any WS(s) if not then .war is corrupt, 

What does WS(s) mean?

Can you post the deployment failure exception stacktrace/error message that you 
see on the console? And which exact version of JBoss AS do you use?

While posting logs or xml content or code, please remember to wrap it in a code 
block by using the Code button in the message editor window. Please use the 
Preview button to ensure that your post is correctly formatted.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Classloader Isolation (again)

2009-08-13 Thread justinmiller
Thanks for the quick reply!

While that would most likely solve the problem, I agree with the poster of the 
linked thread that this really isn't a viable option. The jars in my deployment 
should not conflict with the server jars and vice versa given the configuration 
of my jboss-classloading.xml.

Thanks,
Justin

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Issue with special characters in tree node names

2009-08-13 Thread jaikiran
Asking this in the RichFaces user forum might help 
http://www.jboss.org/index.html?module=bb&op=viewforum&f=261

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: make sure my hibernate config in jboss remains the same?

2009-08-13 Thread jaikiran
"Elhanan" wrote : 
  | after placing jboss-app.xml in the meta-inf of the ear... 
  | ...
  | the mdb extends an abstract class which implements MessageListener, 
MessageDrivenBean
  | ...
  | 
Looks like an old issue: 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=58037&postdays=0&postorder=asc&start=10.
 But i could not locate any open JIRA for this, so not sure whether it's still 
an issue or has been fixed.

Try this, instead of the Abstract class implementing the MessageDrivenBean and 
MessageListener, let the MDB class implement those 2 interfaces and extend from 
the abstract bean. See if that helps. 
And by the way, are you packaging any jar file(s) containing javax.jms.* or 
javax.ejb.* classes? If yes, remove those jar files from your application 
packaging and see if that solves the problem.


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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249553
___
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] [Installation, Configuration & DEPLOYMENT] - Re: Classloader Isolation (again)

2009-08-13 Thread jaikiran
All i can say at this point is - remove the xerces jar file(s) from your 
application http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158645

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

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


[jboss-user] [Beginners Corner] - Re: how does jboss find jboss-log4j.xml

2009-08-13 Thread jaikiran
JBoss registers a custom protocol handler 
org.jboss.net.protocol.resource.Handler 
http://anonsvn.jboss.org/repos/common/common-core/trunk/src/main/java/org/jboss/net/protocol/resource/Handler.java
 to handle the resource: URLs.

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

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


[jboss-user] [Beginners Corner] - Re: Getting Server's 'Config Name' to display in JSP

2009-08-13 Thread jaikiran
There's a simpler way. You can use the system properties that JBoss sets 
http://www.jboss.org/community/wiki/JBossProperties:

System.getProperty("jboss.server.name");

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Classloader Isolation (again)

2009-08-13 Thread justinmiller
Hey all,

I'm trying to deploy a war to jboss 5.x. I want complete classloader isolation. 
I want my war completely isolated from everything else in the app server. I've 
read the forum postings on how to do classloader isolation in jboss 5.x and 
thus I have the following jboss-classloading.xml:




My app includes cxf, spring and hibernate (amongst other things). I know there 
are obvious conflicts w/ the jars jboss supplies, which is why I want the 
isolation. With the above xml, I get the errors pasted below. It seems like the 
app server is using the classes in my jars before it's own. But that's just my 
guess.

Any thoughts? Am I missing something in my jboss-classloading.xml?

Thanks!
Justin

00:05:05,184 ERROR [JBossContextConfig] XML error parsing: context.xml
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
at 
org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
at 
org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:557)
at 
org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:543)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
at 
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:668)
at 
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
at 
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at 
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at 
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at 
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at 
org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
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.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at 
org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at 
org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at 
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at 
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer

[jboss-user] [JBoss Portal] - Hotel booking demo not working

2009-08-13 Thread pjputhenvila
Hi
I am trying to run he hotel booking demo as per the tutorial by Wesley Hales . 
I have checkout the project but I could not run the mvn install command. I am 
getting this error
C:\JBossSeamPortalRun\booking>mvn install
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/jboss/portletbridge/examples/2.0.
0.ALPHA/examples-2.0.0.ALPHA.pom
[INFO] Unable to find resource 'org.jboss.portletbridge:examples:pom:2.0.0.ALPHA
' in repository central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jboss.portletbridge.examples.seam.booking:seamBookingDemo:pom:2.
0.0.ALPHA

Reason: Cannot find parent: org.jboss.portletbridge:examples for project: org.jb
oss.portletbridge.examples.seam.booking:seamBookingDemo:pom:2.0.0.ALPHA for proj
ect org.jboss.portletbridge.examples.seam.booking:seamBookingDemo:pom:2.0.0.ALPH
A


[INFO] 
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.
portletbridge:examples for project: org.jboss.portletbridge.examples.seam.bookin
g:seamBookingDemo:pom:2.0.0.ALPHA for project org.jboss.portletbridge.examples.s
eam.booking:seamBookingDemo:pom:2.0.0.ALPHA
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:4
1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent
: org.jboss.portletbridge:examples for project: org.jboss.portletbridge.examples
.seam.booking:seamBookingDemo:pom:2.0.0.ALPHA for project org.jboss.portletbridg
e.examples.seam.booking:seamBookingDemo:pom:2.0.0.ALPHA
at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1396)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
aultMavenProjectBuilder.java:823)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:508)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:200)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
... 12 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.por
tletbridge:examples' not found in repository: Unable to download the artifact fr
om any repository

  org.jboss.portletbridge:examples:pom:2.0.0.ALPHA

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.jboss.portletbridge:examples
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:605)
at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1392)
... 18 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

  org.jboss.portletbridge:examples:pom:2.0.0.ALPHA

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:228)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:90)
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:558)
... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
oad the artifact from any repository
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:349)
at org.apache.maven.artifact.res

[jboss-user] [EJB/JBoss] - TxConnectionManager and enabling trace level logging

2009-08-13 Thread asookazian
I am trying to debug and understand how the TxConnectionManager enlists XA 
resources for a 2PC/XA tx.

I would like to know how to get the trace variable to be true below:

  | public boolean enlist()
  |  {
  | if (trace)
  |log.trace("Enlisting resource " + 
TxConnectionEventListener.this);
  | try
  | {
  |XAResource resource = getXAResource();
  |if (false == currentTx.enlistResource(resource))
  |   enlistError = FAILED_TO_ENLIST;
  | }
  | catch (Throwable t)
  | {
  |enlistError = t;
  | }
  | 
  | synchronized (this)
  | {
  |if (enlistError != null)
  |{
  |   if (trace)
  |  log.trace("Failed to enlist resource " + 
TxConnectionEventListener.this, enlistError);
  |   setTrackByTx(false);
  |   transactionSynchronization = null;
  |   return false;
  |}
  |
  |if (trace)
  |   log.trace("Enlisted resource " + 
TxConnectionEventListener.this);
  |enlisted = true;
  |return true;
  | }
  |  }

The log is set in an ancestor class - ServiceMBeanSupport in the constructor:

   public ServiceMBeanSupport()
  |{
  |   // can not call this(Class) because we need to call getClass()
  |   this.log = Logger.getLogger(getClass().getName());
  |   log.trace("Constructing");
  |}

And the trace variable is set in another ancestor class - 
BaseConnectionManager2:

   public BaseConnectionManager2()
  |{
  |   super();
  |   trace = log.isTraceEnabled();
  |}

But I tried several things in the jboss-log4j.xml file and it doesn't work 
(i.e. I don't see the trace level logging).

I tried:


  |   
  |   
  |   
  |   
  |

and this:


  |
  |   
  |

and even this:

  | 
  |
  |   
  |

How can I achieve this?  thx.

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

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


[jboss-user] [JNDI/Naming/Network] - Re: Understand JNDI naming convention

2009-08-13 Thread PeterJ
Yes, that is correct. And if you go into the jmx-console you can see that 
MBean, and if you examine the MBean you might see some interesting data 
regarding your EJB (such as response times).

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

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


[jboss-user] [JBoss Tools (users)] - Re: Find Usages

2009-08-13 Thread Kragoth
JIRA raised
https://jira.jboss.org/jira/browse/JBIDE-4771

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

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


[jboss-user] [Beginners Corner] - Re: Beginners problem with ((StubExt)port).setSecurityConfig

2009-08-13 Thread soboko
I was running into a similar ClassCastException. The difference is that I'm 
using Maven and NetBeans 6.7 to generate my test client.

To get this to work, I had to change my project dependencies from this (which 
was generated by NetBeans)...


  | com.sun.xml.ws
  | webservices-rt
  | 1.4
  | provided
  | 

...to this:


  | org.jboss.javaee
  | jboss-ejb-api
  | 3.0.0.GA
  | 
  | 
  | 
  | org.jboss
  | jbossxb
  | 2.0.1.GA
  | 
  | 
  | 
  | org.jboss.ws.native
  | jbossws-native-client
  | 3.1.2.SP3
  | 

Along the way, I tried using:


  | jboss.jbossws
  | jbossws-core
  | 3.0.1-native-2.0.4.GA
  | 

Which corresponds to your jbossws-client-3.0.1-native-2.0.4.GA.jar. That one 
did not work for me, I had to change the dependencies as described above.

I still don't know if those are the right dependencies, but those are my best 
guesses. Figuring out all these dependencies has been purely trial-and-error 
and it's been a bit frustrating. Other aspects of the setup process were pretty 
well documented, but figuring out what dependencies I need to include to use 
annotations like @WebContext, @EndpointConfig, etc. was not. I had to use 
findjar.com (which gave me misleading info a lot of the time) and decompress 
random jars in order to find the right dependencies!

I ended up adding these dependencies to my server-side EJB project in order to 
use those annotations:


  | org.jboss.ws
  | jbossws-spi
  | 1.1.2.GA
  | provided
  | 
  | 
  | 
  | jboss.jbossws
  | jbossws-core
  | 3.0.1-native-2.0.4.GA
  | provided
  | 

And, to resolve these dependencies, I need this:


  | jboss
  | http://repository.jboss.org/maven2
  | 
  | 

I don't know if this is correct or not. If anyone has better information, I 
would greatly appreciate it!

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

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

There was limited time. Since deploying is possible in another way and showing 
definitions/tasklists/taskforms/... isn't, it is not a really a strange choice 
I think. If missing this makes you feel like you describe, I unfortunately 
cannot do much for you, how much I'd like to. 



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

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


[jboss-user] [JBoss jBPM] - Re: From

2009-08-13 Thread kukeltje
I know... it is indeed sometimes difficult...

Oh and I did not want to offend you in anyway with my remark. Re-reading it 
makes it sound a bit harsh. Was not intended this way. More a comment to myself 
that I was a bit sloppy for not remembering. 



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

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


[jboss-user] [JNDI/Naming/Network] - Re: Understand JNDI naming convention

2009-08-13 Thread mohitanchlia
ok ..starting to make little sense:


  | jar=ee-messaging.jar,name=RouterBean,service=EJB3 
  | 

So if I see something like this (above) it really means this is a Mbean 
managing "RouterBean" in this example? So for every Bean there is a Mbean that 
is created to manage the resource? Am I saying it right?

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

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


Re: [jboss-user] Message Driven Bean config

2009-08-13 Thread Stephen Davidson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Sid.

How do you know there are 30 MDB instances actually created?  Just a
random thought.  In the meantime, you probably want to post this to the
forums.  This mailing list does not seem to be monitored by anyone from
JBoss Group any more.

Regards,
Steve

Sid wrote:
> I have a simple ejb application where I have one MDB which reads from a
> TIBCO EMS Queue and persists the message in db. I have defined MDB pool
> size as 30 still I see only 2 readers on EMS Queue. Any ideas, I thought
> if there are 30 MDB instances there should be 30 readers on EMS Queue?
> (for running this experiment, queue is always initialized with 1
> messages so for the duration of experiment, MDBs will always have some
> messages on queue to read). Any help would be much appreciated, as
> functionally application is behaving perfectly, but performance is shabby.
> 
> Thanks and Regards,
> Sid.
> 
> 
> 
> 
> ___
> jboss-user mailing list
> jboss-user@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-user

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkqEi5cACgkQSphIUSiVzgYfNwCfRgz4MjjiqY5vzRlTXTbxcNEt
dZoAniNBaVjIQ671+1DumLh00gxh4KrE
=Leir
-END PGP SIGNATURE-
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Accessing the parent/super execution from a subprocess e

2009-08-13 Thread shekharv
@flavio.doze

Do you think you can setup a test case? Can you add a log statement to your 
assignment handler and check what value you are getting for this? 

logger.debug(((ExecutionImpl) execution).getSuperProcessExecution().getKey());

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - How to detect deployment failure

2009-08-13 Thread sasanplus
Hi,

I copied a faulty .war file and tried detecting a deployment failure, but I 
still get 

org.jboss.deployment.SubDeployer.creat
and 
org.jboss.deployment.SubDeployer.start

more interesting part is the war file (which contains a bunch of WS(s)) also 
show in JMX console.

My solution was to try reading the war MBean attrs through JMX and see if has 
any WS(s) if not then .war is corrupt, but to be honest I expected to get a 
failure notification right at the begining.

so the question is, what is the correct way of detecting of deployment has gone 
wrong?

Note: I did not get "org.jboss.deployment.SubDeployer.destroy"

any suggestions are much appreciated.

Thanks,
Sasan


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

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


[jboss-user] [JNDI/Naming/Network] - Re: Understand JNDI naming convention

2009-08-13 Thread PeterJ
java:comp/env is the enterprise naming context (ENC) and contains entries from 
the resource-ref section of your web.xml file.

anonymous wrote :  regarding my second question who uses the namespace?

I hope you mean your third question. The namespace (within an MBean name) has 
no special meaning  - it is simply used as a convenience to prevent naming 
conflicts among MBeans.

anonymous wrote : I am not sure why it's defined this way?

JBoss AS uses a specific pattern for MBean names that it generates, though it 
uses different patterns for different items. For example, servlets use one 
MBean name pattern while EJBs use another. What you showed was part of an MBean 
name for an EJB (there is more to it on the prior line in the jmx-console 
output)

anonymous wrote : And also is name= really JNDI name?

Not necessarily. It all depends on how the MBean is defined and named.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem changing default ports

2009-08-13 Thread PeterJ
The proper way to change ports in AS 5.0.x is to edit the 
server/xxx/conf/bootstrap/bindings.xml file. The 8080 and 8443 ports are 
defined in there, with an XSLT transform (located at the end of the file) used 
to locate an dynamically update the server.xml file at runtime.

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

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


[jboss-user] [Security & JAAS/JBoss] - jaxws\samples\wssecurity\simple-username - How to get meanin

2009-08-13 Thread Naragansett
I'm running jbossws-native-src-dist-3.1.2 example  ... 
jaxws\samples\wssecurity\simple-username. On Windows, against jboss-5.0.0 it 
runs fine. On RHEL 4 - 64 bit against Jboss-5.1 I only get  (Client-side) - 
javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit 
message ... Caused by: java.net.ConnectException: Connection refused.  The 
Server-side logs show the ... 
jaxws-samples-wssecurity-username.war/UsernameService...wsdl is deployed. And 
shows a proper response for the WSDL request (when I run the simple-username) 
test case. The jboss-wsse-client.xml and jboss-wsse-server.xml look good.
 I've enabled (jboss-log4j.xml)   value="TRACE"  The problem is there isn't 
enough info to diagnose this problem. How else do I get meaningful diagnostics 
on this problem?

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

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


[jboss-user] [JBoss jBPM] - Re: From

2009-08-13 Thread unsavory
Thank you very much for pointing me to the existing JIRA.  

Believe me, I have searched and searched over the past few days but searches 
don't always turn up the correct results unless you know exactly what you are 
looking for.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249524
___
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 JimDwyer
I am a little confused as to why this wasn't added when the gwt-console was 
built.  Wouldn't that be one of the most obvious things to have in there?  I 
will write a small web app.  Maybe I will write some GWT and contribute it.  I 
can't believe loading a process definition was left out.  It really is the 
heart of jBPM.  I am really disappointed and am not filled with great 
confidence about jBPM4.

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

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


[jboss-user] [JBoss OSGi] - Re: OSGi and MicroContainer

2009-08-13 Thread alesj
It depends which approach did you take?

Embedded in AS?
Then it's the same as always - JBOSS_HOME/server/CONFIG/deploy/.

I guess for Runtime it's frmwrk specific.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: make sure my hibernate config in jboss remains the same?

2009-08-13 Thread Elhanan
it also has one public onMessage method which delegates to the handleMessage 
method.

it's ejb 2.x 

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

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


[jboss-user] [JNDI/Naming/Network] - Re: Understand JNDI naming convention

2009-08-13 Thread mohitanchlia
My previous post is not formatter correctly

Thanks! What's the difference between java:comp and java:com/env? 

Also, regarding my second question who uses the namespace? For eg: In jmx 
console under jboss.j2ee I see: 


  | jar=ee-messaging.jar,name=RouterBean,service=EJB3 
  | 

I am not sure why it's defined this way? And also is name= really JNDI name?

Pardon me if I am asking abvious questions.   


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

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


[jboss-user] [JNDI/Naming/Network] - Re: Understand JNDI naming convention

2009-08-13 Thread mohitanchlia
Thanks! What's the difference between java:comp and java:com/env?

Also, regarding my second question who uses the namespace? For eg: In jmx 
console under jboss.j2ee I see:


  | jar=efe-messaging.jar,name=RouterBean,service=EJB3 
  | 
  |   | 
  |   | I am not sure why it's defined this way? And also is name= really JNDI 
name?
  |   | 
  |   | Pardon me if I am asking abvious questions.

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

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


[jboss-user] [JBoss jBPM] - Re: From

2009-08-13 Thread kukeltje
This was a known issue and is already fixed. (I did not remember it, and 
assumed you already searched the jira and the forums... .stupid me. 
Assumptions.

https://jira.jboss.org/jira/browse/JBPM-2407, try the latest source.

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

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


[jboss-user] [JBoss jBPM] - Re: How to Generate ad-hoc Task, activities & process ??

2009-08-13 Thread kukeltje
Look in the sourcecode of the pvm and jpdl. Lots of examples on how to create 
processes from code. 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Problem changing default ports

2009-08-13 Thread devj2ee
I am using jboss-5.0.0.GA.

I have changed values of the default ports from 8080 to 80 and 8443 to 443 in 
the server.xml file located in the 
%JBOSS_HOME%\server\default\deploy\jbossweb.sar directory



  |   
  | 
  |   
  | 

I have place my server.keystore file in the %JBOSS_HOME%\server\default\conf 
directory.

When I deploy the ear and navigate to restricted servlet 
(http://localhost/myapp/myrestrictedservlet) I get "Firefox can't establish a 
connection to the server at localhost:8443" or "Internet Explorer cannot 
display the webpage".

If I navigate to restricted servlet and specify a port 
(https://localhost:443/myapp/myrestrictedservlet) I am presented with the 
j_security_check form.  When I submit correct credentials I get "Hello World".

It seams as though the redirectPort attribute of Connector in the server.xml is 
being overridden or not picked up.


The port attribute was picked up because I can navigate to 
http://localhost/jmx-console/.


Thank you for any help you can provide...

   

File Organization:

  | 
  | myapp.ear
  | META-INF
  | application.xml
  | MANIFEST.MF
  | dynamic-login.jar
  | dynamic-login-config.xml
  | META-INF
  | MANIFEST.MF
  | myapp.war
  | restricted
  | bad-login.html
  | login.html
  | META-INF
  | MANIFEST.MF
  | WEB-INF
  | web.xml
  | jboss-web.xml
  | classes (etc...)
  | 





-
server.xml
-

  | 
  | 
  |  
  |
  |
  |
  |
  |  
  |
  |  
  |   
  |   
  |  
  |  
  |   
  |   
  | 
  |  
  |  
  |  
  |   
  |  
  |  
  |  
  |   
  |  
  | 
  |  
  | 
  | 
  | 
  | 
  |  
  |  
  |   
  |  
  |
  |  
  | 
  | 
 
 
 
 
 
-
dynamicloginconfig-service.xml
-

  | 
  | 
  | 
  | 
  | 
  |  
  |   
  | dynamic-login-config.xml
  | 
  | jboss.security:service=XMLLoginConfig

  | 
  | jboss.security:service=JaasSecurityManager
  |   
  | 
  |  
  | 
 
-
application.xml
-
 

  |  
  | 
  | 
  | 
  | My App
  | 
  | 
  | myapp.war
  | /myapp
  | 
  | 
  | 
  | dynamic-login.jar
  | 
  | 
  |  
  |  
  |  

 
 
 
 
-
security-mysql-ds.xml
-

  | 
  | 
  | 
  | 
  | 
  |   
  | jdbc/myAppDS
  | jdbc:mysql://localhost:3306/myappdb
  | com.mysql.jdbc.Driver
  | myuser
  | mypassword
  | 
TRANSACTION_READ_COMMITTED
  | 5
  | 20
  | 15
  | 
  |   mySQL
  | 
  |   
  | 
  | 
 
 
 
 
 
 
-
dynamic-login-config.xml
-

  | 
  | 
  |  
  | http://www.jboss.org/j2ee/dtd/security_config.dtd";>
  |  
  | 
  |  
  |   
  | 
  |   
  | guest
  | java:/jdbc/myAppDS
  | SELECT vpassword FROM VUser 
WHERE vname=?
  | SELECT vrole, 'Roles' FROM VRole 
WHERE vname=?
  |   
  | 
  |   
  |  
  | 
  |  
  | 

 
 
 
-
web.xml
-

  | 
  | 
  | 
  | http://java.sun.com/xml/ns/javaee"; 
  |  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
  | 
  | 
  | MyRestrictedServlet
  | com.myapp.MyRestrictedServlet
  | 
  |  
  | 
  | MyRestrictedServlet
  | /myrestrictedservlet
  | 
  |   
  | 
  | 
  | HtmlAdaptor
  | /sayhello
  | GET
  | POST
  | 
  | 
  | admin
  | 
  | 
  | CONFIDENTIAL
  | 
  | 
  |  
  | 
  | FORM
  | 
  | 
/restricted/login.html

[jboss-user] [Security & JAAS/JBoss] - Re: JBoss 4.2.3 and Security Annotations

2009-08-13 Thread bacooper81
Awesome.  I see jboss-annotations-ejb3.jar.  Thanks so much for the reply.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: make sure my hibernate config in jboss remains the same?

2009-08-13 Thread PeterJ
Here is part of the error message:

Warning: The message driven bean must declare one onMessage() method.

And you stated your MDBs implement:

protected abstract Object handleMessage(Message msg) ; 

(By the way, use the 'code' tags when posting XML text - select the text and 
click the Code button above the editor window)

What version of EJB? 2.x or 3.0?

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

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


[jboss-user] [JBoss Tools (users)] - Generating DDL from annotated POJOs

2009-08-13 Thread JPAV
I'm trying to figure out how to use the JPA/Hibernate-related functionality in 
JBDS 2.0 and am having a few problems with JBDS either locking up on me or 
doing nothing when I choose the JPA Tools->Generate DDL... context menu option. 
 I'm starting with JPA-annotated classes from which I want to generate SQL 
Server DDL. I want to eventually use Teiid to map my JPA objects that represent 
my domain-specific business view to the actual physical tables defined in the 
database (i.e., the JPA business objects do not currently match the database 
schema).  I can provide the actual project and its contents, plus the URL to 
the database source, if that would help (but the latter is only available on 
the intranet).

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

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


[jboss-user] [JBoss jBPM] - Re: From

2009-08-13 Thread unsavory
I've found the issue in the source.  There is a bug in the code in 
JoinBinding.java

Here is the defective source for that class:
public Object parse(Element element, Parse parse, Parser parser) {
  | JoinActivity joinActivity = new JoinActivity();
  | 
  | if (element.hasAttribute("multiplicicty")) {
  |   String multiplicictyText = element.getAttribute("multiplicicty");
  |   try {
  | int multiplicity = Integer.parseInt(multiplicictyText);
  | joinActivity.setMultiplicity(multiplicity);
  |   } catch (NumberFormatException e) {
  | parse.addProblem("multiplicity "+multiplicictyText+" is not a valid 
integer", element);
  |   }
  | }
  | 
  | if (element.hasAttribute("lockmode")) {
  |   String lockModeText = element.getAttribute("lockmode");
  |   LockMode lockMode = LockMode.parse(lockModeText.toUpperCase());
  |   if (lockMode==null) {
  | parse.addProblem("lockmode "+lockModeText+" is not a valid lock 
mode", element);
  |   } else {
  | joinActivity.setLockMode(lockMode);
  |   }
  | }
  | 
  | return joinActivity;
  |   }

Should be multiplicity, not multiplicicty.  I'll open a JIRA if/when I get a 
chance.

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

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


[jboss-user] [JBossWS] - Re: Printing Service with thread unsave drivers

2009-08-13 Thread PeterJ
How about doing the printing from a Message-Driven Bean (MDB). Have your web 
service send the label information to a queue and have one MDB per printer 
reading from the queue (probably same source code, but deployed multiple times 
- once per printer - each with its own config). Then your web service does not 
have to wait for the label to print before responding - the print request is 
asynchronous.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: make sure my hibernate config in jboss remains the same?

2009-08-13 Thread Elhanan
and before i forget, the mdb extends an abstract class which implements 
MessageListener, MessageDrivenBean

the abstract class has 2 abstract methods:
protected abstract Object handleMessage(Message msg) ;
protected abstract void sendResponse(Object res,Message msg) ;

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - well, i tried that and as i feared this happend:

2009-08-13 Thread Elhanan
after placing jboss-aop.xml in the meta-inf of the ear which contained this:

   
   com.pnx:archive=underwrite.ear
  
 java2ParentDelegation=false 
  
  


the deployment failed with mdbeans:

21:01:59,956 WARN  [verifier] EJB spec violation: 
Bean   : LCRequestHandlerMDB
Section: 15.7.4
Warning: The message driven bean must declare one onMessage() method.

21:01:59,956 WARN  [verifier] EJB spec violation: 
Bean   : LCResponseHandlerMDB
Section: 15.7.4
Warning: The message driven bean must declare one onMessage() method.

org.jboss.deployment.deploymenti...@74cef1f3 { 
url=file:/C:/Workdir/jboss/jboss-4.2.3/server/pmp/deploy/underwrite.ear/framework-ejb.jar/
 }
  deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
  status: Deployment FAILED reason: Verification of Enterprise Beans failed, 
see above for error messages.
  state: FAILED
  watch: 
file:/C:/Workdir/jboss/jboss-4.2.3/server/pmp/deploy/underwrite.ear/framework-ejb.jar/META-INF/ejb-jar.xml
  altDD: null
  lastDeployed: 1250186505465
  lastModified: 1250084967802
  mbeans:

rg.jboss.deployment.deploymenti...@7eaeb79f { 
url=file:/C:/Workdir/jboss/jboss-4.2.3/server/pmp/deploy/underwrite.ear/ }
  deployer: org.jboss.deployment.eardeplo...@1b8119a
  status: Deployment FAILED reason: Verification of Enterprise Beans failed, 
see above for error messages.
  state: FAILED
  watch: 
file:/C:/Workdir/jboss/jboss-4.2.3/server/pmp/deploy/underwrite.ear/META-INF/application.xml
  altDD: null
  lastDeployed: 1250186519613
  lastModified: 1250084971775
  mbeans:

here the mdb's defintions:



 LCRequestHandlerMDB
 com.pnx.pmp.jms.backend.mdb.LCRequestHandlerMDB
 Bean
 
  javax.jms.Queue
 



 LCResponseHandlerMDB
 com.pnx.pmp.jms.backend.mdb.LCResponseHandlerMDB
 Bean
 
  javax.jms.Queue
 
  
  
   
LCRequestHandlerMDB 

queue/underwrite/LegacyCallRequestQueue
 
 
 
LCResponseHandlerMDB 

queue/underwrite/LegacyCallResponseQueue
 
   

  
  underwrite/LCRequestConnectionFactory
  ConnectionFactory
   
   
   
  underwrite/LCResponseConnectionFactory
  ConnectionFactory



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

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


[jboss-user] [JBoss jBPM] - Re: How to Generate ad-hoc Task, activities & process ??

2009-08-13 Thread faisalgeek
But, i am not getting "ProcessFactory" class in jbpm4 lib, but its mentioned in 
jbpm4 docs ?

any clue ?

and yes, if any one can help creating new process + task by code, I will be 
thankful to you.

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

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


[jboss-user] [EJB 3.0] - Re: Many to Many realtionship question

2009-08-13 Thread EladKatz
Hi jaikiran,
Thanks for the quick reply, I have actually read this article before and indeed 
in my implementation I use Sets instead of a Collection as is recommended there.
However, that article doesn't address my issue directly though it does say this:
anonymous wrote : 
  | For a @ManyToMany relationship, it might look like this:
  | 
  |   LeftBean left = ...;
  |   |  RightBean right = ...;
  |   |  left.getRights().add(right);
  |   |  right.getLefts().add(left);
  |   |  
  |   |  this.entityManager.merge(left);
  | 
which means that if I want to add multiple records to the left bean i would 
have to add it once in the right bean and for each of the left records i'm 
going to have to add this right bean to them, and then only commit (merge) one 
of them.
that will work, but feels wrong - is this really the case? 

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

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


[jboss-user] [JBoss jBPM] - Re: From

2009-08-13 Thread unsavory
No, it does not.  I have tried so many different ways of getting this to work 
but with no success.  No matter what I do, I cannot get it to move past the 
join.

Here is an updated process flow that I am trying to simplify things:


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

After completing both tasks in the fork i have a root execution that is in 
status "inactive-concurrent-root" and two child executions both in status 
"inactive-join".  I know that both tasks have been completed because I can see 
them in the task history.

Upon completion of "screen applicant", here are my logs:

anonymous wrote : 10:39:33,268 DEBUG ExecuteActivity:60 - 
execution[USOnboarding.238256.to screen applicant] executes activity(screening 
join)
  | Hibernate: /* UPGRADE lock org.jbpm.pvm.internal.model.ExecutionImpl */ 
select DBID_ from JBPM4_EXECUTION where DBID_ =? and DBVERSION_ =? for update
  | Hibernate: /* select deploymentProperty from 
org.jbpm.pvm.internal.repository.DeploymentProperty as deploymentProperty where 
deploymentProperty.key = 'pdid'   and deploymentProperty.stringValue = 
'USOnboarding-6'  */ select deployment0_.DBID_ as DBID1_5_, 
deployment0_.DEPLOYMENT_ as DEPLOYMENT2_5_, deployment0_.OBJNAME_ as 
OBJNAME3_5_, deployment0_.KEY_ as KEY4_5_, deployment0_.STRINGVAL_ as 
STRINGVAL5_5_, deployment0_.LONGVAL_ as LONGVAL6_5_ from JBPM4_DEPLOYPROP 
deployment0_ where deployment0_.KEY_='pdid' and 
deployment0_.STRINGVAL_='USOnboarding-6' limit ?
  | Hibernate: /* load one-to-many 
org.jbpm.pvm.internal.task.TaskImpl.participations */ select participat0_.TASK_ 
as TASK6_1_, participat0_.DBID_ as DBID1_1_, participat0_.DBID_ as DBID1_7_0_, 
participat0_.DBVERSION_ as DBVERSION2_7_0_, participat0_.GROUPID_ as 
GROUPID3_7_0_, participat0_.USERID_ as USERID4_7_0_, participat0_.TYPE_ as 
TYPE5_7_0_, participat0_.TASK_ as TASK6_7_0_, participat0_.SWIMLANE_ as 
SWIMLANE7_7_0_ from JBPM4_PARTICIPATION participat0_ where participat0_.TASK_=?
  | Hibernate: /* load one-to-many 
org.jbpm.pvm.internal.task.TaskImpl.variables */ select variables0_.TASK_ as 
TASK8_1_, variables0_.DBID_ as DBID1_1_, variables0_.KEY_ as KEY4_1_, 
variables0_.DBID_ as DBID1_1_0_, variables0_.DBVERSION_ as DBVERSION3_1_0_, 
variables0_.KEY_ as KEY4_1_0_, variables0_.CONVERTER_ as CONVERTER5_1_0_, 
variables0_.HIST_ as HIST6_1_0_, variables0_.EXECUTION_ as EXECUTION7_1_0_, 
variables0_.TASK_ as TASK8_1_0_, variables0_.DATE_VALUE_ as DATE9_1_0_, 
variables0_.DOUBLE_VALUE_ as DOUBLE10_1_0_, variables0_.LONG_VALUE_ as 
LONG11_1_0_, variables0_.STRING_VALUE_ as STRING12_1_0_, 
variables0_.TEXT_VALUE_ as TEXT13_1_0_, variables0_.LOB_ as LOB14_1_0_, 
variables0_.CLASS_ as CLASS2_1_0_ from JBPM4_VARIABLE variables0_ where 
variables0_.TASK_=?
  | Hibernate: /* load one-to-many org.jbpm.pvm.internal.task.TaskImpl.subTasks 
*/ select subtasks0_.SUPERTASK_ as SUPERTASK18_1_, subtasks0_.DBID_ as 
DBID1_1_, subtasks0_.DBID_ as DBID1_6_0_, subtasks0_.DBVERSION_ as 
DBVERSION3_6_0_, subtasks0_.NAME_ as NAME4_6_0_, subtasks0_.DESCR_ as 
DESCR5_6_0_, subtasks0_.STATE_ as STATE6_6_0_, subtasks0_.SUSPHISTSTATE_ as 
SUSPHIST7_6_0_, subtasks0_.ASSIGNEE_ as ASSIGNEE8_6_0_, subtasks0_.FORM_ as 
FORM9_6_0_, subtasks0_.PRIORITY_ as PRIORITY10_6_0_, subtasks0_.CREATE_ as 
CREATE11_6_0_, subtasks0_.DUEDATE_ as DUEDATE12_6_0_, subtasks0_.PROGRESS_ as 
PROGRESS13_6_0_, subtasks0_.SIGNALLING_ as SIGNALLING14_6_0_, 
subtasks0_.EXECUTION_ID_ as EXECUTION15_6_0_, subtasks0_.ACTIVITY_NAME_ as 
ACTIVITY16_6_0_, subtasks0_.HASVARS_ as HASVARS17_6_0_, subtasks0_.SUPERTASK_ 
as SUPERTASK18_6_0_, subtasks0_.EXECUTION_ as EXECUTION19_6_0_, 
subtasks0_.PROCINST_ as PROCINST20_6_0_, subtasks0_.SWIMLANE_ as 
SWIMLANE21_6_0_, subtasks0_.TASKDEFNAME_ as TASKDEF2!
 2_6_0_ from JBPM4_TASK subtasks0_ where subtasks0_.SUPERTASK_=?
  | Hibernate: /* update org.jbpm.pvm.internal.history.model.HistoryTaskImpl */ 
update JBPM4_HIST_TASK set DBVERSION_=?, EXECUTION_=?, OUTCOME_=?, ASSIGNEE_=?, 
PRIORITY_=?, STATE_=?, CREATE_=?, END_=?, DURATION_=?, NEXTIDX_=? where DBID_=? 
and DBVERSION_=?
  | Hibernate: /* update 
org.jbpm.pvm.internal.history.model.HistoryTaskInstanceImpl */ update 
JBPM4_HIST_ACTINST set DBVERSION_=?, HPROCI_=?, TYPE_=?, EXECUTION_=?, 
ACTIVITY_NAME_=?, START_=?, END_=?, DURATION_=?, TRANSITION_=?, NEXTIDX_=?, 
HTASK_=? where DBID_=? and DBVERSION_=?
  | Hibernate: /* update org.jbpm.pvm.internal.model.ExecutionImpl */ update 
JBPM4_EXECUTION set DBVERSION_=?, ACTIVITYNAME_=?, PROCDEFID_=?, HASVARS_=?, 
NAME_=?, KEY_=?, ID_=?, STATE_=?, SUSPHISTSTATE_=?, PRIORITY_=?, HISACTINST_=?, 
PARENT_=?, INSTANCE_=?, SUPEREXEC_=?, SUBPROCINST_=? where DBID_=? and 
DBVERSION_=?
  | Hibernate: /* de

[jboss-user] [Management, JMX/JBoss] - Re: Errors running multiple applications inside one Jboss 3

2009-08-13 Thread PeterJ
The classloader repository should do what you want. For each app you will have 
a different repository, and that repository will be used for all the JARs 
packaged with your app (the "com.example" used in the wiki pages is not a 
package name but rather a namespace for the MBean name, and thus has nothing to 
do with the classes being loaded).


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

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


[jboss-user] [JNDI/Naming/Network] - Re: Understand JNDI naming convention

2009-08-13 Thread PeterJ
1) For each web app deployed to the app server there is a "java:comp" namespace 
whose content is accessible only by that app. The app server prefills some 
names but you have to do some work (such as add resource-ref entries to your 
web.xml) to get others.

mapped-name for what? In an @Stateless annotation?  In an @EJB annotation? 
mapped-name is usually the full JNDI name (usefull for referencing the global 
namespace) while name is within the "java:" namespace for the app.

2) Names in the global namespace are accessible from remote clients (that is, 
running in a separate JVM) - remote clients cannot access names in "java:*". 
For example, if a remote client needs access to an EJB, it must look up the 
name in the global namespace.

3) You never said exactly where you are seeing this entry (I don't see it), but 
if it is part of the description for a"java:comp" then it is the name of the 
MBean name created for the application. MBean names have the pattern:

:[,]*

so in your case "e.cache" is the namespace, and there is only one key-value 
pair "service=CacheLoader"

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

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


[jboss-user] [JBoss jBPM] - Re: How to Generate ad-hoc Task, activities & process ??

2009-08-13 Thread kukeltje
Yes, two different scenarios, but he both requested them. 

In 4 the jpdl is not only persisted as lob, al implementing classes are 
instantiated and that (java) object graph is persisted and executed once a 
process instance is started. 

If you take a look at the internals of the PVM, you can see this happening. So 
in the end, jpdl is parsed into objects and persisted, just like directly 
persisting objects.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249495
___
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 kukeltje
look at the ant task in the examples dir of the installation. If you used 'ant 
demo.setup' the examples can be deployed with an ant task. Just copy that for 
now.

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

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


[jboss-user] [JBoss jBPM] - Re: jbpm4 and oracle application server integration

2009-08-13 Thread kukeltje
jndi and names etc has always been tricky, so I'm not sure there is an easy 
'fix'. If this is just the thing, you are lucky ;-)

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

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


[jboss-user] [EJB 3.0] - Re: Many to Many realtionship question

2009-08-13 Thread jaikiran
This wiki https://www.jboss.org/community/wiki/EJB3relationships has good 
informative explanations on EJB3 entity relationships. See if it covers your 
case (probably does).


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

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


[jboss-user] [JBoss jBPM] - Re: exception-handler with custom exception in jbpm 3.2.6

2009-08-13 Thread kukeltje
With simple unit tests you do not use the process classloader from the 
database, but the normal classloader. Since the custom exception is on the 
latter it works. Afaik (but I'm not sure) jBPM only supports loading 
actionhandlers from the processclassloader and not all other classes.

The 'solution' is to not put the Exception in the processarchive but on another 
(web/ear/system/...) classpath

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Issue with special characters in tree node names

2009-08-13 Thread tulip
Hi,

I am using Richfaces Tree and have a context menu attached to each tree node.  
The problem is that the context menu does not get displayed when you right 
click a tree node whose name either has a apostrophe (example May '09) or 
ampersand in it. 

Context menu gets displayed for other nodes. I tried to escape the apostrophe 
with a back slash but still face the same problem. I am using version 3.2.1

Anyone encountered this problem before? Comments/Suggestions appreciated.

Thanks 

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

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


[jboss-user] [EJB 3.0] - Many to Many realtionship question

2009-08-13 Thread EladKatz
Hi,
I'm using a manyToMany relationship in my project and I have a question:
Is it possible to update the relationship from both sides?
I'll show you an example of what i mean:



  | @Entity
  | public class Student {
  |   @Id @GeneratedValue(strategy=GenerationType.IDENTITY)
  |   private int id;
  |   private String name;
  | 
  |   @ManyToMany 
  |   @JoinTable(name="Student_Dept", 
  |   joincolum...@joincolumn(name="Stut_ID"),
  |   inversejoincolum...@joincolumn(name="DEPT_ID"))  
  |   private Collection departments;
  |   public Student() {
  | departments = new ArrayList();
  | }
  | ...
  |   public Collection getDepartments() {
  | return departments;
  |   }
  | 
  |   public void setDepartment(Collection departments) {
  | this.departments = departments;
  |   }
  | 

  | @Entity
  | public class Department {
  | @Id @GeneratedValue(strategy=GenerationType.IDENTITY)
  | private int id;
  | private String name;
  | 
  | @ManyToMany(mappedBy="departments")
  | private Collection students;
  | 
  | public Department(){
  |   students = new ArrayList();
  | }
  | ...
  | public Collection getStudents() {
  |   return students;
  | }
  | 
  | public void setStudent(Collection students) {
  |   this.students = students;
  | }
  | 

Given that, In my main.java I can do this:

  | Department dept = new Department();
  | ...
  | dept.addStudent(student1);
  | em.persist(dept);
  | 
and it works
but if i try it the other way around

  | student.addDept(dept1);
  | 
it fails to update the database (no exception or anything - the changes simply 
do not reflect in the db)
is that because i have to do it from one side only?

note:
This example is not my code but was taken from:  
http://www.java2s.com/Tutorial/Java/0355__JPA/ManyToManyJoinTableJoinInverseJoinColumn.htm
it is similar enough though that you can use it as a reference.

Thanks,
Elad Katz


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

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


[jboss-user] [JBoss Tools (users)] - Re: JBoss ESB 4.6 not supported in nightly builds

2009-08-13 Thread mferguson
"max.ander...@jboss.com" wrote : post in jira please

Done. https://jira.jboss.org/jira/browse/JBIDE-4767

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

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


[jboss-user] [JBoss Messaging] - javax.jms.IllegalStateException: Cannot find session with id

2009-08-13 Thread mmoorcroft
JBoss 4.2.3GA + Messaging 1.4.2.GA

I keep seeing the following stack trace in our server.log.

2009-08-11 00:02:57,310 ERROR [org.jboss.messaging.util.ExceptionUtil] 
ConnectionEndpoint[leg72-2xa188yf-1-xz6nb3yf-03cvpk-k562ka] sendTransaction 
[hqm72-a5i788yf-1-xz6nb3yf-03cvpk-k562ka]
javax.jms.IllegalStateException: Cannot find session with id 
1fg72-oxa188yf-1-xz6nb3yf-03cvpk-k562ka
at 
org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoint.java:835)
at 
org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:489)
at 
org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101)
at 
org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeNext(ConnectionAdvised$sendTransaction_N326865078927536.java)
at 
org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195)
at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
at 
org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeNext(ConnectionAdvised$sendTransaction_N326865078927536.java)
at 
org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at 
org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeNext(ConnectionAdvised$sendTransaction_N326865078927536.java)
at 
org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java)
at 
org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:82)
at 
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:866)
at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:608)
at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:420)
at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173)


Can anyone shed some light as to what could be the cause?  

Thanks,
Mark

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

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


[jboss-user] [JBoss jBPM] - Re: How to Generate ad-hoc Task, activities & process ??

2009-08-13 Thread tcr
Hi, 

as far as I understand there is a difference in the two code examples. 

Rogerofyan is changing a running execution by adding additional steps. The 
process definition currently used is still in place, right? Is there no impact 
of the mismatch between process definition and running execution?

faisalgeek, your code creates a new completely new definition and thus need to 
instanciate a new execution first. I think this is a different scenario because 
there is no active process instance changed. Anyways, is there a way to persist 
a definition created like this into the DB?I think JPDL is persisted as XML LOB 
not as objects...

Thanks!
Regards
tcr



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

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


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

2009-08-13 Thread PeterJ
anonymous wrote : The guys on my team are not very supportive on making this 
work because they want a clean build

Could you explain this point, please? I fail to understand why deleting the old 
war file and then copying over the new war file is not considered a "clean 
build".

The Deployment Scanner can only handle packaged WAR files (not exploded 
directories) [at least, that is what I remember but it has been a while since I 
did this, but perhaps it was if the URL you gave was not file://*], and of 
course the packaged WAR must be accessible to the app server (i.e., from the 
remote RedHat system) via that URL.

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

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


[jboss-user] [JBoss OSGi] - Re: OSGi and MicroContainer

2009-08-13 Thread speleomaniac
One additional question, if I integrate the JBoss Osgi with Jboss AS 5.1 and if 
I want to make hot deployment where I must place the bundles for hot deploy...

In osgi.deployer or Osgi runtime deploy directory because it is not making any 
hot deploy from osgi.deployer, I must install all the bundles manually from 
felix admin console

Thx for answers

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: make sure my hibernate config in jboss remains the same?

2009-08-13 Thread PeterJ
"and on was 6.1"?? Huh, what was 6.1?

You can create a classloader repsitory to isolate classes. See if this helps: 
http://www.jboss.org/community/wiki/ClassLoadingConfiguration

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate, jBoss Portal, jta?

2009-08-13 Thread thinwath
Hi guys, 

I'm facing a problem and don't rly know what I'm doing wrong. Scenario: I got 
serveral portlets deployed on my jBoss Portal 2.7.0 those are using hibernate 
to access a DB2 database, there is one servlet which provides a PDF generation 
this needs access to the database. 

I'm managed to look up for the jndi bound Hibernate SessionFactory but 
sometimes, it doesn't appears evertime I get this exception

I'm not sure if switching my current_session_context_class to jta fix this 
problem?

17:32:37,059 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 17:33:06,358 ERROR [JDBCExceptionReporter] Connection is not associated 
with a managed connection.org.jboss.resource.ada
  | pter.jdbc.jdk5.wrappedconnectionj...@11a0267
  | 17:33:06,362 INFO  [DefaultLoadEventListener] Error performing load command
  | org.hibernate.exception.GenericJDBCException: could not load an entity: 
[de.test.hibernate.P11000#72110]

Maybe someone could give me hand on this? Below are my datasource xml and my 
hibernate cfg

datasource.xml

  | DB2-test
  | jdbc:as400://ip/SCHEMA1;extended 
dynamic=true;package=jbpkg;package cache=true;package 
library=jboss;errors=full
  | com.ibm.as400.access.AS400JDBCDriver
  | user
  | pw
  | 1
  | SELECT current date FROM 
sysibm.sysdummy1 
  | 
  |   
  |  DB2/400
  |   
  | 
  |   

hibernate.cfg.xml

  |  
  |   
  |   com.ibm.as400.access.AS400JDBCDriver
  |  
  | java:comp/env/jdbc/DB2-test   
 
  |   false 
  |   MISDTA
  |   org.hibernate.dialect.DB2400Dialect
  |   UTF-8
  |   thread
  |   false
  |   net.sf.ehcache.hibernate.EhCacheProvider
  |   true
  |   after_statement
  | 
  |  
  | 
  | 
  | Thanks in advance

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

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


[jboss-user] [Beginners Corner] - Getting Server's 'Config Name' to display in JSP

2009-08-13 Thread zmcmahon
Hi - 

I'd like to develop a JSP page which we can use to determine which jboss server 
instance we are connected to. The idea is to use this page to determine which 
server your session is on when you are hitting a clustered application.

I see in the ServerInfo.jsp page within the web-console, they get access to the 
org.jboss.system.server.ServerConfigImplMBean object through a special taglib 
and then do the following:

serverConfig.getServerHomeDir().getName()

Is there any way for me to get access to this object or the server name without 
using this taglib?

Thanks

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

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


[jboss-user] [JBoss Getting Started Documentation] - Re: jboss service in windows

2009-08-13 Thread PeterJ
senan, please describe your problem in more detail. Specifically, which version 
of JBoss AS and what tool are you using to run it as a service? And be specific 
about the tool, there are several that use the description "wrapper service". 

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

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


[jboss-user] [Microcontainer] - Re: Class loading conflict

2009-08-13 Thread objectiser
Yes, still picking up the xbeans-2.2.0.jar from the esb.deployer lib, instead 
of my local xmlbeans-2.3.0.jar in my sar's lib folder.

Tomorrow is ok.

Thanks.

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

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


[jboss-user] [Microcontainer] - Re: Class loading conflict

2009-08-13 Thread alesj
"objectiser" wrote : I hadn't tried with all those attributes, so I just tried 
it with the same result :(
So, you're still picking up esb.deployer's classes?

I'll try to re-create this tomorrow, ok?

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

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


[jboss-user] Message Driven Bean config

2009-08-13 Thread Sid
I have a simple ejb application where I have one MDB which reads from a
TIBCO EMS Queue and persists the message in db. I have defined MDB pool size
as 30 still I see only 2 readers on EMS Queue. Any ideas, I thought if there
are 30 MDB instances there should be 30 readers on EMS Queue? (for running
this experiment, queue is always initialized with 1 messages so for the
duration of experiment, MDBs will always have some messages on queue to
read). Any help would be much appreciated, as functionally application is
behaving perfectly, but performance is shabby.
Thanks and Regards,
Sid.
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Class loading conflict

2009-08-13 Thread objectiser
I hadn't tried with all those attributes, so I just tried it with the same 
result :(

Just to make sure, this is what I have used:


  |   
  | 
  | 

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

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


[jboss-user] [EJB 3.0] - Re: setProperty must be overridden by allsubclasses of SOAPM

2009-08-13 Thread jaikiran
Being discussed in your other post here 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159848

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

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


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

2009-08-13 Thread JimDwyer
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

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

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


[jboss-user] [Microcontainer] - Re: Class loading conflict

2009-08-13 Thread alesj
What about if you just have this jboss-classloading.xml in your deployment:

  |  
and leave esb.deployer as it is.
Or did you already try this?

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

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


[jboss-user] [Microcontainer] - Re: Class loading conflict

2009-08-13 Thread objectiser
No, still no luck - just to check, the jboss-classloading.xml in esb.deployer 
is:

  


and it causes exceptions like:

15:34:00,679 ERROR [AbstractKernelController] Error installing to Instantiated: 
name=jboss.esb:service=PropertyService state=Described mode=Manual 
requiredState=Configured
java.lang.ClassNotFoundException: 
org.jboss.soa.esb.common.JBossESBPropertyService from 
baseclassloa...@127d5a0{vfsclassloaderpolicy@3a0533{name=vfsfile:/...


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

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


[jboss-user] [EJB 3.0] - setProperty must be overridden by allsubclasses of SOAPMessa

2009-08-13 Thread JBOSSFREEBEE
 I am trying to run a standalone java client which will invoke a webservice. My 
webservice is a session bean implementation and is running and tested with SOAP 
UI. My client code looks like the following : 

1 URL url = new URL ("wsdlURL"); 
2 QName qname = ("ServiceURI", "ServiceName") 

3 ServiceFactory factory = Service.Factory.newInstance(); 
4 Service service = factory.createService(url, qname); 

5 BeanName bean = (BeanName) remote.getPort(BeanName.class); 

6 System.out.println( bean.method( String input)); 

On running this I am getting the following error on line no.6 

Exception in thread "main" java.lang.reflect.UndeclaredThrowableException at 
bean.method(Unknown Source) . 

Caused by: java.lang.UnsupportedOperationException: setProperty must be 
overridden by allsubclasses of SOAPMessage  


After reading some postings on this issue i added the following jars to 
endorsed dir 

activation.jar 
jaxb-api.jar 
stax-api.jar 

in addition to serializer, xalan and xerces, this did not help. 

I am using jdk 1.6, JBOSS AS 4.3, Eclipse 3.4.2. 

This issue has been discussed in many places in web, but i could not figure out 
what will actually make it work. Any help will be appreciated. 

 
 
 


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

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


[jboss-user] [EJB 3.0] - Re: Problem with EJB Injection in Servlet

2009-08-13 Thread jaikiran
If you are starting with EJB3 then i would recommend you to use the latest AS5 
version (i.e. 5.1.0) because it has better spec compliant support for EJB3.

Injection of EJB3 in servlets isn't supported in 4.2.x for reasons mentioned in 
our Sticky here http://www.jboss.org/index.html?module=bb&op=viewtopic&t=107353
anonymous wrote : 
  | I've put shared libraries directly under the ear but they are not visible 
to my war. How can i fix that? 

Place those common jars in the EAR/lib folder. 


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

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


[jboss-user] [JBoss Messaging] - Re: JBoss Messaing EAR scope persistence configuration

2009-08-13 Thread jcarnegi
Sorry, my mistake, JBM 1.4.3.GA it is of course.

Thanks for your answer. I think we need to accept that different applications 
need different configurations of JBoss, whether that be for messaging or 
anything.

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

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


[jboss-user] [Microcontainer] - Re: Class loading conflict

2009-08-13 Thread alesj
What about if you add parentDomain="DefaultDomain" to the esb.deployer's 
jboss-classloading.xml?

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

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


[jboss-user] [Microcontainer] - Re: Use of JBoss MC Pojo from in distributed env

2009-08-13 Thread mukulb
Thanks Ales and Manik. I can definitely add information to Wiki but i haven't 
used infinispan. But if whatever we discussed only needs to be documented then 
i will do it. 

Thanks,


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

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


[jboss-user] [Microcontainer] - Re: Class loading conflict

2009-08-13 Thread objectiser
Hi,

Tried that approach, but now I have a problem in that the ESB is complaining 
about classes not being found. The jboss-classloading.xml is placed in the 
esb.deployer, so I assume that isolation is now causing the jbossesb.sar to not 
resolve classes that it previously referenced from the esb.deployer.

So I assume to overcome this, I would need a jboss-classloading.xml in the 
jbossesb.sar?

The jbossesb.sar has a deployment.xml but it does not have a dependency on the 
deployer - if it did, would this overcome the problem? or do all deployment 
units that depend upon the ESB need to have its own jboss-classloading.xml? 
i.e. any .esb distribution?

The other problem with this approach is that it requires me to modify the ESB 
distribution. Is there no mechanism to just enable my sar to indicate that it 
wants to have only its own libs, and the jboss AS libs on its classpath?

Regards
Gary


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

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


[jboss-user] [JBoss Portal] - Re: Help!!! HTTP Status 500 Error

2009-08-13 Thread prabhat....@jboss.com
When does it happen? You may want to create a new forum thread for your problem.

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

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


[jboss-user] [Microcontainer] - Re: Class loading conflict

2009-08-13 Thread alesj
You need to "mimic" this isolation code

  |   String domain = getJMXName(deployment, unit) + 
",extension=LoaderRepository";
  |   classLoadingMetaData = new ClassLoadingMetaData();
  |   classLoadingMetaData.setName(unit.getName());
  |   classLoadingMetaData.setDomain(domain);
  |   classLoadingMetaData.setExportAll(ExportAll.NON_EMPTY);
  |   classLoadingMetaData.setImportAll(true);
  |   classLoadingMetaData.setVersion(Version.DEFAULT_VERSION);
  |   classLoadingMetaData.setJ2seClassLoadingCompliance(false);
  | 
  | 
taken from 
http://anonsvn.jboss.org/repos/jbossas/projects/webbeans-ri-int/trunk/deployer/src/main/java/org/jboss/webbeans/integration/deployer/metadata/WebBeansClassloadingDeployer.java
in your jboss-classloading.xml.

Where you should put this file into esb.deployer and your deployment,
so that both are isolated and don't see over-lapping classes.

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

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


[jboss-user] [EJB 3.0] - Re: Problem with EJB Injection in Servlet

2009-08-13 Thread sarabjit
My ear structure is

EAR
|->Meta-inf
|---|->application.xml-(defines-the-two-ejb-and-war-modules)
|---|->jboss-app.xml-(empty)
|->my-war.war
|---|->WEB-INF
|--|->web.xml-(no-declaration-of-ejb-here)
|->myejb.jar
|---|->META-INF
|--|->jboss.xml-(which-is-basically-empty---just-usual-xml-markup)
|--|->ejb-jar.xml(which-is-empty-too)
|->all-shared-libraries



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

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


[jboss-user] [EJB 3.0] - Problem with EJB Injection in Servlet

2009-08-13 Thread sarabjit
Hey Guys,

I know there is another similar thread but i couldn't find an answer there. It 
might be because am really new to EJB so well, please bear with me.

I have a war and an ejb.jar which i package in an ear. I have 2 questions

1. Am not able to access the ejb from the servlet. Can someone tell me what all 
configurations are needed in which all descriptors.

2. I've put shared libraries directly under the ear but they are not visible to 
my war. How can i fix that?

My ear structure is

EAR
 |->Meta-inf
|->application.xml (defines the two ejb and war modules)
|->jboss-app.xml (empty)
 |->my war.war
|->WEB-INF
   |->web.xml (no declaration of ejb here)
 |->myejb.jar
|->META-INF
   |->jboss.xml (which is basically empty - just usual xml markup)
   |->ejb-jar.xml(which is empty too)
 |->all shared libraries


I have a servlet in my war

TestServelet.java

public class TestServlet extends HttpServlet {

@EJB
MySessionBean mybean;

@Override
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
system.out.println(mybean);
 }

}

I have an interface in myejb.jar

MySessionBean.java

public interface MySessionBean{
  void myFunc();
}


MySessionBeanImpl.java

public class MySessionBeanImpl Implements MySessionBean{
  public void myFunc(){
   system.out.println("Bean Called");
  }
}

Am using jboss 4.2.3. Servelet gives me an npe at system.out so the injection 
isn't working.

Any help on this would be really awesome.









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

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


[jboss-user] [Microcontainer] - Re: StructureDeployer that supports subdeployments

2009-08-13 Thread beve
Thanks for you help on this Ales!

Regards,

/Daniel

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JBoss crashed under peak load

2009-08-13 Thread panpur
Hello, I'm using JBoss 4.2.1 GA for my app. The app must regularly process & 
save a lot of data every 1 minute.

After running the app scheduler on a few minutes, I got this error:

  | javax.ejb.EJBTransactionRolledbackException: EntityManager must be access 
within a transaction
  | 

Some forum suggested to extend the transaction timeout on 
/conf/jboss-service.xml.

The advice worked great, the app runs fine for 1 day, but after that Jboss 
crashed leaving hs_err_pid.log file.

I've tried extending the timeout little by little to get the sweet spot with no 
success, I got either the first error or Jboss crash. 

Is there any suggestion to solve this problem ?
Thank's in advance.


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

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


[jboss-user] [JBoss jBPM] - Re: in timer

2009-08-13 Thread bestage
The previous problem has disappeared after I changed my jbpm.cgf.xml like this:


  | 
  | 
  | http://jbpm.org/xsd/cfg";>
  | 
  | 
  |   
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

But now I am getting another exception:

13:13:51,115 INF | [DefaultCommandService] exception while executing command 
org.jbpm.pvm.internal.cmd.signal...@c940c94
org.jbpm.api.JbpmException: text is null
at org.jbpm.pvm.internal.cal.Duration.(Duration.java:77)
at 
org.jbpm.pvm.internal.job.TimerImpl.setDueDateDescription(TimerImpl.java:78)
at 
org.jbpm.pvm.internal.model.ScopeInstanceImpl.createTimer(ScopeInstanceImpl.java:294)
at 
org.jbpm.pvm.internal.model.ScopeInstanceImpl.initializeTimers(ScopeInstanceImpl.java:




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

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


[jboss-user] [JBoss Portal] - Re: Search Portlet?

2009-08-13 Thread TomHombergs
Hi Alberto,

thanks for the reply. I guess the code you posted only searches the jboss-cms 
content, though. 

However, I now built a custom solution using Apache Lucene as search engine. 
Sadly, it's not a generic solution but rather specific for our purposes.

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

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


[jboss-user] [JBoss Messaging] - Re: JBoss Messaing EAR scope persistence configuration

2009-08-13 Thread gaohoward
JBoss 5.1.0GA comes with JBM 1.4.3.GA.
It uses a persistence manager to do persistence. It's configured at server side 
only. I don't think it's possible to make it based on clients (EAR).


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

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


[jboss-user] [JBoss jBPM] - Re: Accessing the parent/super execution from a subprocess e

2009-08-13 Thread flavio.donze
Thanks kukeltje, added a feature request:
https://jira.jboss.org/jira/browse/JBPM-2485

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

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


[jboss-user] [JBoss jBPM] - Re: using

2009-08-13 Thread bestage
:-))) 3rd attempt

"bestage" wrote : Has anyone used this tag in jBPM4?
  | 
  | I am getting this error:
  | 
  | 12:40:34,379 INF | [DeployerManager] errors during deployment of 
deployment(213):
  | error: couldn't interpret the dom model: no 'jbpm.duedatetime.format' in 
current environment : org.jbpm.api.JbpmException: no 'jbpm.duedatetime.format' 
in current environment
  | 
  | 
  | After adding the following line to jbpm.cfg.xml:
  | 
  | 
  | 
  | nothing changed.
  | 


  | 
  | ...
  | 
  | ...
  | 

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

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


[jboss-user] [JBoss jBPM] - jbpm4 and oracle application server integration

2009-08-13 Thread stup
Hi friends!
I am facing some problems during jbpm4 and OAS integration.
I am using default jbpm configs with one exception - i switched to JTA 
transaction interceptor to use oas bean-managed transactions. I configured 
hibernate to use my datasource also. 
My test process could not connect to database, so i started debugging jbpm and 
this is what i found:
at org.jbpm.pvm.internal.tx.jta.JtaTransaction User transaction is looked up 
using 
  public static final String JNDINAME_USERTRANSACTION_JBOSS_GLOBAL = 
"UserTransaction";
JNDI. But in OAS UserTransaction is bound to "java:comp/UserTransaction". 

Ive changed JNDINAME_USERTRANSACTION_JBOSS_GLOBAL to 
"java:comp/UserTransaction" and everything start working correctly. 

Now i am wondering if there is any way to do same stuff without changing your 
sources?

Any help will be appreciated

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

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


[jboss-user] [JBoss jBPM] - using "duedatetime" in timer

2009-08-13 Thread bestage
Has anyone used this tag in jBPM4?

I am getting this error:

12:40:34,379 INF | [DeployerManager] errors during deployment of 
deployment(213):
error: couldn't interpret the dom model: no 'jbpm.duedatetime.format' in 
current environment : org.jbpm.api.JbpmException: no 'jbpm.duedatetime.format' 
in current environment


After adding the following line to jbpm.cfg.xml:


...

...


nothing changed.


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

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


[jboss-user] [JBoss jBPM] - in timer

2009-08-13 Thread bestage

Has anyone used this tag in jBPM4?

I am getting this error:

12:40:34,379 INF | [DeployerManager] errors during deployment of 
deployment(213): 
  error: couldn't interpret the dom model: no 'jbpm.duedatetime.format' in 
current environment : org.jbpm.api.JbpmException: no 'jbpm.duedatetime.format' 
in current environment


After adding the following line to jbpm.cfg.xml:


...

...


nothing changed.


nothing changed:


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

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


[jboss-user] [JBoss Messaging] - Re: Messaging and transactions together

2009-08-13 Thread damian.sinczak
Changing ConnectionFactory to java:/JmsXA solved the problem. Thank you very 
much, you saved me a lot of time.

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

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


[jboss-user] [Microcontainer] - Re: Use of JBoss MC Pojo from in distributed env

2009-08-13 Thread manik.surt...@jboss.com
@mukulb wdyt?  :)

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

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


[jboss-user] [Microcontainer] - Re: Use of JBoss MC Pojo from in distributed env

2009-08-13 Thread alesj
"manik.surt...@jboss.com" wrote : We should document this on a wiki somewhere.
I guess we can ask mukulb if he's willing to do this once he's done? :-)

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

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


[jboss-user] [Microcontainer] - Re: Use of JBoss MC Pojo from in distributed env

2009-08-13 Thread manik.surt...@jboss.com
Nice and easy!  :-)  We should document this on a wiki somewhere.

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

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


  1   2   >