[Design of JBoss Identity] - Re: JBoss Identity IDM 1.0.0.Alpha4 released
by thomas.heute@jboss.com
Congrats !
We should also test with Sybase and DB2.
Just to check i'm trying a snippet here. If i understand the API correctly it means that it will return the 10 first groups associated to a user, sorted by group name.
IdentitySession session = // obtained previously
Query groupQuery = session.createGroupQuery();
groupQuery.addRelatedUser("admin");
groupQuery.sort(SortOrder.ASCENDING);
groupQuery.page(0,10);
Collection roles = groupQuery.execute();
The really cool thing is that this can be easily extended.
The not so cool thing, the javadoc is missing, so I'm not sure I really understand the differences between all add*User* methods ;)
Also the sorting here doesn't give much value. What would be neat is to be able to associate "localizable display names" for groups and be able to sort according to those for a specific language. Here I think that I missed to use "sortAttributeName(String name)" shouldn't it be within the sort method sort(attributeName, order) ?
Also to be picky sorting should be locale dependent (java/text/Collator.html) . I understand that for database storage it will ultimately depend on the collation set on tables and would not change from a call to the other (without hitting performances really bad I mean). It could be different for other implementations (Have no clue about LDAP, I think you can't even sort but I might be wrong).
Also I don't understand why the new AS5 integration is using JMX instead of plain MC. Hint ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226925#4226925
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226925
16 years, 8 months
[Design of JBoss jBPM] - samplePU
by tom.baeyens@jboss.com
when installing a clean jboss and then jbpm into jboss, i get this exception:
[start-jboss] 12:08:10,562 INFO [STDOUT] [Server@5c6e55]: Database [index=0, id=1, db=file:C:\Software\jboss-5.0.0.GA\server\default\data\hypersonic\jbpm4DB, alias=] opened sucessfully in 172 ms.
| [start-jboss] 12:08:10,562 INFO [STDOUT] [Server@5c6e55]: Startup sequence completed in 234 ms.
| [start-jboss] 12:08:10,984 INFO [STDOUT] [Server@5c6e55]: 2009-04-27 12:08:10.984 HSQLDB server 1.8.0 is online
| [start-jboss] 12:08:10,984 INFO [STDOUT] [Server@5c6e55]: To close normally, connect and execute SHUTDOWN SQL
| [start-jboss] 12:08:10,984 INFO [STDOUT] [Server@5c6e55]: From command line, use [Ctrl]+[C] to abort abruptly
| [start-jboss] 12:08:11,531 INFO [TomcatDeployment] deploy, ctxPath=/gwt-console-server, vfsUrl=jbpm/gwt-console-server.war
| [start-jboss] 12:08:11,906 ERROR [STDERR] 62 [main] WARN org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - The use of javax.ws.rs.core.Application is deprecated, please use javax.ws.rs.Application as a context-param instead
| [start-jboss] 12:08:11,922 ERROR [STDERR] 78 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider DataSourceProvider
| [start-jboss] 12:08:11,922 ERROR [STDERR] 78 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider DefaultTextPlain
| [start-jboss] 12:08:11,922 ERROR [STDERR] 78 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.providers.StringTextStar
| [start-jboss] 12:08:11,937 ERROR [STDERR] 93 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.providers.InputStreamProvider
| [start-jboss] 12:08:11,937 ERROR [STDERR] 93 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.providers.ByteArrayProvider
| [start-jboss] 12:08:11,937 ERROR [STDERR] 93 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider
| [start-jboss] 12:08:11,937 ERROR [STDERR] 93 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider
| [start-jboss] 12:08:11,937 ERROR [STDERR] 93 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.providers.StreamingOutputProvider
| [start-jboss] 12:08:11,953 ERROR [STDERR] 109 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.providers.IIOImageProvider
| [start-jboss] 12:08:12,687 ERROR [STDERR] 843 [main] INFO org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - Deploying javax.ws.rs.core.Application: class org.jboss.bpm.console.server.ConsoleServerApplication
| [start-jboss] 12:08:12,687 ERROR [STDERR] 843 [main] INFO org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - Adding singleton resource org.jboss.bpm.console.server.TestFacade from Application javax.ws.rs.core.Application
| [start-jboss] 12:08:12,719 ERROR [STDERR] 875 [main] INFO org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - Adding singleton resource org.jboss.bpm.console.server.TaskListFacade from Application javax.ws.rs.core.Application
| [start-jboss] 12:08:12,734 ERROR [STDERR] 890 [main] INFO org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - Adding singleton resource org.jboss.bpm.console.server.UserMgmtFacade from Application javax.ws.rs.core.Application
| [start-jboss] 12:08:12,750 ERROR [STDERR] 906 [main] INFO org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - Adding singleton resource org.jboss.bpm.console.server.TaskMgmtFacade from Application javax.ws.rs.core.Application
| [start-jboss] 12:08:12,750 ERROR [STDERR] 906 [main] INFO org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - Adding singleton resource org.jboss.bpm.console.server.ProcessMgmtFacade from Application javax.ws.rs.core.Application
| [start-jboss] 12:08:12,812 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#samplePU
| [start-jboss] 12:08:12,812 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#samplePU state=Create
| [start-jboss] java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: samplePU
| [start-jboss] at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:124)
| [start-jboss] at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:285)
| [start-jboss] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [start-jboss] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [start-jboss] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [start-jboss] at java.lang.reflect.Method.invoke(Method.java:585)
| [start-jboss] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
| [start-jboss] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
| [start-jboss] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| [start-jboss] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
| [start-jboss] at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
| [start-jboss] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
| [start-jboss] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
| [start-jboss] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
| [start-jboss] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
| [start-jboss] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
| [start-jboss] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| [start-jboss] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| [start-jboss] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| [start-jboss] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
| [start-jboss] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
| [start-jboss] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
| [start-jboss] at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| [start-jboss] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| [start-jboss] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| [start-jboss] at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| [start-jboss] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| [start-jboss] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
| [start-jboss] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| [start-jboss] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| [start-jboss] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| [start-jboss] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| [start-jboss] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
| [start-jboss] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
| [start-jboss] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
| [start-jboss] at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
| [start-jboss] at org.jboss.Main.boot(Main.java:209)
| [start-jboss] at org.jboss.Main$1.run(Main.java:547)
| [start-jboss] at java.lang.Thread.run(Thread.java:595)
| [start-jboss] 12:08:17,453 INFO [TomcatDeployment] deploy, ctxPath=/gwt-console, vfsUrl=jbpm/gwt-console.war
| [start-jboss] 12:08:18,047 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
| [start-jboss] 12:08:18,265 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
| [start-jboss]
| [start-jboss] *** CONTEXTS IN ERROR: Name -> Error
| [start-jboss]
| [start-jboss] persistence.unit:unitName=#samplePU -> java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: samplePU
| [start-jboss]
| [start-jboss]
| [start-jboss] 12:08:18,281 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
| [start-jboss] 12:08:18,328 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
| [start-jboss] 12:08:18,344 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 1m:14s:344ms
|
anyone have a clue where that could come from ?
i have no clue how that samplePU persistence unit gets in there. i searched the jbpm codebase for samplePU and found nothing.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226897#4226897
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226897
16 years, 8 months
[Design of Messaging on JBoss (Messaging/JBoss)] - AS 5 Profiles bindings
by jmesnil
I'm currently refactoring the creation of JBoss AS 5 profiles for JBoss Messaging.
I'm not sure our current default profile ("jbm2_default" based on JBoss AS 5 "default") is correct.
In AS/config/default/jbm-configuration, the port used by Netty/TCP is set to ${jbm.remoting.netty.port}. I guess it should be configured using JBoss AS 5 service binding manager.
However, when I look into Branch_5_x, JBM2 port are only declared on server/src/etc/conf/all/bootstrap/bindings.xml. There is no such bindings.xml file for the default profile.
When I build JBoss AS 5, its default profile does not contains JBM2 ports definition in its bindings.xml.
Where does the default profile's bindings.xml come from in the source?
Should we also define JBM2 ports in it or should jbm2_default profiles's port be hard-coded in our configs?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226888#4226888
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226888
16 years, 8 months