forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav...." <brightoncomput...@brightontown.com.au>
Subject RE: Building Forrest 2
Date Wed, 13 Dec 2006 12:24:02 GMT


> -----Original Message-----
> From: Ross Gardler [mailto:rgardler@apache.org]
> Sent: Thursday, 23 November 2006 9:13 AM
> To: dev@forrest.apache.org
> Subject: Re: Building Forrest 2

<snip>

> I really am trying to do too many things tonight (the Ashes have start
> as well, so that's me out of the real world for 5 days)
> 
> It's in
> http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/core/src/co
> re/org/apache/forrest/core/Controller.java?revision=477949&view=markup
> 
> The CLI calls the default constructor which calls
> this("src/locationmap.xml", "src/forrestContext.xml");
> 
> The file resolution is in the parameterised constructor and consists of
> two parts:
> 
> final File file = new File(contextPath);
> 
> and
> 
> this.context = new FileSystemXmlApplicationContext(file
> .getAbsolutePath());
> 
> (contextPath in the first line is the "src/forrestContext.xml")
> 
> The problem is that getAbsolutePath() should be getPath().
> 
> I've made the change, please test.
> 
> Ross

Just got round to trying this and mine fails :-

     [java] 828  [main] DEBUG
org.apache.forrest.core.locationMap.LocationMap (?
:?)  - Adding location:
Matcher:org.apache.forrest.core.matcher.REMatcher@1242b1
1

     [java] org.apache.forrest.core.exception.ProcessingException: Unable to
cre
ate the output documents for helloWorld.html because null caused by null
     [java]  Processing request for helloWorld.html
     [java] 828  [main] DEBUG org.apache.forrest.cli.CLI (?:?)  -
Processing: he
lloWorld.html
     [java]     at
org.apache.forrest.core.Controller.getOutputDocument(Unknown
Source)
     [java]     at org.apache.forrest.cli.CLI.processURIs(Unknown Source)
     [java]     at org.apache.forrest.cli.CLI.main(Unknown Source)
     [java] 828  [main] DEBUG
org.apache.forrest.core.locationMap.LocationMap (?
:?)  - Getting potential locations for request of helloWorld.html
     [java] 828  [main] INFO
org.apache.forrest.core.locationMap.LocationMap (?
:?)  - 1 potenatial location from pattern (.*)/(.*).html
     [java] 843  [main] ERROR org.apache.forrest.cli.CLI (?:?)  -
org.apache.for
rest.core.exception.ProcessingException: Unable to create the output
documents f
or helloWorld.html because null caused by null
     [java] Caused by: java.lang.NullPointerException
     [java]     at
org.apache.forrest.core.document.InternalDocument.<init>(Unkn
own Source)
     [java]     at
org.apache.forrest.core.document.InternalErrorDocument.<init>
(Unknown Source)
     [java]     at
org.apache.forrest.core.Controller.processInputPlugins(Unknow
n Source)
     [java]     at org.apache.forrest.core.Controller.processRequest(Unknown
Sou
rce)
     [java]     ... 3 more

BUILD FAILED
D:\Apache2\forrest\whiteboard\forrest2\core\build.xml:118: Java returned: 1

Total time: 7 seconds
D:\Apache2\forrest\whiteboard\forrest2\core>ant
-Dcontent.object.dir=d:/apache2/
forrest/whiteboard/forrest2/core/src/examples/helloWorld
-Dcontent.object.start.
uri=helloWorld.html run
Buildfile: build.xml

clean:
   [delete] Deleting directory
D:\Apache2\forrest\whiteboard\forrest2\core\build
\classes
   [delete] Deleting directory
D:\Apache2\forrest\whiteboard\forrest2\core\dist

init:
    [mkdir] Created dir:
D:\Apache2\forrest\whiteboard\forrest2\core\build\class
es
    [mkdir] Created dir: D:\Apache2\forrest\whiteboard\forrest2\core\dist
    [mkdir] Created dir:
D:\Apache2\forrest\whiteboard\forrest2\core\dist\lib
[ivy:cachepath] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/ ::
[ivy:cachepath] :: configuring :: file =
D:\Apache2\forrest\whiteboard\forrest2\
core\ivyconf.xml
[ivy:cachepath] :: resolving dependencies :: [ Apache | forrest2 |
working@devel
oper ]
[ivy:cachepath]         confs: [default]
[ivy:cachepath]         found [ apache | commons-httpclient | 3.1-alpha1 ]
in lo
cal-repository
[ivy:cachepath]         [3.1-alpha1] [ apache | commons-httpclient |
latest.mile
stone ]
[ivy:cachepath]         found [ apache | commons-codec | 1.3 ] in
local-reposito
ry
[ivy:cachepath]         found [ apache | commons-logging | 1.1 ] in
local-reposi
tory
[ivy:cachepath]         found [ apache | xerces | 2.5.0 ] in
local-repository
[ivy:cachepath]         [2.5.0] [ apache | xerces | latest.release ]
[ivy:cachepath]         found [ jtidy | jtidy | 4aug2000r7-dev ] in
local-reposi
tory
[ivy:cachepath]         found [ junit | junit | 4.1 ] in local-repository
[ivy:cachepath]         found [ springframework | springframework | 2.0 ] in
loc
al-repository
[ivy:cachepath]         [2.0] [ springframework | springframework |
latest.relea
se ]
[ivy:cachepath]         found [ apache | commons-dbcp | 1.2.1 ] in
local-reposit
ory
[ivy:cachepath]         found [ apache | commons-collections | 3.2 ] in
local-re
pository
[ivy:cachepath]         found [ apache | commons-pool | 1.3 ] in
local-repositor
y
[ivy:cachepath]         found [ apache | log4j | 1.2.14 ] in
local-repository
[ivy:cachepath]         found [ asm | asm | 2.2.2 ] in ivyrep
[ivy:cachepath]         found [ asm | asm-commons | 2.2.2 ] in
local-repository
[ivy:cachepath]         found [ asm | asm-util | 2.2.2 ] in local-repository
[ivy:cachepath]         found [ cglib | cglib-nodep | 2.1_3 ] in
local-repositor
y
[ivy:cachepath] :: resolution report ::
 
---------------------------------------------------------------------
        |                  |            modules            ||   artifacts
|
        |       conf       | number| search|dwnlded|evicted||
number|dwnlded|
 
---------------------------------------------------------------------
        |      default     |   15  |   3   |   0   |   0   ||   16  |   0
|
 
---------------------------------------------------------------------

copy-core-resources:
     [copy] Copying 2 files to
D:\Apache2\forrest\whiteboard\forrest2\core\build
\classes
     [copy] Copied 14 empty directories to 8 empty directories under
D:\Apache2\
forrest\whiteboard\forrest2\core\build\classes

compile-core:
    [javac] Compiling 40 source files to
D:\Apache2\forrest\whiteboard\forrest2\
core\build\classes

copy-content-object-resources:
     [copy] Copying 4 files to
D:\Apache2\forrest\whiteboard\forrest2\core\build
\classes

compile-content-object:

run:
     [java] log4j:ERROR Could not connect to remote log4j server at
[localhost].
 We will try again later.
     [java] java.net.ConnectException: Connection refused: connect
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
     [java]     at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
a:195)
     [java]     at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
     [java]     at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     [java]     at java.net.Socket.connect(Socket.java:516)
     [java]     at java.net.Socket.connect(Socket.java:466)
     [java]     at java.net.Socket.<init>(Socket.java:366)
     [java]     at java.net.Socket.<init>(Socket.java:208)
     [java]     at
