[prev in list] [next in list] [prev in thread] [next in thread] 

List:       turbine-user
Subject:    RE: Problem launching in live enviroment
From:       "Ludwig Magnusson" <ludwig () greenstreetconsulting ! se>
Date:       2009-04-10 18:27:40
Message-ID: 001201c9ba0a$082ee4a0$188cade0$ () se
[Download RAW message or body]

I'm using maven here to build and I always do a clean here when I change a
dependency so no, there are no double libraries.
/Ludwig

-----Original Message-----
From: Tony Oslund [mailto:TonyO@prepare-enrich.com] 
Sent: den 10 april 2009 20:12
To: Turbine Users List
Subject: RE: Problem launching in live enviroment


You might try to check to see if you have multiple versions of your
class libraries within your class path.

I caused myself some problems at one point (when trying new versions of
a library) by creating an oldlib directory under lib, and first backing
the previous versions up there.

The class loader would almost randomly grab a class definition from
either the old or the new version.  It made for some interesting and
inconsistent testing results...

If 1.6.1 has a dependency and it is hitting an older version of a
dependant library then it could cause these results.

Tony Oslund

-----Original Message-----
From: Ludwig Magnusson [mailto:ludwig@greenstreetconsulting.se] 
Sent: Friday, April 10, 2009 12:48 PM
To: 'Turbine Users List'
Subject: RE: Problem launching in live enviroment

I fixed one of the errors.
I don't know what the problem really is but I used velocity 1.6.1 and
that
somehow caused the NullPointerException when turbine called
refreshGlobalTools. I noticed the release of velocity 1.6.2, tried using
it
but that did not work either. Velocity 1.5 workes fine however. 
The strange thing is that all versions work in my local environment.

The other error where tomcat is trying to access a non existing file is
still there but I'm leaving it for now. It does not seem to affect my
app,
but if anyone knows why it is looking for the file you are welcome to
tell
me.
That's all for now.
/Ludwig


-----Original Message-----
From: Sheldon Ross [mailto:ross_sheldon@hotmail.com] 
Sent: den 9 april 2009 18:03
To: user@turbine.apache.org
Subject: RE: Problem launching in live enviroment


I believe its  a file system/tomcat permission problem.  I used to get
an
those errors, and I think I solved it by just starting (and changing the
owner of) tomcat with the same user that owns all the webapps.  Assuming
your on Linux.

I'm not sure if that's a solution for you, but I think its more a Tomcat
permission thing than a Turbine thing.

Hope that helps or points you in the right direction.

Sheldon Ross



