[JBoss Portal] - Re: No such user admin
by nvipas
"PeterJ" wrote : I assume that you configured a *-ds.xml file to connect to Oracle. What username and password did you provide in that file? Is it a valid Oracle username and password?
===============
Yes, valid username/password created using sqlplus with all necessary permissions -
1. CREATE SESSION
2. CREATE TABLE
3. CREATE SEQUENCE
===============
Here's the *-ds.xml file -
$ cat portal-oracle-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>PortalDS</jndi-name>
<connection-url>jdbc:oracle:thin:@lp-nvijayapuram:1521:sainaga</connecti
on-url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<user-name>jbossportal</user-name>
jbossportal
</local-tx-datasource>
================================================
Question: This particular line in setup/portal-oracle-ds.xml surprised me, as I not used to seeing un/pw between 'thin:' and '@host', so took off the 'un/pw' in my *-ds.xml file as listed above.
$ grep thin portal-oracle-ds.xml
<connection-url>jdbc:oracle:thin:SYSTEM/password@localhost:1521:orcl</connec
tion-url>
================
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192305#4192305
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192305
17 years, 5 months
[Tomcat, HTTPD, Servlets & JSP] - Re: PHP on TOMCAT
by bmurphy77@mindspring.com
"jfrederic.clere(a)jboss.com" wrote : JBoss propose a php extension via a php-servlet see http://www.jboss.org/jbossweb/modules/php/index.html
| postgresql is included in the bundle.
Thanks jfrederic, I found this page earlier and have been using it as a guideline.
The pre compiled libphp5servlet files i come across on my treks complain about various missing resources so Ive been compiling using the buildphp.sh on my machine to get the right file.
For me, buildphp.sh executes fine right up to the end, right to where its going to create libphp5servlet and then....skips it...dohh and double dohh or dratt and double dratt as the saying goes.
Maybe its automagic on later jbossAS, the 5 series, I see that ruby has just come out with a similiar integration, http://oddthesis.org/theses/jboss-rails.
Anyway, I've got my base functionality working by executing the php as cgi but integrating my php tighter with jboss, is still ongoing, im hoping that one of these days i will get by that last unsatisfied link error and explode into a world of tightly coupled php and jsp.
Do i really want to though ?? Are there security concerns with PHP ?
Also, it looks like you might have some competition in the AS space.
Plus, you can follow this discussion in stereo at you can also follow this discussion in stereo at http://www.techienuggets.com/Comments?tx=60362
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192303#4192303
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192303
17 years, 5 months
[JBoss Portal] - Re: No such user admin
by nvipas
======================
Environment is -
======================
- jboss-portal-2.7.0.GA running on a Windows Vista box
- Oracle10g running on another box (Windows XP)
- jvm is jdk1.6.0_07
- ojdbc6.jar is in server/default/lib
- portal-oracle-ds.xml is only *-ds.xml file in server/default/deploy dir
- Necessary restart done to ensure all database objects are created in database
- Few missing sequences created in database after spotting some ORA- issues during initial start attempts
- This 'No such user admin' is tha last missing puzzle
======================
>From server.log -
======================
2008-11-25 14:38:31,111 DEBUG [org.jboss.mx.loading.ClassLoaderUtils] Multiple class loaders found for pkg:
2008-11-25 14:38:31,111 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/C:/jboss-portal-2.7.0.GA/server/default/deploy/jmx-console.war/WEB-INF/
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/jboss-portal-2.7.0.GA/server/default/deploy/jmx-console.war/WEB-INF/
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/jboss-portal-2.7.0.GA/server/default/deploy/jmx-console.war/WEB-INF/
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying WEB-INF
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/jboss-portal-2.7.0.GA/server/default/deploy/jmx-console.war/WEB-INF/
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: WEB-INF
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-portal-2.7.0.GA/server/default/deploy/jmx-console.war/WEB-INF/
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: jmx-console.war
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-portal-2.7.0.GA/server/default/deploy/jmx-console.war/
2008-11-25 14:38:31,126 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-portal-2.7.0.GA/server/default/deploy/jmx-console.war/ -> file:/C:/jboss-portal-2.7.0.GA/server/default/deploy/jmx-console.war/WEB-INF/web.xml
2008-11-25 14:38:31,126 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
State: CONFIGURED
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
ObjectName: portal:service=CMS
State: FAILED
Reason: java.lang.RuntimeException: org.jboss.portal.identity.NoSuchUserException: No such user No such user admin
I Depend On:
jboss.jca:service=DataSourceBinding,name=PortalDS
portal:service=JAASLoginModule
portal:service=Hibernate,type=CMS
cms.pm.cache:service=TreeCache
portal:service=AuthorizationManager,type=cms
portal:service=InterceptorStackFactory,type=Cms
Depends On Me:
portal:commandFactory=CMSObject
ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
State: CONFIGURED
I Depend On:
jboss.mq:service=Invoker
jboss.web:service=WebServer
ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
State: CONFIGURED
I Depend On:
jboss:service=TransactionManager
jboss.jca:service=DataSourceBinding,name=DefaultDS
ObjectName: jboss.mq:service=StateManager
State: CONFIGURED
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager
ObjectName: jboss.mq:service=DestinationManager
State: CONFIGURED
I Depend On:
jboss.mq:service=MessageCache
jboss.mq:service=PersistenceManager
jboss.mq:service=StateManager
jboss.mq:service=ThreadPool
jboss:service=Naming
Depends On Me:
jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq.destination:service=Queue,name=A
jboss.mq.destination:service=Queue,name=B
jboss.mq.destination:service=Queue,name=C
jboss.mq.destination:service=Queue,name=D
jboss.mq.destination:service=Queue,name=ex
jboss.mq:service=SecurityManager
jboss.mq.destination:service=Queue,name=DLQ
ObjectName: jboss.mq:service=PersistenceManager
State: CONFIGURED
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager
ObjectName: jboss.mq.destination:service=Topic,name=testTopic
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
ObjectName: jboss.mq.destination:service=Queue,name=testQueue
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
ObjectName: jboss.mq.destination:service=Queue,name=A
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
ObjectName: jboss.mq.destination:service=Queue,name=B
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
ObjectName: jboss.mq.destination:service=Queue,name=C
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
ObjectName: jboss.mq.destination:service=Queue,name=D
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
ObjectName: jboss.mq.destination:service=Queue,name=ex
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
ObjectName: jboss.mq:service=Invoker
State: CONFIGURED
I Depend On:
jboss.mq:service=TracingInterceptor
jboss:service=Naming
Depends On Me:
jboss.mq:service=InvocationLayer,type=HTTP
jboss.mq:service=InvocationLayer,type=JVM
jboss.mq:service=InvocationLayer,type=UIL2
ObjectName: jboss.mq:service=TracingInterceptor
State: CONFIGURED
I Depend On:
jboss.mq:service=SecurityManager
Depends On Me:
jboss.mq:service=Invoker
ObjectName: jboss.mq:service=SecurityManager
State: CONFIGURED
I Depend On:
jboss.security:service=JaasSecurityManager
jboss.mq:service=DestinationManager
Depends On Me:
jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq:service=TracingInterceptor
jboss.mq.destination:service=Queue,name=DLQ
ObjectName: jboss.mq.destination:service=Queue,name=DLQ
State: CONFIGURED
I Depend On:
jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
ObjectName: jboss.mq:service=InvocationLayer,type=JVM
State: CONFIGURED
I Depend On:
jboss.mq:service=Invoker
ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
State: CONFIGURED
I Depend On:
jboss.mq:service=Invoker
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: portal:service=CMS
State: FAILED
Reason: java.lang.RuntimeException: org.jboss.portal.identity.NoSuchUserException: No such user No such user admin
I Depend On:
jboss.jca:service=DataSourceBinding,name=PortalDS
portal:service=JAASLoginModule
portal:service=Hibernate,type=CMS
cms.pm.cache:service=TreeCache
portal:service=AuthorizationManager,type=cms
portal:service=InterceptorStackFactory,type=Cms
Depends On Me:
portal:commandFactory=CMSObject
ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
State: NOTYETINSTALLED
Depends On Me:
jboss.ejb:service=EJBTimerService,persistencePolicy=database
jboss:service=KeyGeneratorFactory,type=HiLo
jboss.mq:service=StateManager
jboss.mq:service=PersistenceManager
2008-11-25 14:38:31,408 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified that enabled: true
2008-11-25 14:38:31,408 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL
2008-11-25 14:38:31,408 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.deployment:type=DeploymentScanner,flavor=URL dependent components: []
2008-11-25 14:38:31,564 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: jboss-service.xml
2008-11-25 14:38:31,564 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-portal-2.7.0.GA/server/default/conf/jboss-service.xml
2008-11-25 14:38:31,580 DEBUG [org.jboss.web.tomcat.service.JBossWeb] Saw org.jboss.system.server.started notification, starting connectors
2008-11-25 14:38:31,626 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Tue, 25 Nov 2008 14:38:31>
2008-11-25 14:38:31,626 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
2008-11-25 14:38:31,626 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2008-11-25 14:38:31,626 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2008-11-25 14:38:31,642 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-ws-nvijayapuram%2F10.10.24.128-8080
2008-11-25 14:38:31,689 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-ws-nvijayapuram%2F10.10.24.128-8009
2008-11-25 14:38:31,736 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 1m:29s:846ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192302#4192302
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192302
17 years, 5 months
[JBoss jBPM] - Re: ProcessState getSubProcessDefinition is null
by don_t
I tried without late binding and got same result. However after looking at the unit test it seems the subprocess need to be set explicitly and the superprocess then persisted in the database.
| // create the subprocess
| ProcessDefinition subProcessDefinition = new ProcessDefinition("sub");
| // store the subprocess in the database
| graphSession.saveProcessDefinition(subProcessDefinition);
|
| // create the super process
| ProcessDefinition superProcessDefinition = ProcessDefinition.parseXmlString(
| "<process-definition name='super'>" +
| " <process-state name='subprocess' />" +
| "</process-definition>");
| // resolve the reference to the subprocess
| ProcessState processState = (ProcessState) superProcessDefinition.getNode("subprocess");
| processState.setSubProcessDefinition(subProcessDefinition);
|
| // save and reload the superprocess
| superProcessDefinition = saveAndReload(superProcessDefinition);
|
| processState = (ProcessState) superProcessDefinition.getNode("subprocess");
| assertNotNull("sub", processState.getSubProcessDefinition().getName());
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192292#4192292
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192292
17 years, 5 months