cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Service

tomekdomek
Champ in-the-making
Champ in-the-making
Hello i cant get Alfresco runnin as a WindowsService

06.12.2006 16:09:12 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
06.12.2006 16:09:12 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1734 ms
06.12.2006 16:09:13 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
06.12.2006 16:09:13 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
06.12.2006 16:09:13 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
06.12.2006 16:09:13 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
06.12.2006 16:09:13 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\webserver\runtime\tomcat\conf\Catalina\localhost\admin.xml
06.12.2006 16:09:13 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
06.12.2006 16:09:13 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
06.12.2006 16:09:14 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
06.12.2006 16:09:15 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\webserver\runtime\tomcat\conf\Catalina\localhost\balancer.xml
06.12.2006 16:09:15 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\webserver\runtime\tomcat\conf\Catalina\localhost\manager.xml
06.12.2006 16:09:15 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /alfresco from URL file:c:/webserver/runtime/tomcat/webapps/alfresco
16:09:47,154 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
16:09:47,201 INFO  [admin.patch.PatchExecuter] No patches were required.
16:09:47,420 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_10-b03; maximum heap size 508,063MB
16:09:47,420 INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 1.4.0 (build-105) schema 21 - Installed version 1.4.0 (build-105) schema 21
06.12.2006 16:09:49 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /exist from URL file:c:/webserver/runtime/tomcat/webapps/exist
06.12.2006 16:09:49 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /cocoon from URL file:C:\webserver\runtime\tomcat\webapps\cocoon
trying to register database
trying to register database
- setting defaults to DC
- setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1 ]
- Could not find value for key jcs.default.elementattributes
- Could not instantiate eAttr named 'jcs.default.elementattributes', using defaults.
- setting defaultElementAttributes to [ IS_LATERAL = false, IS_SPOOL = false, IS_REMOTE = false, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1165417792919, LastAccessTime = 1165417792919, getTimeToLiveSeconds() = -1000, createTime = 1165417792919 ]
- Could not find value for key jcs.system.groupIdCache.elementattributes
- Could not instantiate eAttr named 'jcs.system.groupIdCache.elementattributes', using defaults.
- initialized LRUMemoryCache for groupIdCache
- Constructed cache with name: groupIdCache
- Cache file root directory: C:\webserver\runtime\tomcat\work\Catalina\localhost\cocoon\cocoon-files\cache-dir
- Could not find value for key jcs.region.main.elementattributes
- Could not instantiate eAttr named 'jcs.region.main.elementattributes', using defaults.
- initialized LRUMemoryCache for main
- Constructed cache with name: main
- Cache file root directory: C:\webserver\runtime\tomcat\work\Catalina\localhost\cocoon\cocoon-files\cache-dir
- loading keys for org.apache.jcs.auxiliary.disk.indexed.IndexedDisk@18caee7
- Loaded keys from: main, key count: 1
- Reset maxKeySize to: '500000'
- RAMJobStore initialized.
- Quartz scheduler 'Cocoon
- Quartz scheduler version: 1.3.2
- Scheduler Cocoon_$_Wed_Dec_06_16:09:53_CET_2006 started.
WARN! *** JMS block is installed but jms client library not found. ***
- For the jms block to work you must install and start a JMS server and place the client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in cocoon.xconf but is not bundled with Cocoon.
server.properties not found, using command line or default properties
Opening database: C:\webserver\runtime\tomcat\webapps\cocoon\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Wed Dec 06 16:10:03 CET 2006 Listening for connections …
06.12.2006 16:10:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /intrafind from URL file:C:\webserver\runtime\tomcat\webapps\intrafind
06.12.2006 16:10:07 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Skipped installing application listeners due to previous error(s)
06.12.2006 16:10:07 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
06.12.2006 16:10:07 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context startup failed due to previous errors
06.12.2006 16:10:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /java from URL file:C:\webserver\runtime\tomcat\webapps\java
06.12.2006 16:10:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:C:\webserver\runtime\tomcat\webapps\jsp-examples
06.12.2006 16:10:07 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL file:C:\webserver\runtime\tomcat\webapps\ROOT
06.12.2006 16:10:08 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL file:C:\webserver\runtime\tomcat\webapps\servlets-examples
06.12.2006 16:10:08 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file:C:\webserver\runtime\tomcat\webapps\tomcat-docs
06.12.2006 16:10:08 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:C:\webserver\runtime\tomcat\webapps\webdav
06.12.2006 16:10:08 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
06.12.2006 16:10:09 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
06.12.2006 16:10:09 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/985  config=c:\webserver\runtime\tomcat\conf\jk2.properties
06.12.2006 16:10:09 org.apache.catalina.startup.Catalina start
INFO: Server startup in 57044 ms
16:10:09,903 WARN  [app.servlet.AuthenticationHelper] Unable to login as Guest: Access Denied.  You do not have the appropriate permissions to perform this operation.
16:10:42,761 WARN  [node.index.FullIndexRecoveryComponent]
————————————————————————————–


Can someone please help me and why is HSQL getting started?

Iam runnin Alfresco 1.4 on a Windows Server 2003 and i installed it from the war.zip.tomcat was already on!

I casnt login when i start that as a service but when i start the startup from the console it works and i guess there is a problem with the database.

Thank you
7 REPLIES 7

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Did you hardcode the path to the content store (dir.root) ?

–Aladdin

burner
Champ in-the-making
Champ in-the-making
Hmm could you please explain to me what you mean because i dont really understand that sentence.

Thank you!

The only thing i did i just put the war file in the webapps folder and then put the mysql connector wher eit shopuld go and that it!:-)

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

If you do not configure Alfresco with a full path name to where you want the content store and indexes to be stored on your file system, what happens is that Alfresco will use a relative path.

If the latter is true, then starting Alfresco from command line and later as a service would create the content store in two locations on disk. The first content store you create will be the coherent one. The second one won't and will cause an error similar to the one you are seeing.

To alleviate this problem you should override the default property (dir.root) with a full path to a location on disk to store the content store and indexes.

This article has instructions on how to do that:
http://wiki.alfresco.com/wiki/Repository_Configuration

Hope this helps,

–Aladdin

burner
Champ in-the-making
Champ in-the-making
Thanx a lot youre right it solved the problem!!!!
That was important for me:-)

burner
Champ in-the-making
Champ in-the-making
Hello i have a new Problem which i dont understand:
HTTP Status 500 -

——————————————————————————–

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.faces.FacesException: Unable to compile class for JSP
   org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
   org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
   org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
   org.alfresco.web.app.servlet.AdminAuthenticationFilter.doFilter(AdminAuthenticationFilter.java:72)
   org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:73)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs

And that in the logs

—– Root Cause —–
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
   at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
   at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:476)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
   at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:396)
   at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:225)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
   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(Unknown Source)

This only happens when i start it as a windows service but when i start it from the console it works fine?

JAVA_HOME is set!!!

Does the Windows Service look somewher else?

richmitc
Champ in-the-making
Champ in-the-making
Did you set all the options as per this post?

http://forums.alfresco.com/viewtopic.php?t=4071&highlight=tomcat5w

CLASSPATH is among them.

Just a suggestion as to where to check…

burner
Champ in-the-making
Champ in-the-making
Yes i did but the problem is another one but i solved it!When you use Tomcat as a service it has its own JAVA_HOME and i guess my was pointing at JRE and not on JDK but anyways there are two ways of fixing this problem what i read.
One way is to chnage it in the windows registry where to point at(i didnt  do that) and the other one is to copy tools.jar into TOMCATHOME/COMMon/LIB and it works fine!
Smiley Very Happy