cancel
Showing results for 
Search instead for 
Did you mean: 

Virtualization in user sandboxes not working

mcmagi
Champ in-the-making
Champ in-the-making
In my web project, I am attempting to create content via the 'admin' user, yet when I go to preview that content before I publish it I get a tomcat 404 error.  It's not until the content gets published (via the workflow approval process) and is in the staging sandbox that it's viewable, and ONLY in the staging sandbox.  It's a bit of a toss-up whether I will be to view it in the user's sandbox after it's published.

Note this is only happening in my own web project.  When I follow the same process in the demo "alfrescowww" project, the virtualization is working fine.  Can adding and removing a web form several times cause the web project to get messed up somehow?

Out of curiosity, how does the virtualization work for user sandboxes?  In other words, how is it able to determine which user is being requested?  It looks like the virtualization server makes the determination from the hostname?

Thanks,
- Michael C. Maggio
16 REPLIES 16

jcox
Champ in-the-making
Champ in-the-making
Coordinating the passwords between client/server apps
is a common headache in all systems.  Even when you have a PKI
(e.g.:  ssh-style authorized_keys,  X.509 certs & revocation lists)
you still need to change/remove passwords & accounts.  I'm not sure
if there are any ways to solve this fundamental problem because
*every* system (including PKI-style systems) involve out-of-band
operations for bootstrapping  (e.g.:  root certs,  default passwords,
installing "authorized_keys" after hearing your friend's voice read
you several digits of it, etc.).


That said, there are things we could do in the GUI to point
out the ramifications of making changes to certain passwords.
Would it be enough if the GUI threw up a warning with a link
to instructions regarding the virt server's config file?

Ideally, what would you like to see here?

sacco
Champ in-the-making
Champ in-the-making
Coordinating the passwords between client/server apps
is a common headache in all systems.

Sure

That said, there are things we could do in the GUI to point
out the ramifications of making changes to certain passwords.
Would it be enough if the GUI threw up a warning with a link
to instructions regarding the virt server's config file?

I don't think I've been in Alfresco-land for long enough yet to say.
You do need to put this somewhere prominent though: took me a while to figure out why my virt server wouldn't start.

Just as a matter of interest, why does the virt-server need to be admin, or any fixed account?  Should it not be using the same credentials as the user I am or am pretending to be?

Suppose my website is actually being used for people to exchange confidential information (something like a simplified wrap of the web-client if you like), or that it is a collaborative effort but that access to various parts is restricted.  How would such a security model be affected by the fact that the virt server has full universal access?

jcox
Champ in-the-making
Champ in-the-making
Sacco,

I wanted to make you heard that we're planning on adding
security features to the 2.1 release that will make it very
unlikely you'll ever see this problem again.   Basically, the
Alfresco webapp will have a special bootstrapping account
devoted to the virtualization server, so if you change *this*
password witihin the alfresco webapp, the consequences
will be a lot more obvious.   Also, we'll be adding stuff that
will make it possible to require users to log in to the virt
server if they haven't already logged in to the alfresco webapp
(you'll still be able to send out links in email, but if a login
is required, the user will hit the login page, then get redirected
back to where the orignal link was pointing to).

gennaromonaco
Champ in-the-making
Champ in-the-making
mcmagi – did you ever solve the problem below? I'm running into that same issue when I start up my virtual server:

at org.alfresco.catalina.host.AVMHostConfig$AVMWebappDescriptor.setParentRepo(AVMHostConfig.java:1753)

Strange thing is that I had the virtual server fully up and running perfectly. Then when I added a new Web Project to the space I noticed it wasn't virtualizing correctly - so I stopped the virt server, stopped alfresco, started them both back up, alfresco was fine, and the virtual server gave me the following…


