[jBPM Development] - Problem in latest github master?
by Dan Seaver
Dan Seaver [https://community.jboss.org/people/dan.seaver] created the discussion
"Problem in latest github master?"
To view the discussion, visit: https://community.jboss.org/message/762384#762384
--------------------------------------------------------------
This is the first time I've tried to pull down all of the drools/jbpm projects from github and build. I'm following the instructions in droolsjbpm-build-bootstrap ( https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/READ... https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/READ...), but run into a NoSuchCompilerException Exception when building the jbpm-human-task-hornetq project.
I tried deleting the cloned jbpm repository and recloning, but I get the same error. Any thoughts as to why this is happening?
Here's the stack trace from the attempted build:
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jBPM :: Human Task - HornetQ 5.4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ jbpm-human-task-hornetq ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (default) @ jbpm-human-task-hornetq ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ jbpm-human-task-hornetq ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\dev-Drools\github\jbpm\jbpm-human-task\jbpm-human-task-hornetq\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ jbpm-human-task-hornetq ---
Sep 30, 2012 9:20:58 AM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: org.apache.maven.plugin.CompilerMojo
java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/manager/NoSuchCompilerException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245)
at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:98)
at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:629)
at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:831)
at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:758)
at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:255)
at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:204)
at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:954)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:987)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:950)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.compiler.manager.NoSuchCompilerException
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
... 54 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jBPM multiproject ................................. SUCCESS [1.219s]
[INFO] jBPM :: Flow ...................................... SUCCESS [24.905s]
[INFO] jBPM :: Flow Builder .............................. SUCCESS [11.843s]
[INFO] jBPM :: JPA Persistence ........................... SUCCESS [6.203s]
[INFO] jBPM :: BAM ....................................... SUCCESS [4.000s]
[INFO] jBPM :: BPMN2 ..................................... SUCCESS [11.703s]
[INFO] jBPM :: BPMN2 EMF Extension Model ................. SUCCESS [7.421s]
[INFO] jBPM :: WorkItems ................................. SUCCESS [7.047s]
[INFO] jBPM :: Human Task ................................ SUCCESS [0.125s]
[INFO] jBPM :: Human Task Services ....................... SUCCESS [11.140s]
[INFO] jBPM :: Human Tasks WorkItems ..................... SUCCESS [3.141s]
[INFO] jBPM :: Human Task Core ........................... SUCCESS [16.124s]
[INFO] jBPM :: Human Task - HornetQ ...................... FAILURE [0.359s]
[INFO] jBPM :: Human Task Apache Mina .................... SKIPPED
[INFO] jBPM :: Human Task JMS ............................ SKIPPED
[INFO] jBPM :: Human Task WAR ............................ SKIPPED
[INFO] jBPM GWT multiproject ............................. SKIPPED
[INFO] jBPM GWT Console Shared ........................... SKIPPED
[INFO] jBPM GWT Console Core ............................. SKIPPED
[INFO] jBPM GWT Console Forms ............................ SKIPPED
[INFO] jBPM GWT Console Graph Viewer ..................... SKIPPED
[INFO] jBPM GWT Console WAR .............................. SKIPPED
[INFO] jBPM Console server WAR ........................... SKIPPED
[INFO] jBPM GWT Tomcat integration ....................... SKIPPED
[INFO] jBPM :: Test ...................................... SKIPPED
[INFO] jBPM examples ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:49.496s
[INFO] Finished at: Sun Sep 30 09:20:58 PDT 2012
[INFO] Final Memory: 36M/247M
[INFO] ------------------------------------------------------------------------
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/762384#762384]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 8 months
[JBoss AS 7 Development] - EAP 6 - EJB Remote Authentication with custom realm not working
by Bob Smith
Bob Smith [https://community.jboss.org/people/mtt_] created the discussion
"EAP 6 - EJB Remote Authentication with custom realm not working"
To view the discussion, visit: https://community.jboss.org/message/761957#761957
--------------------------------------------------------------
Hi, I am porting an app from 4.2 to EAP 6. I am having trouble with remote ejb authentication. When authentication is not used, the app works fine. I have followed the examples in the links below and encountering the below errors. All relavent code is below. Please help!
https://community.jboss.org/docs/DOC-17602 https://community.jboss.org/wiki/JBossAS7RemoteEJBAuthenticationHowto
https://community.jboss.org/thread/195501?start=0&tstart=0 https://community.jboss.org/thread/195501?start=0&tstart=0
Client error log:
DEBUG [InitialContextFactory] Looking for jboss-naming-client.properties using classloader SystemClassLoader[112 modules]
DEBUG [InitialContextFactory] jboss.naming.client.endpoint.create.options. has the following options {}
DEBUG [InitialContextFactory] jboss.naming.client.remote.connectionprovider.create.options. has the following options {}
INFO [xnio] XNIO Version 3.0.4.GA-redhat-1
INFO [nio] XNIO NIO Implementation Version 3.0.4.GA-redhat-1
INFO [remoting] JBoss Remoting version 3.2.8.GA-redhat-1
DEBUG [nio] Started channel thread 'Remoting "config-based-naming-client-endpoint" read-1', selector sun.nio.ch.WindowsSelectorImpl@748ede42
DEBUG [nio] Started channel thread 'Remoting "config-based-naming-client-endpoint" write-1', selector sun.nio.ch.WindowsSelectorImpl@271d4c95
DEBUG [InitialContextFactory] jboss.naming.client.connect.options. has the following options {}
DEBUG [EJBClientPropertiesLoader] Looking for jboss-ejb-client.properties using classloader SystemClassLoader[112 modules]
DEBUG [EJBClientPropertiesLoader] Found jboss-ejb-client.properties using classloader SystemClassLoader[112 modules]
DEBUG [PropertiesBasedEJBClientConfiguration] endpoint.create.options. has the following options {}
DEBUG [PropertiesBasedEJBClientConfiguration] remote.connectionprovider.create.options. has the following options {org.xnio.Options.SSL_ENABLED=>false}
DEBUG [PropertiesBasedEJBClientConfiguration] remote.connection.default.connect.options. has the following options {org.xnio.Options.SASL_DISALLOWED_MECHANISMS=>[JBOSS-LOCAL-USER],org.xnio.Options.SASL_POLICY_NOPLAINTEXT=>false,org.xnio.Options.SASL_POLICY_NOANONYMOUS=>true}
DEBUG [PropertiesBasedEJBClientConfiguration] remote.connection.default.channel.options. has the following options {}
DEBUG [PropertiesBasedEJBClientConfiguration] Connection org.jboss.ejb.client.PropertiesBasedEJBClientConfiguration$RemotingConnectionConfigurationImpl@729bd2fb successfully created for connection named default
DEBUG [PropertiesBasedEJBClientConfiguration] No clusters configured in properties
DEBUG [nio] Started channel thread 'Remoting "client-endpoint" write-1', selector sun.nio.ch.WindowsSelectorImpl@7fef53b6
DEBUG [nio] Started channel thread 'Remoting "client-endpoint" read-1', selector sun.nio.ch.WindowsSelectorImpl@7fef53b6
ERROR [connection] JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
WARN [ConfigBasedEJBClientContextSelector] Could not register a EJB receiver for connection to localhost:4447
java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:91)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:119)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.<init>(ConfigBasedEJBClientContextSelector.java:76)
at org.jboss.ejb.client.EJBClientContext.<clinit>(EJBClientContext.java:77)
at org.jboss.naming.remote.client.ejb.RemoteNamingEjbClientContextSelector.setupSelector(RemoteNamingEjbClientContextSelector.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.naming.remote.client.InitialContextFactory.setupEjbContext(InitialContextFactory.java:448)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:145)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
....
Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:315)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:214)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
at org.xnio.nio.NioHandle.run(NioHandle.java:90)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)
at ...asynchronous invocation...(Unknown Source)
at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:270)
at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:386)
at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:151)
at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:132)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:117)
... 43 more
DEBUG [ConfigBasedEJBClientContextSelector] Registered a reconnect handler in EJB client context org.jboss.ejb.client.EJBClientContext@7ca25509 for remote://localhost:4447
DEBUG [ConfigBasedEJBClientContextSelector] Registered 0 remoting EJB receivers for EJB client context org.jboss.ejb.client.EJBClientContext@7ca25509
DEBUG [RemotingConnectionEJBReceiver] Channel Channel ID dd5d308c (outbound) of Remoting connection 2125ac0e to localhost/127.0.0.1:4447 opened for context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]} Waiting for version handshake message from server
INFO [remoting] EJBCLIENT000017: Received server version 1 and marshalling strategies [river]
INFO [remoting] EJBCLIENT000013: Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]} on channel Channel ID dd5d308c (outbound) of Remoting connection 2125ac0e to localhost/127.0.0.1:4447
DEBUG [RemotingConnectionEJBReceiver] Received module availability report for 10 modules
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='', moduleName='sqljdbc4', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='MyApplicationEAR', moduleName='My-web-TravelPlanners', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='MyApplicationEAR', moduleName='My-web-ShortUrl', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='MyApplicationEAR', moduleName='MyApplication-ejb', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='MyApplicationEAR', moduleName='My-web', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='MyApplicationEAR', moduleName='MyApplicationEAR', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='jsr-77', moduleName='jsr-77', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='MyApplicationEAR', moduleName='MyMy-web', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='MyApplicationEAR', moduleName='SDR-web-Tracking', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
DEBUG [RemotingConnectionEJBReceiver] Registering module EJBModuleIdentifier{appName='MyApplicationEAR', moduleName='SDR-web-Mobile', distinctName=''} availability for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@76aa5058, receiver=Remoting connection EJB receiver [connection=Remoting connection <6c1e5086>,channel=jboss.ejb,nodename=mxl1111p2c]}
WARN [ChannelAssociation] Unsupported message received with header 0xffffffff
DEBUG [EJBClientContext] org.jboss.ejb.client.RandomDeploymentNodeSelector@5e856a7a deployment node selector selected mxl1111p2c node for appname=MyApplicationEAR,modulename=MyApplication-ejb,distinctname=
jboss-ejb-client.properties:
remote.connection.default.callback.handler.class=net.My.client.util.jndi.EjbRemoteCallBackHandler
remote.connections=default
endpoint.name=client-endpoint
remote.connection.default.port = 4447
remote.connection.default.host=localhost
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=true
remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT=false
standalone-full-ha.xml:
<security-realm name="MyRealm">
<authentication>
<jaas name="MyDomain" />
</authentication>
</security-realm>
<security-domain name="MyDomain" cache-type="default">
<authentication>
<login-module code="Remoting" flag="optional">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
<module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
<module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
<module-option name="defaultUsersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
<module-option name="defaultRolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
</authentication>
</security-domain>
MyEAR/META-INF/jboss-app.xml:
<jboss-app>
<security-domain>MyDomain</security-domain>
</jboss-app>
ServiceLocator.java
private void createInitialContext(String username, char[] password)
throws IOException, LoginException, NamingException {
EjbRemoteCallBackHandler.setCredential("web.rep", "12345");
Hashtable jndiProps = new Hashtable<String, Object>();
jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
jndiProps.put("java.naming.factory.initial","org.jboss.naming.remote.client.InitialContextFactory");
jndiProps.put(InitialContext.PROVIDER_URL, "remote://localhost:4447");
// This is an important property to set if you want to do EJB invocations via the remote-naming project
jndiProps.put("jboss.naming.client.ejb.context", true);
// needed for remote access
jndiProps.put(Context.SECURITY_PRINCIPAL, "web.rep");
jndiProps.put(Context.SECURITY_CREDENTIALS, "12345");
ic = new InitialContext(jndiProps);
}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/761957#761957]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 8 months
[JBoss AS 7 Development] - Issue faced while migrating from JBOSS 4.2.2 to JBOSS 7.1
by Manish Kogundi
Manish Kogundi [https://community.jboss.org/people/mkogundi] created the discussion
"Issue faced while migrating from JBOSS 4.2.2 to JBOSS 7.1"
To view the discussion, visit: https://community.jboss.org/message/762092#762092
--------------------------------------------------------------
Hi
I am trying to migrate my application from old version of JBOSS to new version and when i try to deploy my code i get the below mentioned error.
However server starts and i am able to see the AS7 home page at localhost:9990.
The deployment fails.
Need help
10:15:26,677 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."iCas.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."iCas.war".PARSE: Failed to process phase PARSE of deployment "iCas.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_35]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_35]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_35]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018014: Failed to parse XML descriptor "/content/iCas.war/WEB-INF/web.xml" at [54,3]
at org.jboss.as.web.deployment.WebParsingDeploymentProcessor.deploy(WebParsingDeploymentProcessor.java:114)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
10:15:26,684 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "iCas.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"iCas.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"iCas.war\".PARSE: Failed to process phase PARSE of deployment \"iCas.war\""}}
10:15:26,709 INFO [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015877: Stopped deployment iCas.war in 25ms
10:15:26,710 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."iCas.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."iCas.war".PARSE: Failed to process phase PARSE of deployment "iCas.war"
10:15:26,711 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"iCas.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"iCas.war\".PARSE: Failed to process phase PARSE of deployment \"iCas.war\""}}}}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/762092#762092]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 8 months
[jBPM Development] - Thread Pool - JBPM 5.3
by edsdev
edsdev [https://community.jboss.org/people/edsdev] created the discussion
"Thread Pool - JBPM 5.3"
To view the discussion, visit: https://community.jboss.org/message/762047#762047
--------------------------------------------------------------
I am evaluating jbpm for workflow management in a simple java container. One of the issues I am having trouble researching is multi threading. When I kick off 100 workflows in my test script. They are all handled on one thread "pool-1-thread-1". I was assuming that I could set a max thread on the session or something similar to allow these workflows to be processed using multiple threads. Here are my attempts. Please help with any other feedback.
1. I read about jbpm.cfg.xml and including jbpm.jobexecutor.cfg.xml on a 4.x discussion. I cannot find this documentation for 5.3 and when I place these files in my classpath, It does not seem to be picked up. Can this be used?
jbpm.cfg.xml
jbpm.jobexecutor.cfg.xml
<process-engine-context>
<job-executor threads="4" idle="15000" idle-max="60000" lock-millis="3600000" />
</process-engine-context>
2. Create a StatefullKnowledgeSession for each thread that I want and distribute the processes on each session. - I am able to get this to work, just is a lot of management on my part and if you want the thread to end (usually in my test cases), you have to dispose of the session, but only after all jobs are finished executing, which is again a lot more code clutter that I would suspect you should not have to write.
Thanks for your time, Ed
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import xresource="jbpm.jobexecutor.cfg.xml" />
</jbpm-configuration>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/762047#762047]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 8 months
[JBoss AS 7 Development] - Unique Particle Attribution Error While trying to Validate jboss-ejb3.xml
by vam kris
vam kris [https://community.jboss.org/people/vamsi2012] created the discussion
"Unique Particle Attribution Error While trying to Validate jboss-ejb3.xml"
To view the discussion, visit: https://community.jboss.org/message/762032#762032
--------------------------------------------------------------
In the Jboss-ejb3.xml,its trying to reference http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd something like this.
In the above,We are referencing both Schemas http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee jboss-ejb3-2_0.xsd (namespace is http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee ) and http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd (namespace is http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee) under xsi:schemaLocation. jboss-ejb3-2_0.xsd inturn references jboss-ejb3-spec-2_0.xsd something like this
There is an ambiguity error or the Conflict that is Caused for the Element in both jboss-ejb3-spec-2_0.xsd and ejb-jar_3_1.xsd 1. jboss-ejb3-spec-2_0.xsd Defines the Defines the Element as below:
It references assembly-descriptor like this: 2. http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd Defines the Element something like this The assembly-descriptorType defines application-assembly information. The application-assembly information consists of the following parts: the definition of security roles, the definition of method permissions, the definition of transaction attributes for enterprise beans with container-managed transaction demarcation, the definition of interceptor bindings, a list of methods to be excluded from being invoked, and a list of exception types that should be treated as application exceptions. All the parts are optional in the sense that they are omitted if the lists represented by them are empty. Providing an assembly-descriptor in the deployment descriptor is optional for the ejb-jar or .war file producer. Because of the above Scenario when I am trying to Validate the XML ,I am getting the following error: cos-nonambig: " http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee":assembly-descriptor and " http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee":assembly-descriptor (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. Attached are the 3 XSD Files. Could anyone help me resolve this.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/762032#762032]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 8 months