You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by I am Who i am <ra...@gmail.com> on 2007/11/27 21:26:03 UTC

The specified resource isn't a file or the protocol used isn't allowed - Please Help

Hi All

I just installed continuum-1.1 and trying to setup maven2 project with
clearcase

1. i created pom.xml with entry
   <scm>
    <!-- using ucm format
scm:clearcase<delimiter>[view_name]<delimiter>config_spec<delimiter>vob_name<delimiter>stream_name
 -->

<connection>scm:clearcase|buildsvr_myview|/home/me/config_spec.txt|My_VOB|STREAM</connection>
    <developerConnection />
    <tag/>
    <url/>
  </scm>
  saved it to /home/me/pom.xml

2. opened continuum in browser went thru creating maven2projects and gave
POM Url as file:///home/pom.xml , but i'm getting
   "The specified resource isn't a file or the protocol used isn't allowed."

3. i checked the file, it is there

4. This is what i see in wrapper.log
    INFO   | jvm 1    | 2007/11/27 14:17:54 | 2007-11-27 14:17:54,628
[SocketListener0-0] WARN
com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest  - Item is a
file upload of 0 size, ignoring
INFO   | jvm 1    | 2007/11/27 14:17:54 | 2007-11-27 14:17:54,632
[SocketListener0-0] ERROR
com.opensymphony.webwork.dispatcher.DispatcherUtils  - Error setting
character encoding to 'UTF-8' - ignoring.
INFO   | jvm 1    | 2007/11/27 14:17:54 | java.lang.IllegalStateException:
getReader() or getInputStream() called
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.jetty.servlet.ServletHttpRequest.setCharacterEncoding(
ServletHttpRequest.java:602)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
javax.servlet.ServletRequestWrapper.setCharacterEncoding(
ServletRequestWrapper.java:112)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
com.opensymphony.webwork.dispatcher.DispatcherUtils.prepare(
DispatcherUtils.java:438)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java:160)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java
:118)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java
:52)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(
ActionContextCleanUp.java:88)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.jetty.servlet.WebApplicationContext.handle(
WebApplicationContext.java:633)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)



What am i doing wrong, please help

Re: The specified resource isn't a file or the protocol used isn't allowed - Please Help

Posted by Emmanuel Venisse <em...@venisse.net>.
You must allow the file protocol that is not allowed by default: http://maven.apache.org/continuum/faqs.html#can-i-use-file-protocol-in-add-project-view

Emmanuel

I am Who i am a écrit :
> Hi All
> 
> I just installed continuum-1.1 and trying to setup maven2 project with
> clearcase
> 
> 1. i created pom.xml with entry
>    <scm>
>     <!-- using ucm format
> scm:clearcase<delimiter>[view_name]<delimiter>config_spec<delimiter>vob_name<delimiter>stream_name
>  -->
> 
> <connection>scm:clearcase|buildsvr_myview|/home/me/config_spec.txt|My_VOB|STREAM</connection>
>     <developerConnection />
>     <tag/>
>     <url/>
>   </scm>
>   saved it to /home/me/pom.xml
> 
> 2. opened continuum in browser went thru creating maven2projects and gave
> POM Url as file:///home/pom.xml , but i'm getting
>    "The specified resource isn't a file or the protocol used isn't allowed."
> 
> 3. i checked the file, it is there
> 
> 4. This is what i see in wrapper.log
>     INFO   | jvm 1    | 2007/11/27 14:17:54 | 2007-11-27 14:17:54,628
> [SocketListener0-0] WARN
> com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest  - Item is a
> file upload of 0 size, ignoring
> INFO   | jvm 1    | 2007/11/27 14:17:54 | 2007-11-27 14:17:54,632
> [SocketListener0-0] ERROR
> com.opensymphony.webwork.dispatcher.DispatcherUtils  - Error setting
> character encoding to 'UTF-8' - ignoring.
> INFO   | jvm 1    | 2007/11/27 14:17:54 | java.lang.IllegalStateException:
> getReader() or getInputStream() called
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.jetty.servlet.ServletHttpRequest.setCharacterEncoding(
> ServletHttpRequest.java:602)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> javax.servlet.ServletRequestWrapper.setCharacterEncoding(
> ServletRequestWrapper.java:112)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> com.opensymphony.webwork.dispatcher.DispatcherUtils.prepare(
> DispatcherUtils.java:438)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(
> FilterDispatcher.java:160)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java
> :118)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java
> :52)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(
> ActionContextCleanUp.java:88)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
> WebApplicationHandler.java:471)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(
> WebApplicationContext.java:633)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.http.HttpServer.service(HttpServer.java:909)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> INFO   | jvm 1    | 2007/11/27 14:17:54 |       at
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> 
> 
> 
> What am i doing wrong, please help
>