org.apache.log4j.net.SocketAppender.connect(SocketAppender.ja
va:203)
     [java]     at
org.apache.log4j.net.SocketAppender.activateOptions(SocketApp
ender.java:160)
     [java]     at
org.apache.log4j.config.PropertySetter.activate(PropertySette
r.java:256)
     [java]     at
org.apache.log4j.config.PropertySetter.setProperties(Property
Setter.java:132)
     [java]     at
org.apache.log4j.config.PropertySetter.setProperties(Property
Setter.java:96)
     [java]     at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyC
onfigurator.java:654)
     [java]     at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyC
onfigurator.java:612)
     [java]     at
org.apache.log4j.PropertyConfigurator.configureRootCategory(P
ropertyConfigurator.java:509)
     [java]     at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
figurator.java:415)
     [java]     at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
figurator.java:441)
     [java]     at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(O
ptionConverter.java:470)
     [java]     at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
     [java]     at org.apache.log4j.Logger.getLogger(Logger.java:104)
     [java]     at
org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLo
gger.java:283)
     [java]     at
org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogge
r.java:108)
     [java]     at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
     [java]     at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:27)
     [java]     at
java.lang.reflect.Constructor.newInstance(Constructor.java:49
4)
     [java]     at
org.apache.commons.logging.impl.LogFactoryImpl.createLogFromC
lass(LogFactoryImpl.java:1040)
     [java] Forrest 2 Command Line Interface
     [java] ================================
     [java]     at
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImp
lementation(LogFactoryImpl.java:838)
     [java]     at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