Apr 26, 2007 12:30:46 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Apr 26, 2007 12:30:46 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 931 ms
Apr 26, 2007 12:30:46 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 26, 2007 12:30:46 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Apr 26, 2007 12:30:46 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/data/virtual-tomcat/conf/alfresco-virtserver-context.xml]
Apr 26, 2007 12:30:46 PM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
Apr 26, 2007 12:30:46 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=25772535]: org.springframework.beans.factory.support.DefaultListableBeanFactory defini
ng beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,vi
rtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy
Apr 26, 2007 12:30:46 PM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 15 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=25772535]
Apr 26, 2007 12:30:46 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/data/virtual-tomcat/conf/alfresco-shared.properties]
Apr 26, 2007 12:30:46 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/data/virtual-tomcat/conf/alfresco-virtserver.properties]
Apr 26, 2007 12:30:46 PM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@e79839]
Apr 26, 2007 12:30:46 PM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@995a79]
Apr 26, 2007 12:30:46 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReaut
henticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlIn
fo]; root of BeanFactory hierarchy]
Apr 26, 2007 12:30:46 PM org.springframework.remoting.rmi.RmiClientInterceptor prepare
INFO: RMI stub [rmi://localhost:50500/authentication] is an RMI invoker
Apr 26, 2007 12:30:46 PM org.springframework.aop.framework.DefaultAopProxyFactory <clinit>
INFO: CGLIB2 not available: proxyTargetClass feature disabled
Apr 26, 2007 12:30:46 PM org.springframework.remoting.rmi.RmiClientInterceptor prepare
INFO: RMI stub [rmi://localhost:50500/avm] is an RMI invoker
Apr 26, 2007 12:30:46 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean getRegistry
INFO: Looking for RMI registry at port '50501'
Apr 26, 2007 12:30:46 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean getRegistry
WARNING: Could not detect RMI registry - creating new one
Apr 26, 2007 12:30:46 PM org.springframework.jmx.support.ConnectorServerFactoryBean afterPropertiesSet
INFO: JMX connector server started: javax.management.remote.rmi.RMIConnectorServer@1c8ef56
Reverse proxy binding: ^(.+)\.www–sandbox\.(?:version–v(-?[\d]+)\.)?.*$
Apr 26, 2007 12:30:47 PM org.alfresco.catalina.host.AVMHost start
INFO: XML validation disabled
Apr 26, 2007 12:30:47 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 26, 2007 12:30:47 PM org.alfresco.mbeans.VirtServerRegistrationThread registerVirtServer
INFO: Connected to remote Alfresco JMX Server
java.lang.reflect.InvocationTargetException
        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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.NullPointerException
        at org.alfresco.catalina.host.AVMHostConfig$AVMWebappDescriptor.setParentRepo(AVMHostConfig.java:2038)
        at org.alfresco.catalina.host.AVMHostConfig.deployAVMWebappsInDependencyOrder(AVMHostConfig.java:1014)
        at org.alfresco.catalina.host.AVMHostConfig.deployAllAVMwebappsInRepository(AVMHostConfig.java:403)
        at org.alfresco.catalina.host.AVMHostConfig.deployApps(AVMHostConfig.java:244)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at org.alfresco.catalina.host.AVMHostConfig.start(AVMHostConfig.java:196)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.alfresco.catalina.host.AVMHost.start(AVMHost.java:586)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        … 6 more

I also now get this error multiple times in my alfresco.log:


12:29:05,803 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 2.0.0 (build-23) schema 38 - Installed version 2.0.0 (build-185) schema 38
12:32:45,362 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:33:36,807 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:34:18,771 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:38:57,877 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:41:44,757 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:42:55,522 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:43:38,293 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:46:25,144 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:47:07,448 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi
12:51:13,650 ERROR [org.alfresco.mbeans.VirtServerRegistry] Could not connect to virtualization server: service:jmx:rmi://ignored/jndi/rmi://wcm.alloyinc.com:50501/alfresco/jmxrmi


—————

Hi Jon,

Strangely, I was eventually able to get the virtualization server to work properly in the 2.0 preview.  When I added other users to the project, I was able to virtualize their sandbox content.  Just the admin user gave me problems.  Perhaps that means the virtualization server was down when I invited the admin user to the project, but running (and JMX-notified) when I invited the other users?

Regardless, I now have another issue with the virtualization server.  It no longer responds to requests at all.  Instead, it hangs on startup with the following exception:


Feb 16, 2007 8:47:32 AM org.alfresco.mbeans.VirtServerRegistrationThread registerVirtServer
INFO: Connected to remote Alfresco JMX Server
java.lang.reflect.InvocationTargetException
        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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.NullPointerException
        at org.alfresco.catalina.host.AVMHostConfig$AVMWebappDescriptor.setParentRepo(AVMHostConfig.java:1753)
        at org.alfresco.catalina.host.AVMHostConfig.deployAVMWebappsInDependencyOrder(AVMHostConfig.java:794)
        at org.alfresco.catalina.host.AVMHostConfig.deployAllAVMwebappsInRepository(AVMHostConfig.java:373)
        at org.alfresco.catalina.host.AVMHostConfig.deployApps(AVMHostConfig.java:228)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at org.alfresco.catalina.host.AVMHostConfig.start(AVMHostConfig.java:180)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.alfresco.catalina.host.AVMHost.start(AVMHost.java:580)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        … 6 more

I thought maybe my web project was causing problems (seeing that deployApps was in the stack trace) and so I deleted it, but that didn't solve the problem.

jcox
Champ in-the-making
Champ in-the-making
If you didn't do an upgrade of the alfresco webapp,
nor change a password, then that that's very strange.

I'm guessing there's some detail that has been omitted from
the description of what's going on, so I'd like to get more info:

Stop the virt server, then edit
$VIRTUAL_TOMCAT_HOME/conf/logging.properties 
and make it  contain these lines:

org.alfresco.catalina.host.AVMHostConfig.level = FINE
org.apache.catalina.startup.HostConfig.level = FINE

Get rid of your old logfile,  restart the virt server,
then send me the complete log of what happens.

  - Jon

gennaromonaco
Champ in-the-making
Champ in-the-making
jcox -

I set both org.alfresco.catalina.host.AVMHostConfig.level = FINE and org.apache.catalina.startup.HostConfig.level = FINE in $VIRTUAL_TOMCAT_HOME/conf/logging.properties

Here is my catalina.out for the virt server…



Apr 26, 2007 2:46:32 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Apr 26, 2007 2:46:32 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 922 ms
Apr 26, 2007 2:46:32 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 26, 2007 2:46:32 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Apr 26, 2007 2:46:32 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/data/virtual-tomcat/conf/alfresco-virtserver-context.xml]
Apr 26, 2007 2:46:32 PM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
Apr 26, 2007 2:46:32 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=25772535]: org.springframework.beans.factory.support.DefaultListableBeanFactory defini
ng beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,vi
rtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy
Apr 26, 2007 2:46:32 PM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 15 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=25772535]
Apr 26, 2007 2:46:32 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/data/virtual-tomcat/conf/alfresco-shared.properties]
Apr 26, 2007 2:46:32 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/data/virtual-tomcat/conf/alfresco-virtserver.properties]
Apr 26, 2007 2:46:32 PM org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@111b910]
Apr 26, 2007 2:46:32 PM org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1687e7c]
Apr 26, 2007 2:46:32 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReaut
henticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlIn
fo]; root of BeanFactory hierarchy]
Apr 26, 2007 2:46:32 PM org.springframework.remoting.rmi.RmiClientInterceptor prepare
INFO: RMI stub [rmi://localhost:50500/authentication] is an RMI invoker
Apr 26, 2007 2:46:32 PM org.springframework.aop.framework.DefaultAopProxyFactory <clinit>
INFO: CGLIB2 not available: proxyTargetClass feature disabled
Apr 26, 2007 2:46:32 PM org.springframework.remoting.rmi.RmiClientInterceptor prepare
INFO: RMI stub [rmi://localhost:50500/avm] is an RMI invoker
Apr 26, 2007 2:46:33 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean getRegistry
INFO: Looking for RMI registry at port '50501'
Apr 26, 2007 2:46:33 PM org.springframework.remoting.rmi.RmiRegistryFactoryBean getRegistry
WARNING: Could not detect RMI registry - creating new one
Apr 26, 2007 2:46:33 PM org.springframework.jmx.support.ConnectorServerFactoryBean afterPropertiesSet
INFO: JMX connector server started: javax.management.remote.rmi.RMIConnectorServer@165b7e
Apr 26, 2007 2:46:34 PM org.alfresco.catalina.host.AVMHostConfig <init>
FINE: AVMHostConfig initial AVMHostRelativeAppBase: avm_webapps
Apr 26, 2007 2:46:34 PM org.alfresco.catalina.host.AVMHostConfig <init>
FINE: AVMHostConfig initial AVMHostRelativeAppBase_: avm_webapps
Reverse proxy binding: ^(.+)\.www–sandbox\.(?:version–v(-?[\d]+)\.)?.*$
Apr 26, 2007 2:46:34 PM org.alfresco.catalina.host.AVMHost start
INFO: XML validation disabled
Apr 26, 2007 2:46:34 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 26, 2007 2:46:34 PM org.apache.catalina.startup.HostConfig start
FINE: HostConfig: Processing START
Apr 26, 2007 2:46:34 PM org.alfresco.mbeans.VirtServerRegistrationThread registerVirtServer
INFO: Connected to remote Alfresco JMX Server
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: test
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:35 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: test
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:36 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:37 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:37 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:37 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: test
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:38 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: test
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: test
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: test
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:39 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:40 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:40 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:40 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:40 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:40 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:40 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:40 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
Apr 26, 2007 2:46:40 PM org.alfresco.catalina.host.AVMHostConfig deployAllAVMwebappsInRepository
FINE: AVMHostConfig webapp: ROOT
java.lang.reflect.InvocationTargetException
        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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.NullPointerException
        at org.alfresco.catalina.host.AVMHostConfig$AVMWebappDescriptor.setParentRepo(AVMHostConfig.java:2038)
        at org.alfresco.catalina.host.AVMHostConfig.deployAVMWebappsInDependencyOrder(AVMHostConfig.java:1014)
        at org.alfresco.catalina.host.AVMHostConfig.deployAllAVMwebappsInRepository(AVMHostConfig.java:403)
        at org.alfresco.catalina.host.AVMHostConfig.deployApps(AVMHostConfig.java:244)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at org.alfresco.catalina.host.AVMHostConfig.start(AVMHostConfig.java:196)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.alfresco.catalina.host.AVMHost.start(AVMHost.java:586)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        … 6 more


… and then none of my Web Project webapps virtualize any longer.

Also, here is my alfresco.log if that helps any …



14:44:23,538 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
14:44:25,981 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
14:44:33,523 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /data/alf_data
14:44:35,635 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
14:44:35,668 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
14:44:35,671 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
14:44:35,800 INFO  [org.alfresco.smb.protocol] CIFS server started
14:44:35,800 INFO  [org.alfresco.smb.protocol] FTP server started
14:44:35,803 INFO  [org.alfresco.smb.protocol] NFS server started
14:44:36,135 INFO  [org.alfresco.ftp.server] Starting server FTP …
14:44:36,136 INFO  [org.alfresco.smb.protocol] SMB Server 10.4.4.34 starting
14:44:36,136 INFO  [org.alfresco.smb.protocol] GUID 14f61640-70df-3e97-a506-49657613e8bb
14:44:36,136 INFO  [org.alfresco.smb.protocol] Using authenticator org.alfresco.filesys.server.auth.AlfrescoAuthenticator
14:44:36,136 INFO  [org.alfresco.smb.protocol] Server timezone America/New_York, offset from UTC = 5hrs
14:44:36,136 INFO  [org.alfresco.smb.protocol] Shares:
14:44:36,161 INFO  [org.alfresco.smb.protocol]  [Alfresco,DISK,,[Alfresco,workspace://SpacesStore/3f591655-e9ca-11db-beda-af8a6fa92bcc]] [Alfresco,workspace://SpacesStore/3f591655-e9ca-11db-beda-af8a6fa92bcc
]
14:44:36,161 INFO  [org.alfresco.smb.protocol]  [AVM,DISK,,[AVM,VirtualView]] [AVM,VirtualView]
14:44:36,162 INFO  [org.alfresco.smb.protocol] Add Share [IPC$,IPC$,,Admin,Hidden] : true
14:44:36,217 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_11-b03; maximum heap size 506.313MB
14:44:36,343 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Enterprise Network granted to Trial User limited to 30 days expiring Fri May 18 00:00:00 EDT 2007 (22 days remaining)
14:44:36,344 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 2.0.0 (build-23) schema 38 - Installed version 2.0.0 (build-185) schema 38


Thanks!
- Gennaro

If you didn't do an upgrade of the alfresco webapp,
nor change a password, then that that's very strange.

I'm guessing there's some detail that has been omitted from
the description of what's going on, so I'd like to get more info:

Stop the virt server, then edit
$VIRTUAL_TOMCAT_HOME/conf/logging.properties 
and make it  contain these lines:

org.alfresco.catalina.host.AVMHostConfig.level = FINE
org.apache.catalina.startup.HostConfig.level = FINE

Get rid of your old logfile,  restart the virt server,
then send me the complete log of what happens.

  - Jon

sbzoom
Champ in-the-making
Champ in-the-making
Hello.
I took this error from the $VIRTUAL_TOMCAT/logs/catalina.out:


at org.alfresco.catalina.host.AVMHostConfig$AVMWebappDescriptor.setParentRepo(AVMHostConfig.java:2038)

And went looking for it in SVN.


public class AVMHostConfig extends HostConfig
{

    …

    /**
    *  Used to do a topological sort of webapp dependency based
    *  on transparent overlay configuration.  Sorting is necessary
    *  because you can't change a classloader's parent classloader
    *  once it has been created.
    */
    class AVMWebappDescriptor
    {

        …

        void setParentRepo(
                HashMap<String, AVMWebappDescriptor> webapp_descriptors,
                String parent_store_name)
        {
            parent_store_name_ = parent_store_name;
            AVMWebappDescriptor parent_desc =
                webapp_descriptors.get( getParentContextPath() );
            parent_desc.addDependentWebappDescriptor( this );
        }

        String getParentContextPath()
        {
            if ( parent_store_name_ == null ) { return null; }

            if ( parent_context_path_ == null )
            {
                parent_context_path_ = 
                           AVMUrlValve.GetContextNameFromStoreName(
                                           version_,
                                           parent_store_name_,
                                           webapp_leafname_
                                       );
            }
            return parent_context_path_;
        }
    }

}


I hope I'm not the only one who can see what the problem is.  This code is just asking to throw a NullPointerException.

getParentContextPath()
returns a NULL if the
parent_store_name_
is NULL.  On the next line it attempts to do this:
parent_desc.addDependentWebappDescriptor( this );
without checking to see if it is NULL or not.

Is this something that can be fixed?  Or at least have a better error thrown?  Or is there something wrong with my store and I have to wipe out everything I have?  I really don't want to have to re-import all those projects again.

Is there any other way?


Thanks.