[JBoss Portal] - Re: New Portal User. So Many Options. Which to use?
by Antoine_h
1) read the reference guide documentation (that's the best advice...)
to get a nice general view of all things, even if you just read it quickly and will come back to it when doing the things
2) read the JSR-168 specification. it's not boring... and very usefull, whatever portal you use
3) database : you can take the jboss + portal package. Database configuration are not dependant from this. You can configure your database whenever you want.
4) start with : install the portal, make it run "as it is delivered". Follow the installation chapter in ref guide doc. This to make sure everything is setup properly and run. Play around with it. Then configure the datasource to the database you want (oracle). Switch to your new (Oracle) datasource before to create important data for your test (like users, etc...).
5) to set the database. Advice : set a different database/datasource for a) portal objects, b) user and roles, c) CMS.
This way, you have separate database (isolation) of things that are fully independant. And a enhanced architecture, for prod.
6) to set the datasources : set the hibernate configuration to different datasources, in folder : "...\deploy\jboss-portal.sar\conf\hibernate". example : change
<property name="connection.datasource">java:PortalDS</property>
|
to
<property name="connection.datasource">java:PortalUSERSDS</property>
|
7) add the datasource description (PortalUSERSDS) in the file portal-xxxxxx-ds.xml, in folder : "...\deploy\jboss-portal.sar\conf\hibernate".
You can make several "-ds.xml" files, for easiest modifications. Like "portal-users-and-roles-mysql-ds.xml".
8) change the name of the datasources in the modules that use them, in all the jboss-service.xml files.
Search for portalDS and set the datasource to the one needed. (ie : PortalUSERSDS in the user and role modules, PortalCMSDS in the CMS module, etc...). Look at it, you will understand what I mean.
9) the conf/hibernate files, "-ds.xml" files, and jboss-service.xml files, are the only three place to setup/change for databases/datasources.
10) To make a new datasource, just create the database (empty). Then Hibernate rebuild the default tables with default data if they are not there (when you first launch the jboss server again).
11) Windows or linux does not matter. My dev is with windows, my prod on linux or apples OSX
search for post in the forum, there are plenty of stuff to help you for your trial (I think I have posted on database configuration and separating the databases...). And post if needed...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037854#4037854
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037854
19 years, 1 month
[JBoss jBPM] - Re: console url changed to http://localhost:8080/jbpm-consol
by PJDev
Hi All,
I can't login jbpm-conlose from http://localhost:8080/jbpm-console.
I copy jbpm-console.war from jbpm-jpdl-3.2 GA to server\default\deploy and change hibernate config from HSQL to MySQL
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
| <property name="hibernate.connection.datasource">java:/jdbc/JbpmDS</property>
|
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
in MySQL i have one user(ernie) but loginpage is show 4 users
Username Password Roles
| ernie ernie participant, manager, administrator
| bert bert participant
| cookie monster cookie monster participant
| grover grover participant
on start up no error when i login console is show error
[UsersRolesLoginModule] Failed to load users/passwords/role files
| java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
| at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at javax.security.auth.login.LoginContext.invoke(Unknown Source)
| at javax.security.auth.login.LoginContext.access$000(Unknown Source)
| at javax.security.auth.login.LoginContext$4.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
| at javax.security.auth.login.LoginContext.login(Unknown Source)
| at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)
| at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)
| at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
I don't know, step to deploy is correct ?????
Any one have step by step to deploy jbpm-console.war, please advise.
Best Regard,
AkikoFukuoka
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037845#4037845
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037845
19 years, 1 month