> From: ludwig@greenstreetconsulting.se
> To: user@turbine.apache.org
> Subject: Problem launching in live enviroment
> Date: Thu, 9 Apr 2009 16:34:50 +0200
> 
> Hello!
> 
> I have some problems with getting my app to run in the live
environment. I
> have packed the application in a war-file and placed it in the webapps
> folder where it self-extracts.
> 
> When I try to access the application from my browser, it prints out
this
> error:
> 
>  
> 
> Horrible Exception: java.lang.NullPointerException
>         at
>
org.apache.turbine.services.pull.TurbinePullService.refreshGlobalTools(T
urbi
> nePullService.java:671)
>         at
>
org.apache.turbine.services.pull.TurbinePullService.getGlobalContext(Tur
bine
> PullService.java:362)
>         at
>
org.apache.turbine.services.velocity.TurbineVelocityService.getContext(T
urbi
> neVelocityService.java:174)
>         at
>
org.apache.turbine.services.velocity.TurbineVelocityService.getContext(T
urbi
> neVelocityService.java:241)
>         at
>
org.apache.turbine.services.velocity.TurbineVelocity.getContext(TurbineV
eloc
> ity.java:122)
>         at
>
org.apache.turbine.modules.pages.VelocityPage.doBuildBeforeAction(Veloci
tyPa
> ge.java:50)
>         at
>
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:11
0)
>         at org.apache.turbine.modules.Page.build(Page.java:56)
>         at
org.apache.turbine.modules.PageLoader.exec(PageLoader.java:104)
>         at org.apache.turbine.Turbine.doGet(Turbine.java:796)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
> )
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>         at
>
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
>         at
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav
a:16
> 1)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
> FilterChain.java:245)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilt
erCh
> ain.java:177)
>         at
>
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC
hain
> .java:156)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
> ain.java:152)
>         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
> va:213)
>         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
> va:178)
>         at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base
> .java:432)
>         at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126
> )
>         at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105
> )
>         at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java
> :107)
>         at
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
>         at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
>         at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
>         at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>         at
>
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
697)
>         at
>
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.
java
> :889)
>         at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.jav
> a:684)
>         at java.lang.Thread.run(Thread.java:595)
> 
>  
> 
> If I check Catalina out I find this:
> 
>  
> 
> SEVERE: Error unregistering mbean 
> 
> java.security.AccessControlException: access denied
(java.io.FilePermission 
> 
>
/var/lib/tomcat5.5/instances/at2/webapps/myapp/WEB-INF/classes/logging.p
rope
> rties read)
> 
>             at
>
java.security.AccessControlContext.checkPermission(AccessControlContext.
java
> :264)
> 
>             at
>
java.security.AccessController.checkPermission(AccessController.java:427
)
> 
>             at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> 
>             at
java.lang.SecurityManager.checkRead(SecurityManager.java:871)
> 
>             at java.io.File.exists(File.java:700)
> 
>             at
>
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:827)
> 
>             at
>
org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:21
0)
> 
>             at
>
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:
293)
> 
>             at
>
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(Webapp
Clas
> sLoader.java:1887)
> 
>             at
>
org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoa
der.
> java:929)
> 
>             at
>
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogMa
nage
> r.java:298)
> 
>             at
>
org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:2
72)
> 
>             at java.security.AccessController.doPrivileged(Native
Method)
> 
>             at
>
org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo(ClassLoaderLogM
anag
> er.java:269)
> 
>             at
>
org.apache.juli.ClassLoaderLogManager.getLogger(ClassLoaderLogManager.ja
va:1
> 74)
> 
>             at java.util.logging.Logger.getLogger(Logger.java:255)
> 
>             at
> com.sun.jmx.trace.TraceManager.getLogger(TraceManager.java:166)
> 
>             at
> com.sun.jmx.trace.TraceManager.isSelected(TraceManager.java:197)
> 
>             at com.sun.jmx.trace.Trace.isSelected(Trace.java:84)
> 
>             at
>
com.sun.jmx.mbeanserver.RepositorySupport.isTraceOn(RepositorySupport.ja
va:8
> 7)
> 
>             at
>
com.sun.jmx.mbeanserver.RepositorySupport.contains(RepositorySupport.jav
a:47
> 2)
> 
>             at
>
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(Defau
ltMB
> eanServerInterceptor.java:556)
> 
>             at
>
com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:
619)
> 
>             at
>
org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:61
2)
> 
>             at
> org.apache.catalina.session.ManagerBase.destroy(ManagerBase.java:691)
> 
>             at
>
org.apache.catalina.session.StandardManager.stop(StandardManager.java:69
2)
> 
>             at
>
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4358)
> 
>             at
>
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:89
2)
> 
>             at
>
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:10
19)
> 
>             at
> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1187)
> 
>             at
>
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29
2)
> 
>             at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
ppor
> t.java:119)
> 
>             at
>
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:
> 1305)
> 
>             at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essC
> hildren(ContainerBase.java:1569)
> 
>             at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essC
> hildren(ContainerBase.java:1578)
> 
>             at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
Cont
> ainerBase.java:1558)
> 
>             at java.lang.Thread.run(Thread.java:595)
> 
> Apr 8, 2009 3:03:51 PM org.apache.commons.modeler.Registry
> unregisterComponent
> 
>  
> 
> The file that is supposed to be accessed did not exist from the
beginning
> and I find no reference for it. I did create one but there is no
change. I
> also find the classes folder t be a strange place to put it in.
> 
>  
> 
> I can also add that a print I performed in the init-method of one of
my
> services. When I try to access the app, the print is performed so in
some
> way my app is started.
> 
>  
> 
> Does anyone know what the problem is?
> 
> /Ludwig Magnusson
> 

_________________________________________________________________
Rediscover HotmailR: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover
_Mob
ile1_042009


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic