cancel
Showing results for 
Search instead for 
Did you mean: 

Not sure if Virtualization works

chiazhi_tan
Champ in-the-making
Champ in-the-making
Hi
Having setup the Stanging Sandbox and start the virtual server, i still cannot Preview the website.. there's no virtualization of the website.
It gives "The page cannot be displayed" error message when it tries to launch this website:
http://alfrescowww.www--sandbox.127-0-0-1.ip.alfrescodemo.net:8180/

I thought my virtualization server is not started, but i can see the Tomcat default homepage at
http://alfrescowww.www--sandbox.127-0-0-1.ip.alfrescodemo.net:8080/

Please advise if virtualization server is started or not, or if some parts of my configurations are wrong.

thanks

p/s: have checked all JAVA_HOME and JRE_HOME path in the Environment Variables settings alright.
9 REPLIES 9

shoshin
Champ in-the-making
Champ in-the-making
Hi

I am getting the same error as well

Indeed here is the message in tomcat window
Jul 5, 2007 9:36:21 AM org.alfresco.catalina.host.AVMHostConfig updateAllVirtual
Webapps
INFO: AVMHostConfig update version: -1 path: JUMBO:/www/avm_webapps/ROOT
Jul 5, 2007 9:36:22 AM org.alfresco.catalina.host.AVMHostConfig updateAllVirtual
Webapps
INFO: AVMHostConfig update version: -1 path: JUMBO–admin:/www/avm_webapps/ROOT
Jul 5, 2007 9:36:22 AM org.alfresco.catalina.host.AVMHostConfig updateAllVirtual
Webapps
INFO: AVMHostConfig update version: -1 path: JUMBO–preview:/www/avm_webapps/ROO
T
Jul 5, 2007 9:36:23 AM org.alfresco.catalina.host.AVMHostConfig updateAllVirtual
Webapps
INFO: AVMHostConfig update version: -1 path: JUMBO–admin–preview:/www/avm_weba
pps/ROOT
Jul 5, 2007 9:39:16 AM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 18245
Jul 5, 2007 9:39:16 AM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.lang.IndexOutOfBoundsException
        at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
        at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:626)
        at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:583)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:691)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:895)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:685)
        at java.lang.Thread.run(Thread.java:595)
Jul 5, 2007 9:39:17 AM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 18245
Jul 5, 2007 9:39:17 AM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.lang.IndexOutOfBoundsException
        at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
        at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:626)
        at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:583)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:691)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:895)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:685)
        at java.lang.Thread.run(Thread.java:595)
Jul 5, 2007 9:39:28 AM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 18245
Jul 5, 2007 9:39:28 AM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.lang.IndexOutOfBoundsException
        at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
        at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:626)
        at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:583)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:691)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:895)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:685)
        at java.lang.Thread.run(Thread.java:595)

Can anybody throw some light on this

steve
Champ in-the-making
Champ in-the-making
Hi chiazhi.tan

Are you running Alfresco and the virtualisation server on the same machine that you are also using as the client machine?

Steve

chiazhi_tan
Champ in-the-making
Champ in-the-making
yes steve,
I'm using the alfresco server, virtualization server, and client browser (to preview), all running from the same server. However, I'm not sure if there's any implication if all these were installed on a VM machine.
(as in my collegue created a virtual environment on his windows2003 server box for me to do my testing)

In my etc/host file, I've the following:

127.0.0.1       localhost
192.168.1.72    FileServer

thanks
CZ

chiazhi_tan
Champ in-the-making
Champ in-the-making
btw, when i run the virtual_start.bat , it just quickly pop up a black dos window and closes. The black dos window doesn't stay on like the alfresco Tomcat DOS window when the alfresco server is started.
Does that mean the virtual_server wasnt started properly?

CZ

steve
Champ in-the-making
Champ in-the-making
Hi,

If you are running on Windows, the Virtual Server tomcat window should stay  like the Alfresco server one does.
If you run the virtual_start.bat command from an existing dos prompt you should see any messages from the virtual server printed out - and this should help you diagnose the problem.

The main culprit for it not working is because it can not find Java.

Hope this helps,

Steve

randomman
Champ in-the-making
Champ in-the-making
I've just had this problem setting it up on Windows. I found the solution was to set up the virtualisation server a Service, as per this page:

http://wiki.alfresco.com/wiki/Virtualization_Server_FAQ
What's the proper way to start the virtualisation server

I'll get back to bashing my head against the WSF now…  :wink:

