Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

JBoss console output at runntime

Avatar

Former Community Member
Hello all,



When I start my JBoss installation with run.bat -c all,

I get errors, so its unable to run JBoss with a console for developing purpose.



(JBoss runs as a service without errors, Froms ES renders a PDF)



Does anyone knows how to start JBoss with console successfully?



I think when JBoss is started as a service there will be sent parameters as well, maybe run as a specific user?



(When I start the MySQL database manually, I got a mess of exceptions in JBoss, there was something about an Adobe user in database; maybe its necessary to run JBoss manually with the parameter that specifies the Adobe user from the database?)



I appreciate your help.



Best regards,

Gabriele Iannetti
8 Replies

Avatar

Former Community Member
Here is the exception when the database is started manually, before starting JBoss with ES:<br /><br />===============================================================================<br />.<br /> JBoss Bootstrap Environment<br />.<br /> JBOSS_HOME: C:\Adobe\LiveCycle8\jboss\bin\\..<br />.<br /> JAVA: C:\Programme\Java\jdk1.5.0_13\bin\java<br />.<br /> JAVA_OPTS: -Dadobeidp.serverName=server1 -DCASBOOTPROPS=bam.properties -Dcom.<br />celequest.bootstrap.envpropname=CASBOOTPROPS -Dfile.encoding=utf8 -Djava.net.pre<br />ferIPv4Stack=true -Dprogram.name=run.bat -Djava.security.manager -Djava.security<br />.policy=../server/all/conf/server.policy -Djava.security.debug=failure -XX:MaxPe<br />rmSize=256m -Xms256m -Xmx1024m<br />.<br /> CLASSPATH: C:\Programme\Java\jdk1.5.0_13\lib\tools.jar;C:\Adobe\LiveCycle8\jbo<br />ss\bin\\run.jar<br />.<br />===============================================================================<br />.<br />Failed to boot JBoss:<br />java.security.AccessControlException: access denied (java.util.PropertyPermissio<br />n * read,write)<br /> at java.security.AccessControlContext.checkPermission(AccessControlConte<br />xt.java:264)<br /> at java.security.AccessController.checkPermission(AccessController.java:<br />427)<br /> at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)<br /> at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:<br />1252)<br /> at java.lang.System.getProperties(System.java:561)<br /> at org.jboss.Main.<init>(Main.java:71)<br /> at org.jboss.Main$1.run(Main.java:437)<br /> at java.lang.Thread.run(Thread.java:595)

Avatar

Level 9
It looks like you are starting JBoss as a user who does not have sufficient privileges.



You can debug easily using BareTail (google it).

Just point it at the JBoss log file in server/all/log/



Howard

http://www.avoka.com

Avatar

Former Community Member
I have administrator rights on my machine.

Don't know why JBoss with console starts with errors then anyway.



But with the previous version of Live Cycle 7.2 I could run JBoss without any overhead to do... it was just fine.



So, do you can run JBoss with LC_ES in console mode without doing any other stuff like set parameters when starting JBoss in console?

That would be helpful to know for me.



Thanks very much in advance.



Best regards,

Gabriele Iannetti

Avatar

Level 9
Yes, we do this.

We also run MySQL as a console app successfully.

You'll need a batch file something like:

c:\Adobe\LiveCycle\mysql\bin\mysqld-max-nt.exe --defaults-file=c:\Adobe\LiveCycle\mysql\my.ini --console



Howard

http://www.avoka.com

Avatar

Former Community Member
Thanks for your reply,

now I think its time to go directly to the error I get starting JBoss.



First I start the DB with the my.ini file as parameter,

then i start the JBoss (as a servive or by console anyway)



and I get nasty errors while JBoss is starting.



Something about the adobe@localhost user associated with the mysql db.

(I know "access denied", but I have admin rights)



There is also an Adobe account in the database.



I really dont get it,

how may I resolve that error?



Thank you very much in advance.



(The posted error repeats often)

Here the JBoss output:



2007-10-18 09:11:43,445 ERROR [org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin] Cannot create timer table

org.jboss.deployment.DeploymentException: Error while checking if table aleady exists TIMERS; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'adobe'@'localhost' (using password: YES)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'adobe'@'localhost' (using password: YES))))

at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.tableExists(SQLUtil.java:1002)

at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists(GeneralPurposeDatabasePersistencePlugin.java:92)

at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:96)

at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)

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:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)

at $Proxy0.start(Unknown Source)

at org.jboss.system.ServiceController.start(ServiceController.java:428)

at org.jboss.system.ServiceController.start(ServiceController.java:446)

at org.jboss.system.ServiceController.start(ServiceController.java:446)

at org.jboss.system.ServiceController.start(ServiceController.java:446)

at org.jboss.system.ServiceController.start(ServiceController.java:446)

at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

at $Proxy4.start(Unknown Source)

at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)

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:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)

at $Proxy38.start(Unknown Source)

at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:185)

at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)

at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

at $Proxy9.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)

at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)

at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)

at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)

at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)

at $Proxy0.start(Unknown Source)

at org.jboss.system.ServiceController.start(ServiceController.java:428)

at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

at $Proxy4.start(Unknown Source)

at org.jboss.deployment.SARDeployer.start(SARDeployer.java

Avatar

Former Community Member
After I reinstalled LiveCycle ES I typed in the pwd for the adobe/root user on the data base.



I guess,

that if JBoss for ALC_ES starts, its default user is adobe,

but my error is, that I did not entered a pwd for that user within the JBoss is started.



So the exception returns

Access denied for user 'adobe'@'localhost' (using password: YES))



Maybe I have to set unsing password to no,

but that would be an unsafe way.



So I have to find a way how to run JBoss by calling the run.bat with successful parameter to dont get the



"Access denied for user 'adobe'@'localhost' (using password: YES))"

error.



Does anyone know how?



Best regards,

Gabriele

Avatar

Level 9
The password the JBoss uses is stored in the jboss/server/all/deploy/adobe-ds.xml file.

Check that the password there is the same as the password you use when successfully logging into MYSQL.

The same password is used regardless of whether you start JBoss as a service or from the command line.

Howard

http://www.avoka.com

Avatar

Former Community Member
Thanks Treisman,



I got it after looking in all xml files into the deploy directory.

Now it works fine.



Thank you very much.



Have a nice day.



Gabriele