gFactoryImpl.java:601)
     [java]     at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
gFactoryImpl.java:333)
     [java]     at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
gFactoryImpl.java:307)
     [java]     at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:
645)
     [java]     at org.apache.forrest.cli.CLI.<clinit>(Unknown Source)
     [java] 0    [main] INFO  org.apache.forrest.core.Controller (?:?)  -
Using
Spring Context definition in src/forrestContext.xml
     [java] 500  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
Java version: 1.5.0_08
     [java] 500  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
Java vendor: Sun Microsystems Inc.
     [java] 500  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
Java class path: C:\Documents and
Settings\Gavin\.ivy\cache\apache\commons-httpc
lient\jars\commons-httpclient-3.1-alpha1.jar;C:\Documents and
Settings\Gavin\.iv
y\cache\apache\commons-codec\jars\commons-codec-1.3.jar;C:\Documents and
Setting
s\Gavin\.ivy\cache\apache\commons-logging\jars\commons-logging-1.1.jar;C:\Do
cume
nts and
Settings\Gavin\.ivy\cache\apache\xerces\jars\xercesImpl-2.5.0.jar;C:\Doc
uments and
Settings\Gavin\.ivy\cache\jtidy\jtidy\jars\jtidy-4aug2000r7-dev.jar;C
:\Documents and
Settings\Gavin\.ivy\cache\junit\junit\jars\junit-4.1.jar;C:\Docu
ments and
Settings\Gavin\.ivy\cache\springframework\springframework\jars\spring-
mock-2.0.jar;C:\Documents and
Settings\Gavin\.ivy\cache\springframework\springfr
amework\jars\spring-2.0.jar;C:\Documents and
Settings\Gavin\.ivy\cache\apache\co
mmons-dbcp\jars\commons-dbcp-1.2.1.jar;C:\Documents and
Settings\Gavin\.ivy\cach
e\apache\log4j\jars\log4j-1.2.14.jar;C:\Documents and
Settings\Gavin\.ivy\cache\
asm\asm\jars\asm-2.2.2.jar;C:\Documents and
Settings\Gavin\.ivy\cache\asm\asm-co
mmons\jars\asm-commons-2.2.2.jar;C:\Documents and
Settings\Gavin\.ivy\cache\asm\
asm-util\jars\asm-util-2.2.2.jar;C:\Documents and
Settings\Gavin\.ivy\cache\cgli
b\cglib-nodep\jars\cglib-nodep-2.1_3.jar;C:\Documents and
Settings\Gavin\.ivy\ca
che\apache\commons-collections\jars\commons-collections-3.2.jar;C:\Documents
and
 
Settings\Gavin\.ivy\cache\apache\commons-pool\jars\commons-pool-1.3.jar;D:\A
pac
he2\forrest\whiteboard\forrest2\core\build\classes;D:\apache2\forrest\whiteb
oard
\forrest2\core\src\examples\helloWorld\build
     [java] 500  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
Operating system name: Windows XP
     [java] 500  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
Operating system architecture: x86
     [java] 500  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
Operating system version: 5.1
     [java] 594  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
SUN 1.5: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests;
Sec
ureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX
CertPa
thBuilder; LDAP, Collection CertStores)
     [java] 594  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
