You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by zze-VANDEPUTTE Brice RD/BIZZ/GRE <br...@rd.francetelecom.com> on 2004/07/21 17:27:26 UTC

[jetspeed] [distrib] first use pb

Hi,

    I want to try jetspeed and i've got the following problems 

   1) For jetspeed 1.5 WAR file distribution 
        after deployment when i attempt to access "/jetspeed" context i
got this exception :

	Horrible Exception: java.lang.LinkageError: loader constraints
violated when linking org/apache/velocity/context/InternalContextAdapter
	(...cf.trace1...)

	I ve got the same LinkageError problem with the 1.4 War file...


   2) For jetspeed 1.5 Source distribution
	  After install of maven v1.0 and after update of
"%JETSPEED_HOME%/project.properties" 
	  to add "maven.proxy.host" and "maven.proxy.port" properties
	  (because i m behind a firewall)
	  i attempt to compile the war :
		  the first part of jar download was a success
		  but during torque goal i got this message :
===
torque:om-generate:
    [torque-data-model] Using classpath
    [torque-data-model] Generating to file
C:\java\plateforme\jetspeed-1.5\src\java\report.org.apache.commons.grant
.GrantProject@df0438.om.generation

BUILD FAILED
File...... C:\Documents and
Settings\Brice\.maven\cache\maven-torque-plugin-3.2\plugin.jelly
Element... torque-data-model
Line...... 228
Column.... 49
org.apache.torque.engine.EngineException: Connection timed out: connect
Total time: 31 seconds ===
	(...cf. trace2 end of this mail..)





		what's wrong ? could you help me ?
		
		i didn't found a way to solve this pb..

Regards

Brice 
 

Env. used :
OS  : WindowsXP ver2002 SP1
java j2sdk build 1.4.2_04-b05
Apache Tomcat/4.1.3




=====================[trace1]==========================
Horrible Exception: java.lang.LinkageError: loader constraints violated
when linking org/apache/velocity/context/InternalContextAdapter class at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.java:198)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:153)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:271)
at org.apache.velocity.Template.merge(Template.java:296)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
at
org.apache.turbine.services.velocity.TurbineVelocityService.decodeReques
t(TurbineVelocityService.java:494)
at
org.apache.turbine.services.velocity.TurbineVelocityService.handleReques
t(TurbineVelocityService.java:336)
at
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(Turbi
neVelocity.java:143)
at
org.apache.turbine.modules.layouts.VelocityDirectLayout.doBuild(Velocity
DirectLayout.java:106)
at org.apache.turbine.modules.Layout.build(Layout.java:91)
at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:16
9)
at org.apache.turbine.modules.Page.build(Page.java:90)
at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
at org.apache.turbine.Turbine.doGet(Turbine.java:563)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDis
patcher.java:116)
at
org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(App
licationDispatcher.java:131)
at java.security.AccessController.doPrivileged(Native Method) at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:348)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:4
30)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:42)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:210)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFi
lterChain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC
hain.java:176)
at java.security.AccessController.doPrivileged(Native Method) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:242
2)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:163)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
8)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
4)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)
    




=====================[trace2]==========================
C:\java\plateforme\jetspeed-1.5>maven war
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

Tag library requested that is not present: 'maven' in plugin: 'null'
build:start:

war:init:

java:prepare-filesystem:
    [mkdir] Created dir: C:\java\plateforme\jetspeed-1.5\target\classes
Tag library requested that is not present: 'maven' in plugin: 'null'

java:compile:
prepare.apis:
    [echo] Generating Jetspeed XML bindings
    [java] -- Suppressing non fatal warnings.

torque:init:

torque:om-check:

torque:om:
torque:init:
Overriding previous definition of reference to torque-classpath

torque:om-generate:
    [torque-data-model] Using classpath
    [torque-data-model] Generating to file
C:\java\plateforme\jetspeed-1.5\src\j
ava\report.org.apache.commons.grant.GrantProject@df0438.om.generation

BUILD FAILED
File...... C:\Documents and
Settings\Brice\.maven\cache\maven-torque-plugin-3.
2\plugin.jelly
Element... torque-data-model
Line...... 228
Column.... 49
org.apache.torque.engine.EngineException: Connection timed out: connect
Total time: 31 seconds Finished at: Wed Jul 21 17:01:51 CEST 2004

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


Re: [jetspeed] [distrib] first use pb

Posted by "Eric L. Wittle" <er...@wittle.net>.
One possibility, suggested by the connection timeout, is that because 
you're behind a firewall, code executing in your Java VM can't connect 
to get DTDs to validate XML files. If you haven't set up your VM to be 
able to make java.net connections through a proxy, then try that.

-Eric

zze-VANDEPUTTE Brice RD/BIZZ/GRE wrote:

>Hi,
>
>    I want to try jetspeed and i've got the following problems 
>
>   1) For jetspeed 1.5 WAR file distribution 
>        after deployment when i attempt to access "/jetspeed" context i
>got this exception :
>
>	Horrible Exception: java.lang.LinkageError: loader constraints
>violated when linking org/apache/velocity/context/InternalContextAdapter
>	(...cf.trace1...)
>
>	I ve got the same LinkageError problem with the 1.4 War file...
>
>
>   2) For jetspeed 1.5 Source distribution
>	  After install of maven v1.0 and after update of
>"%JETSPEED_HOME%/project.properties" 
>	  to add "maven.proxy.host" and "maven.proxy.port" properties
>	  (because i m behind a firewall)
>	  i attempt to compile the war :
>		  the first part of jar download was a success
>		  but during torque goal i got this message :
>===
>torque:om-generate:
>    [torque-data-model] Using classpath
>    [torque-data-model] Generating to file
>C:\java\plateforme\jetspeed-1.5\src\java\report.org.apache.commons.grant
>.GrantProject@df0438.om.generation
>
>BUILD FAILED
>File...... C:\Documents and
>Settings\Brice\.maven\cache\maven-torque-plugin-3.2\plugin.jelly
>Element... torque-data-model
>Line...... 228
>Column.... 49
>org.apache.torque.engine.EngineException: Connection timed out: connect
>Total time: 31 seconds ===
>	(...cf. trace2 end of this mail..)
>
>
>
>
>
>		what's wrong ? could you help me ?
>		
>		i didn't found a way to solve this pb..
>
>Regards
>
>Brice 
> 
>
>Env. used :
>OS  : WindowsXP ver2002 SP1
>java j2sdk build 1.4.2_04-b05
>Apache Tomcat/4.1.3
>
>
>
>
>=====================[trace1]==========================
>Horrible Exception: java.lang.LinkageError: loader constraints violated
>when linking org/apache/velocity/context/InternalContextAdapter class at
>org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
>oProxy.java:198)
>at
>org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
>.java:153)
>at
>org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
>a:271)
>at org.apache.velocity.Template.merge(Template.java:296)
>at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
>at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
>at
>org.apache.turbine.services.velocity.TurbineVelocityService.decodeReques
>t(TurbineVelocityService.java:494)
>at
>org.apache.turbine.services.velocity.TurbineVelocityService.handleReques
>t(TurbineVelocityService.java:336)
>at
>org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(Turbi
>neVelocity.java:143)
>at
>org.apache.turbine.modules.layouts.VelocityDirectLayout.doBuild(Velocity
>DirectLayout.java:106)
>at org.apache.turbine.modules.Layout.build(Layout.java:91)
>at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
>at
>org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:16
>9)
>at org.apache.turbine.modules.Page.build(Page.java:90)
>at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
>at org.apache.turbine.Turbine.doGet(Turbine.java:563)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
>her.java:684)
>at
>org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
>atcher.java:432)
>at
>org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDis
>patcher.java:116)
>at
>org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(App
>licationDispatcher.java:131)
>at java.security.AccessController.doPrivileged(Native Method) at
>org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
>cher.java:348)
>at
>org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:4
>30)
>at org.apache.jsp.index_jsp._jspService(index_jsp.java:42)
>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
>va:210)
>at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
>tionFilterChain.java:247)
>at
>org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFi
>lterChain.java:98)
>at
>org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC
>hain.java:176)
>at java.security.AccessController.doPrivileged(Native Method) at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>erChain.java:172)
>at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
>e.java:256)
>at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80)
>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
>e.java:191)
>at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80)
>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:242
>2)
>at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
>:180)
>at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643)
>at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
>lve.java:171)
>at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:641)
>at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
>:163)
>at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:641)
>at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80)
>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>java:174)
>at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643)
>at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80)
>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>at
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
>at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
>8)
>at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
>onnection(Http11Protocol.java:700)
>at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
>4)
>at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
>.java:683)
>at java.lang.Thread.run(Thread.java:534)
>    
>
>
>
>
>=====================[trace2]==========================
>C:\java\plateforme\jetspeed-1.5>maven war
> __  __
>|  \/  |__ _Apache__ ___
>| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>|_|  |_\__,_|\_/\___|_||_|  v. 1.0
>
>Tag library requested that is not present: 'maven' in plugin: 'null'
>build:start:
>
>war:init:
>
>java:prepare-filesystem:
>    [mkdir] Created dir: C:\java\plateforme\jetspeed-1.5\target\classes
>Tag library requested that is not present: 'maven' in plugin: 'null'
>
>java:compile:
>prepare.apis:
>    [echo] Generating Jetspeed XML bindings
>    [java] -- Suppressing non fatal warnings.
>
>torque:init:
>
>torque:om-check:
>
>torque:om:
>torque:init:
>Overriding previous definition of reference to torque-classpath
>
>torque:om-generate:
>    [torque-data-model] Using classpath
>    [torque-data-model] Generating to file
>C:\java\plateforme\jetspeed-1.5\src\j
>ava\report.org.apache.commons.grant.GrantProject@df0438.om.generation
>
>BUILD FAILED
>File...... C:\Documents and
>Settings\Brice\.maven\cache\maven-torque-plugin-3.
>2\plugin.jelly
>Element... torque-data-model
>Line...... 228
>Column.... 49
>org.apache.torque.engine.EngineException: Connection timed out: connect
>Total time: 31 seconds Finished at: Wed Jul 21 17:01:51 CEST 2004
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>  
>


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


