[daisy] I am obviously doing something very silly with the wrapper.

David Goodenough david.goodenough at linkchoose.co.uk
Thu Nov 23 05:23:33 CST 2006


On Thursday 23 November 2006 10:55, Reinhard Poetz wrote:
> David Goodenough wrote:
> > This looks perfectly normal to me.  I can not see why the second -D
> > (the -Dmerlin.loging.config=...) is being interpreted as the class to
> > load.
> >
> > There is only one item before this (another -D) and it does not have
> > spaces in it or anything like that.  As you can see it is definitely
> > invoking the 1.5 JDK java.
> >
> > Anyone got any clue as to why this might be failing?
>
> IIRC I had the same problem after upgrading to Daisy 1.5 and Java 5 (from
> Daisy 1.4 and Java 1.4) and solved it by changing
>
> wrapper.java.additional.2="-Dmerlin.logging.config=%DAISY_DATADIR%/conf/log
>kit.xml"
>
> to
>
> wrapper.java.additional.2=-Dmerlin.logging.config=%DAISY_DATADIR%/conf/logk
>it.xml
>
> I don't know why the quotes cause this problem.
Excellent, that changed moved me forward, not to success, but forward.

Now I get:-

INFO   | jvm 1    | 2006/11/23 11:05:20 | ---- runtime exception 
report --------------------------------------------------
INFO   | jvm 1    | 2006/11/23 11:05:20 | Exception: 
org.apache.avalon.repository.RepositoryRuntimeException
INFO   | jvm 1    | 2006/11/23 11:05:20 | Message: Could not create initial 
context.
INFO   | jvm 1    | 2006/11/23 11:05:20 | ---- 
cause ---------------------------------------------------------------------
INFO   | jvm 1    | 2006/11/23 11:05:20 | Exception: 
org.apache.avalon.repository.RepositoryException
INFO   | jvm 1    | 2006/11/23 11:05:20 | Message: None of the repositories 
[http://www.dpml.net,http://www.ibiblio.org/maven,] contained the metadata 
properties for artifact:avalon-repository/avalon-repository-impl#2.0.0
INFO   | jvm 1    | 2006/11/23 11:05:20 | ---- 
cause ---------------------------------------------------------------------
INFO   | jvm 1    | 2006/11/23 11:05:20 | Exception: 
java.io.FileNotFoundException
INFO   | jvm 1    | 2006/11/23 11:05:20 | Message: 
http://www.ibiblio.org/maven/avalon-repository/jars/avalon-repository-impl-2.0.0.jar.meta
INFO   | jvm 1    | 2006/11/23 11:05:20 | ---- stack 
trace ---------------------------------------------------------------
INFO   | jvm 1    | 2006/11/23 11:05:20 | java.io.FileNotFoundException: 
http://www.ibiblio.org/maven/avalon-repository/jars/avalon-repository-impl-2.0.0.jar.meta
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
java.net.URL.openStream(URL.java:1007)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
org.apache.avalon.repository.util.RepositoryUtils.getProperties(RepositoryUtils.java:227)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
org.apache.avalon.repository.util.RepositoryUtils.getProperties(RepositoryUtils.java:195)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
org.apache.avalon.repository.util.RepositoryUtils.getAttributes(RepositoryUtils.java:109)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
org.apache.avalon.repository.main.DefaultInitialContext.loadAttributes(DefaultInitialContext.java:497)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
org.apache.avalon.repository.main.DefaultInitialContext.<init>(DefaultInitialContext.java:153)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
org.apache.avalon.repository.main.DefaultInitialContextFactory.createInitialContext(DefaultInitialContextFactory.java:334)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
org.apache.avalon.merlin.cli.Main.main(Main.java:249)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
java.lang.reflect.Method.invoke(Method.java:585)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2006/11/23 11:05:20 | 
java.lang.Thread.run(Thread.java:595)

This raises two questions, firstly why is it loaded anything from the web, is
everything not already downloaded, and seconds if it does need to download 
from the web, are the URLs wrong (and where are they to update)?

Looking on the two web sites it would appear that the first does not have the 
file at all, and the second lists the file but you get a 404 File Not Found if
you try to access it.  Google suggests some other sites, such as:-
apache.mirrors.pair.com/avalon/avalon-repository/jars/ but I do not know how 
to add this into the search list. At least I found a file 
merlin/config/kernel.xml that contains the two listed files, but adding a new
entry to that list to include the apache.mirrors.pair.com site does not seem
to change the search order, the log still lists just the two sites.

David


More information about the daisy mailing list