You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by Giovanni Fleres <gi...@tin.it> on 2006/10/03 12:19:46 UTC

Some problems with apache-httpd's sample

Hi,
I'm a newbie about Muse.

I'm trying to use apache-httpd's sample.
After I've extracted the zip file and that I've installed and 
configurated ant,
I went in the apache-httpd's directory where there build.xml and I've
executed ant.
At this point I've received these compiling errors:

-------- begin error log -------------------------

C:\muse-2.0.0\samples\apache-httpd>ant
Buildfile: build.xml

init:

clean:

layout:
     [copy] Copying 67 files to C:\muse-2.0.0\samples\apache-httpd\build
     [copy] Copying 9 files to 
C:\muse-2.0.0\samples\apache-httpd\build\WEB-INF\
services\muse
     [copy] Copying 1 file to 
C:\muse-2.0.0\samples\apache-httpd\build\WEB-INF\s
ervices\muse\META-INF
     [copy] Copying 1 file to 
C:\muse-2.0.0\samples\apache-httpd\build\WEB-INF\s
ervices\muse
     [copy] Copying 20 files to 
C:\muse-2.0.0\samples\apache-httpd\build\WEB-INF
\lib

java:
    [mkdir] Created dir: C:\muse-2.0.0\samples\apache-httpd\build\bin
    [javac] Compiling 8 source files to 
C:\muse-2.0.0\samples\apache-httpd\build
\bin
    [javac] 
C:\muse-2.0.0\samples\apache-httpd\src\org\apache\muse\test\http\rem
ote\HttpServerClient.java:168: setAction(java.lang.String) in 
org.apache.muse.co
re.proxy.ProxyHandler cannot be applied to (java.net.URI)
    [javac]             handler.setAction(_ACTIONS[n]);
    [javac]                    ^
    [javac] 
C:\muse-2.0.0\samples\apache-httpd\src\org\apache\muse\test\http\tes
tapp\HttpServerTestApp.java:38: incompatible types
    [javac] found   : java.lang.String
    [javac] required: java.net.URI
    [javac]         URI value = factory.getNextIdentifier();
    [javac]                                              ^
    [javac] Note: 
C:\muse-2.0.0\samples\apache-httpd\src\org\apache\muse\test\ht
tp\remote\HttpServerClient.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors

BUILD FAILED
C:\muse-2.0.0\samples\apache-httpd\build.xml:69: Compile failed; see the 
compile
r error output for details.

Total time: 12 seconds
C:\muse-2.0.0\samples\apache-httpd>

------- error log ------------------------------

Could anybody help me ?

Thanks in advance

Giovanni

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


Re: Some problems with apache-httpd's sample

Posted by Daniel Jemiolo <da...@us.ibm.com>.
Hi Giovanni,

I have to admit I'm confused because I remember this issue being reported 
and fixed, and yet, you're right, the URI -> String change we made is 
causing compile errors. I also noticed that we forgot to include the file 
that will tell Muse what EPR to assign to the resource instance that is 
created; this isn't too hard to do (see the "How to" in the reference 
manual part of the documentation), but it should work out of the box for 
the samples. I will commit the fixes to this and you can pick up the 
nightly build to get the updated sample files (under 
/samples/apache-httpd).

Dan


Giovanni Fleres <gi...@tin.it> wrote on 10/03/2006 06:19:46 AM:

> Hi,
> I'm a newbie about Muse.
> 
> I'm trying to use apache-httpd's sample.
> After I've extracted the zip file and that I've installed and 
> configurated ant,
> I went in the apache-httpd's directory where there build.xml and I've
> executed ant.
> At this point I've received these compiling errors:
> 
> -------- begin error log -------------------------
> 
> C:\muse-2.0.0\samples\apache-httpd>ant
> Buildfile: build.xml
> 
> init:
> 
> clean:
> 
> layout:
>      [copy] Copying 67 files to C:\muse-2.0.0\samples\apache-httpd\build
>      [copy] Copying 9 files to 
> C:\muse-2.0.0\samples\apache-httpd\build\WEB-INF\
> services\muse
>      [copy] Copying 1 file to 
> C:\muse-2.0.0\samples\apache-httpd\build\WEB-INF\s
> ervices\muse\META-INF
>      [copy] Copying 1 file to 
> C:\muse-2.0.0\samples\apache-httpd\build\WEB-INF\s
> ervices\muse
>      [copy] Copying 20 files to 
> C:\muse-2.0.0\samples\apache-httpd\build\WEB-INF
> \lib
> 
> java:
>     [mkdir] Created dir: C:\muse-2.0.0\samples\apache-httpd\build\bin
>     [javac] Compiling 8 source files to 
> C:\muse-2.0.0\samples\apache-httpd\build
> \bin
>     [javac] 
> C:\muse-2.0.0\samples\apache-httpd\src\org\apache\muse\test\http\rem
> ote\HttpServerClient.java:168: setAction(java.lang.String) in 
> org.apache.muse.co
> re.proxy.ProxyHandler cannot be applied to (java.net.URI)
>     [javac]             handler.setAction(_ACTIONS[n]);
>     [javac]                    ^
>     [javac] 
> C:\muse-2.0.0\samples\apache-httpd\src\org\apache\muse\test\http\tes
> tapp\HttpServerTestApp.java:38: incompatible types
>     [javac] found   : java.lang.String
>     [javac] required: java.net.URI
>     [javac]         URI value = factory.getNextIdentifier();
>     [javac]                                              ^
>     [javac] Note: 
> C:\muse-2.0.0\samples\apache-httpd\src\org\apache\muse\test\ht
> tp\remote\HttpServerClient.java uses unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 2 errors
> 
> BUILD FAILED
> C:\muse-2.0.0\samples\apache-httpd\build.xml:69: Compile failed; see the 

> compile
> r error output for details.
> 
> Total time: 12 seconds
> C:\muse-2.0.0\samples\apache-httpd>
> 
> ------- error log ------------------------------
> 
> Could anybody help me ?
> 
> Thanks in advance
> 
> Giovanni
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 


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