chiazhi_tan
Champ in-the-making
Champ in-the-making
I've tried running the virtualization server as a service, and started it manually from Windows > Services console. Now it loads with an HTTP 500 error:

Also, I noticed that when i tried to run the c:\> bin\service.bat install alfrescoVirtualTomcat command, i get the error message "Failed installing 'alfrescoVirtualTomcat' service"

The HTTP status 500 error is as followed:
HTTP Status 500 -

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

type Exception report

message

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

exception

org.apache.jasper.JasperException: javax.servlet.jsp.el.ELException: An error occurred while evaluating function "ds:getConfiguration"
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:125)
   org.alfresco.filter.CacheControlFilter.doFilter(CacheControlFilter.java:187)


root cause

javax.servlet.ServletException: javax.servlet.jsp.el.ELException: An error occurred while evaluating function "ds:getConfiguration"
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:842)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
   org.apache.jsp.views.pages.index_jsp._jspService(index_jsp.java:141)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:125)
   org.alfresco.filter.CacheControlFilter.doFilter(CacheControlFilter.java:187)


root cause

org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/content/site-configuration/SC.xml has no content.
   org.alfresco.repo.avm.AVMStoreImpl.getInputStream(AVMStoreImpl.java:503)
   org.alfresco.repo.avm.AVMRepository.getInputStream(AVMRepository.java:916)
   org.alfresco.repo.avm.AVMServiceImpl.getFileInputStream(AVMServiceImpl.java:115)
   sun.reflect.GeneratedMethodAccessor347.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor.invoke(AVMSnapShotTriggeredIndexingMethodInterceptor.java:154)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:92)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   $Proxy5.getFileInputStream(Unknown Source)
   org.alfresco.repo.avm.AVMRemoteTransportService.getInputHandle(AVMRemoteTransportService.java:245)
   sun.reflect.GeneratedMethodAccessor346.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:70)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   $Proxy65.getInputHandle(Unknown Source)
   sun.reflect.GeneratedMethodAccessor526.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:181)
   org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)
   org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:76)
   org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExporter.java:72)
   org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvocationWrapper.java:62)
   sun.reflect.GeneratedMethodAccessor326.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
   sun.rmi.transport.Transport$1.run(Transport.java:153)
   java.security.AccessController.doPrivileged(Native Method)
   sun.rmi.transport.Transport.serviceCall(Transport.java:149)
   sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
   sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
   java.lang.Thread.run(Thread.java:595)
   org.springframework.remoting.support.RemoteInvocationUtils.fillInClientStackTraceIfPossible(RemoteInvocationUtils.java:44)
   org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:352)
   org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:259)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   $Proxy1.getInputHandle(Unknown Source)
   sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   org.alfresco.catalina.host.ReauthenticatingAdvice.invoke(ReauthenticatingAdvice.java:103)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   $Proxy1.getInputHandle(Unknown Source)
   org.alfresco.repo.remote.AVMRemoteImpl.getFileInputStream(AVMRemoteImpl.java:233)
   org.alfresco.web.forms.FormDataFunctions.parseXMLDocument(FormDataFunctions.java:70)
   org.alfresco.web.forms.ServletContextFormDataFunctionsAdapter.parseXMLDocument(ServletContextFormDataFunctionsAdapter.java:70)
   org.alfresco.web.content.ConfigurationBean.load(ConfigurationBean.java:59)
   org.alfresco.web.content.ConfigurationBean.getConfiguration(ConfigurationBean.java:91)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.apache.commons.el.FunctionInvocation.evaluate(FunctionInvocation.java:172)
   org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
   org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
   org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:929)
   org.apache.jsp.views.pages.index_jsp._jspx_meth_c_005fset_005f0(index_jsp.java:156)
   org.apache.jsp.views.pages.index_jsp._jspService(index_jsp.java:78)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:125)
   org.alfresco.filter.CacheControlFilter.doFilter(CacheControlFilter.java:187)


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

randomman
Champ in-the-making
Champ in-the-making
I think the virtualisation server is working now. That looks like the first problem I encountered when trying to get the WSF example working. The key part of your trace is the bit that says:

org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/content/site-configuration/SC.xml has no content. 

You need to create SC.xml from the site-configuration Web Form.

If you've not seen it already, this is very helpful: WSF installation guide

I found examples of SC.xml and NavigationTree.xml here

sharmsram
Champ in-the-making
Champ in-the-making
I am getting "Failed installing alfrescovirtualtomcat" service…
solution pls..

Thanks in advance.