PDA

View Full Version : tomcat 5.0 installation errors



raoprash
03-17-2006, 07:43 AM
Hi,

I followed the installation procedures outlined in advanced installation guide for tomcat 5.0

However, i am not able to get the server deployed. when i try to run ./start-pentaho.sh i got this error. Any suggestions.

Thanks,
raoprash

****************************************************[prao@s83713 pentaho-demo]$ ./start-pentaho.sh
./start_hypersonic.sh: line 10: java: command not found
: command not found
: command not found
: command not found:
: command not found:
: command not found:
: command not found:
: command not found:
./run.conf: line 52: syntax error: unexpected end of file
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /opt/pentaho-demo/jboss

JAVA: /usr/local/bizgres/jdk1.5.0_05/bin/java

JAVA_OPTS: -server -Dprogram.name=run.sh

CLASSPATH: /opt/pentaho-demo/jboss/bin/run.jar:/usr/local/bizgres/jdk1.5.0_05/lib/tools.jar

=========================================================================

log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /opt/pentaho-demo/jboss/server/default/log/boot.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
at org.apache.log4j.LogManager.(LogManager.java:113)
at org.jboss.logging.Log4jLoggerPlugin.init(Unknown Source)
at org.jboss.logging.Logger.getDelegatePlugin(Unknown Source)
at org.jboss.logging.Logger.(Unknown Source)
at org.jboss.logging.Logger.getLogger(Unknown Source)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.(Unknown Source)
at org.jboss.system.server.ServerImpl.doInit(Unknown Source)
at org.jboss.system.server.ServerImpl.init(Unknown Source)
at org.jboss.Main.boot(Unknown Source)
at org.jboss.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
09:20:07,660 INFO [Server] Starting JBoss (MX MicroKernel)...
09:20:07,661 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200507141550)
09:20:07,662 INFO [Server] Home Dir: /opt/pentaho-demo/jboss
09:20:07,662 INFO [Server] Home URL: file:/opt/pentaho-demo/jboss/
09:20:07,662 INFO [Server] Library URL: file:/opt/pentaho-demo/jboss/lib/
09:20:07,662 INFO [Server] Patch URL: null
09:20:07,663 INFO [Server] Server Name: default
09:20:07,663 INFO [Server] Server Home Dir: /opt/pentaho-demo/jboss/server/default
09:20:07,663 INFO [Server] Server Home URL: file:/opt/pentaho-demo/jboss/server/default/
09:20:07,663 INFO [Server] Server Data Dir: /opt/pentaho-demo/jboss/server/default/data
09:20:07,663 INFO [Server] Server Temp Dir: /opt/pentaho-demo/jboss/server/default/tmp
09:20:07,663 INFO [Server] Server Config URL: file:/opt/pentaho-demo/jboss/server/default/conf/
09:20:07,664 INFO [Server] Server Library URL: file:/opt/pentaho-demo/jboss/server/default/lib/
09:20:07,664 INFO [Server] Root Deployment Filename: jboss-service.xml
09:20:07,666 INFO [Server] Starting General Purpose Architecture (GPA)...
09:20:08,117 INFO [ServerInfo] Java version: 1.5.0_05,Sun Microsystems Inc.
09:20:08,117 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_05-b05,Sun Microsystems Inc.
09:20:08,117 INFO [ServerInfo] OS-System: Linux 2.6.9-34.EL,i386
09:20:09,074 INFO [Server] Core system initialized
09:20:09,456 ERROR [MainDeployer] Could not make local copy for file:/opt/pentaho-demo/jboss/server/default/conf/jboss-service.xml
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1345)
at java.io.File.createTempFile(File.java:1434)
at org.jboss.deployment.MainDeployer.makeLocalCopy(Unknown Source)
at org.jboss.deployment.MainDeployer.init(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
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(Unknown Source)
at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(Unknown Source)
at org.jboss.mx.server.Invocation.invoke(Unknown Source)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(Unknown Source)
at org.jboss.mx.server.Invocation.invoke(Unknown Source)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(Unknown Source)
at org.jboss.system.server.ServerImpl.start(Unknown Source)
at org.jboss.Main.boot(Unknown Source)
at org.jboss.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
09:20:09,465 ERROR [MainDeployer] Could not initialise deployment: file:/opt/pentaho-demo/jboss/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(Unknown Source)
at org.jboss.deployment.SARDeployer.init(Unknown Source)
at org.jboss.deployment.MainDeployer.init(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
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(Unknown Source)
at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(Unknown Source)
at org.jboss.mx.server.Invocation.invoke(Unknown Source)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(Unknown Source)
at org.jboss.mx.server.Invocation.invoke(Unknown Source)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(Unknown Source)
at org.jboss.system.server.ServerImpl.start(Unknown Source)
at org.jboss.Main.boot(Unknown Source)
at org.jboss.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(Unknown Source)
at org.jboss.deployment.SARDeployer.init(Unknown Source)
at org.jboss.deployment.MainDeployer.init(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
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(Unknown Source)
at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(Unknown Source)
at org.jboss.mx.server.Invocation.invoke(Unknown Source)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(Unknown Source)
at org.jboss.mx.server.Invocation.invoke(Unknown Source)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(Unknown Source)
at org.jboss.system.server.ServerImpl.start(Unknown Source)
at org.jboss.Main.boot(Unknown Source)
at org.jboss.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
09:20:09,477 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
Shutting down
09:20:09,481 INFO [Server] Shutdown complete
Shutdown complete
Halting VM

raoprash
03-20-2006, 10:06 AM
anyone have any suggestions on what i should try. I am a newbie to tomcat 5.0 Tried to follow the instructions in deploying pentaho to tomcat (copied the pentaho.war to webapps/pentaho directory) But the application would not start using tomcat manager.

Also, not sure why jboss errors are showing up since i am trying to use tomcat to serve the application.

thanks,
raoprash

jnicho02
03-21-2006, 08:13 AM
Looks like you're starting the pre-packaged demo (it has a JBoss server built-in) with ./start-pentaho.sh

The demo may be easier to use if you just want to see Pentaho working as it contains everything (including an app server) that you need to run.

If you definitely want to use Tomcat and have followed the instructions in the advanced install document, dropping a war file into tomcat's webapp directory and starting tomcat should have caused the war to be unpacked. i.e. a new 'pentaho' directory should have appeared under webapps.

Next, you must have placed 'pentaho-solutions' somewhere that Tomcat can see (as detailed in the document), set up the jndi references and started the hypersonic db.

The setup for tomcat isn't too complicated, but does involve more manual steps than the standard demo package.

raoprash
03-21-2006, 09:52 AM
thanks for the info. when i run hypersonic db on linux i got this error

[prao@s83713 data]$ ./start_hypersonic.sh
[Server@1befab0]: [Thread[main,5,main]]: checkRunning(false) entered
[Server@1befab0]: [Thread[main,5,main]]: checkRunning(false) exited
[Server@1befab0]: Startup sequence initiated from main() method
[Server@1befab0]: Loaded properties from [/opt/pentaho-demo/data/server.properties]
[Server@1befab0]: Initiating startup sequence...
[Server@1befab0]: [Thread[HSQLDB Server @1befab0,5,main]]: run()/openServerSocket():
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket.(ServerSocket.java:185)
at java.net.ServerSocket.(ServerSocket.java:97)
at org.hsqldb.HsqlSocketFactory.createServerSocket(Unknown Source)
at org.hsqldb.Server.openServerSocket(Unknown Source)
at org.hsqldb.Server.run(Unknown Source)
at org.hsqldb.Server.access$000(Unknown Source)
at org.hsqldb.Server$ServerThread.run(Unknown Source)
[Server@1befab0]: Initiating shutdown sequence...
[Server@1befab0]: Shutdown sequence completed in 9 ms.
[Server@1befab0]: 2006-03-21 11:37:42.723 SHUTDOWN : System.exit() is called next
[prao@s83713 data]$

but, i am able to view some reports. The "Slice and Dice" (says...this page cannot be accessed directly. it must be linked to from other pages) and some PDF reports do no work...while others show up fine.

i changed the solution-path, but one thing i am not sure about is the jndi mapping. i changed all "localhost" to the ip address of the server.

any suggestions,
raoprash

raoprash
03-22-2006, 08:11 AM
I am able to get some reports to work and others give me an error. I can't really see a pattern in why some reports work and some dont. When i look at catalina.out file to view the error for one report that doesnt work this is what i got....

09:57:03,703 ERROR [JasperReportsComponent] 8145b411-b9bc-11da-9b6e-8577a7834a60:COMPONENT:context-31356055-1143043023492:jasper-reports-test-1.xaction Base.ERROR_0002 - Component execution failed
java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_03/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
at java.awt.Toolkit.(Toolkit.java:1458)
at java.awt.Color.(Color.java:250)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:20)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:779)
at java.lang.reflect.Field.getFieldAccessor(Field.java:760)
at java.lang.reflect.Field.getLong(Field.java:398)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1478)
at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)
at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.(ObjectStreamClass.java:333)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:453)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.ArrayList.readObject(ArrayList.java:547)
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:324)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:62)
at org.pentaho.jasper.JasperReportsComponent.executeAction(Unknown Source)
at org.pentaho.component.ComponentBase.execute(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeComponent(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeAction(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeLoop(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeSequence(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeSequence(Unknown Source)
at org.pentaho.solution.SolutionEngine.execute(Unknown Source)
at org.pentaho.services.BaseRequestHandler.handleActionRequest(Unknown Source)
at org.pentaho.ui.servlet.ViewAction.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
09:57:03,711 ERROR [JasperReportsComponent] Error end:
09:57:03,711 ERROR [RuntimeContext] 8145b411-b9bc-11da-9b6e-8577a7834a60:RUNTIME:context-31356055-1143043023492:jasper-reports-test-1.xaction RuntimeContext.ERROR_0012 - ActionDefinition for org.pentaho.jasper.JasperReportsComponent did not execute successfully
09:57:03,711 ERROR [SolutionEngine] 8145b411-b9bc-11da-9b6e-8577a7834a60:SOLUTION-ENGINE: jasper-reports-test-1.xactionSolutionEngine.ERROR_0007 - Action sequence execution failed


i would really appreciate if someone could help me out with getting me up and running in all the reports. i would like to demo the capabilites to the client and start working with pentaho with a postgresql backend.

thanks,
prashant