Re: [jetspeed] [distrib] first use pb

Posted by Raphaƫl Luta <ra...@apache.org>.
zze-VANDEPUTTE Brice RD/BIZZ/GRE wrote:
> Hi,
> 
>     I want to try jetspeed and i've got the following problems 
> 
>    1) For jetspeed 1.5 WAR file distribution 
>         after deployment when i attempt to access "/jetspeed" context i
> got this exception :
> 
> 	Horrible Exception: java.lang.LinkageError: loader constraints
> violated when linking org/apache/velocity/context/InternalContextAdapter
> 	(...cf.trace1...)
> 
> 	I ve got the same LinkageError problem with the 1.4 War file...
> 

A java.lang.LinkageError will generally arise because of dependency
conflicts, ie Jetspeed expects to load classes from a specific jar 
version but finds another incompatible one in the classpath.

This is related to your environment not really to jetspeed :
- make sure you use a stable servlet container release which correctly
   enforces classloader separations (some early Tomcat 4.0 and 4.1 have
   issues, I use a Tomcat 4.1.30 without pb other than the xalan issue
   documented in the FAQ)
- check your system CLASSPATh and jre/lb/ext directory for possibly
   conflicting jars.
- if you're not using Tomcat, make sure your container correctly handles
   classloader separation and that you don't have possibly conflicting
   classes.

> 
>    2) For jetspeed 1.5 Source distribution
> 	  After install of maven v1.0 and after update of
> "%JETSPEED_HOME%/project.properties" 
> 	  to add "maven.proxy.host" and "maven.proxy.port" properties
> 	  (because i m behind a firewall)
> 	  i attempt to compile the war :
> 		  the first part of jar download was a success
> 		  but during torque goal i got this message :
> ===
> torque:om-generate:
>     [torque-data-model] Using classpath
>     [torque-data-model] Generating to file
> C:\java\plateforme\jetspeed-1.5\src\java\report.org.apache.commons.grant
> .GrantProject@df0438.om.generation
> 
> BUILD FAILED
> File...... C:\Documents and
> Settings\Brice\.maven\cache\maven-torque-plugin-3.2\plugin.jelly
> Element... torque-data-model
> Line...... 228
> Column.... 49
> org.apache.torque.engine.EngineException: Connection timed out: connect
> Total time: 31 seconds ===

Depending on your DB settings, it's possible that maven can't connect to 
your DB server... check the DB config.

--
Raphael Luta - raphael@apache.org

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