SunRsaSign 1.5: Sun RSA signature provider
     [java] 594  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
SunJSSE 1.5: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3,
TLSv1
)
     [java] 594  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
SunJCE 1.5: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish,
ARC
FOUR, RC2, PBE, Diffie-Hellman, HMAC)
     [java] 594  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
SunJGSS 1.0: Sun (Kerberos v5)
     [java] 594  [main] DEBUG org.apache.commons.httpclient.HttpClient (?:?)
-
SunSASL 1.5: Sun SASL provider(implements client mechanisms for: DIGEST-MD5,
GSS
API, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI,
CRAM-
MD5)
     [java] 610  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.useragent = Jakarta
Commons-HttpClient/3.1-alph
a1
     [java] 610  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.protocol.version = HTTP/1.1
     [java] 610  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.connection-manager.class = class
org.apache.com
mons.httpclient.SimpleHttpConnectionManager
     [java] 610  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.protocol.cookie-policy = default
     [java] 610  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.protocol.element-charset = US-ASCII
     [java] 610  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.protocol.content-charset = ISO-8859-1
     [java] 610  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.method.retry-handler =
org.apache.commons.httpc
lient.DefaultHttpMethodRetryHandler@11381e7
     [java] 610  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy
HH:mm:s
s zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE,
dd-MMM-yyyy H
H:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE
dd-MMM-yy
yy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE
dd-MM
M-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z,
EEE,dd-MMM-
yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
     [java] 625  [main] DEBUG
org.apache.commons.httpclient.params.DefaultHttpPa
rams (?:?)  - Set parameter http.connection.timeout = 30000
     [java] 688  [main] DEBUG
org.apache.forrest.core.locationMap.LocationMap (?
:?)  - Initialise locationmap from config file src/locationmap.xml
     [java] 703  [main] DEBUG
org.apache.forrest.core.locationMap.LocationMap (?
:?)  - Adding location:
Matcher:org.apache.forrest.core.matcher.REMatcher@197601
1
     [java] 703  [main] DEBUG
org.apache.forrest.core.locationMap.LocationMap (?
:?)  - Adding location:
Matcher:org.apache.forrest.core.matcher.REMatcher@1242b1
1

     [java]  Processing request for helloWorld.html
     [java] org.apache.forrest.core.exception.ProcessingException: Unable to
cre
ate the output documents for helloWorld.html because null caused by null
     [java] 703  [main] DEBUG org.apache.forrest.cli.CLI (?:?)  -
Processing: he
lloWorld.html
     [java] 703  [main] DEBUG
org.apache.forrest.core.locationMap.LocationMap (?
:?)  - Getting potential locations for request of helloWorld.html
     [java] 703  [main] INFO
org.apache.forrest.core.locationMap.LocationMap (?
:?)  - 1 potenatial location from pattern (.*)/(.*).html
     [java]     at
org.apache.forrest.core.Controller.getOutputDocument(Unknown
Source)
     [java]     at org.apache.forrest.cli.CLI.processURIs(Unknown Source)
     [java] 719  [main] ERROR org.apache.forrest.cli.CLI (?:?)  -
org.apache.for
rest.core.exception.ProcessingException: Unable to create the output
documents f
or helloWorld.html because null caused by null
     [java]     at org.apache.forrest.cli.CLI.main(Unknown Source)
     [java] Caused by: java.lang.NullPointerException
     [java]     at
org.apache.forrest.core.document.InternalDocument.<init>(Unkn
own Source)
     [java]     at
org.apache.forrest.core.document.InternalErrorDocument.<init>
(Unknown Source)
     [java]     at
org.apache.forrest.core.Controller.processInputPlugins(Unknow
n Source)
     [java]     at org.apache.forrest.core.Controller.processRequest(Unknown
Sou
rce)
     [java]     ... 3 more

BUILD FAILED
D:\Apache2\forrest\whiteboard\forrest2\core\build.xml:118: Java returned: 1

The above was using the latest trunk and the command line -

ant -Dcontent.object.dir=src/examples/helloWorld
-Dcontent.object.start.uri=helloWorld.html run

Also tried with the full path from root and the relative path ./

Gav...


Mime
View raw message