Problem with ClearCase plugin (setc and relative path)

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with ClearCase plugin (setc and relative path)

Jean-Marc Taillant
Hello

I would like to build a maven2 project ( a developement site) under
Clearcase. I have following environment:

- Windows 2000
- Logged as Administrator
- Hudson 1.148
- Tomcat running with Administrator Access right
- ClearCase Plugin - ver.0.2.1
- Shared repository on my huson host as follow (with all access)
   \\myhost\view

I created the maven2 project, but when I try to build the project I got
following exception in project console logs:

started
[workspace] $ cleartool mkview -snapshot \\myhost\view\workspace\testlast
Created view.
Host-local path:
myhost:C:\WINDOWS\system32\config\systemprofile\.hudson\jobs\Development
Team Site\workspace\testlast\view.stg
Global path:     \\myhost\view\workspace\testlast\view.stg
Created snapshot view directory "\\myhost\view\workspace\testlast".
[testlast] $ cleartool setcs ..\configspec62423.txt
FATAL: CreateProcess: cleartool setcs ..\configspec62423.txt error=267
java.io.IOException: CreateProcess: cleartool setcs
..\configspec62423.txt error=267
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at hudson.Proc$LocalProc.<init>(Proc.java:80)
    at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
    at hudson.Launcher.launch(Launcher.java:119)
    at hudson.Launcher.launch(Launcher.java:71)
    at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:262)
    at
hudson.plugins.clearcase.ClearCaseSCM.editConfigSpec(ClearCaseSCM.java:201)
    at
hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:109)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
    at
hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
    at
hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
    at hudson.model.Run.run(Run.java:579)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
    at hudson.model.ResourceController.execute(ResourceController.java:70)
    at hudson.model.Executor.run(Executor.java:62)


When I try to execute manually the "cleartool setcs
..\configspec62423.txt" from command line, it works.

It prevents us to use Hudson in our Enterprise Environment.

Any idea ?

Thanks In advance


Jean-Marc

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with ClearCase plugin (setc and relative path)

Jean-Marc Taillant
It seems to work manually (from commandline) when specifying the path
with UNC format. Is there a chance to change it in code (I don't have
access to SVN through my enterprise)

Thanks In Advance,

Jean-Marc




Jean-Marc Taillant a écrit :

> Hello
>
> I would like to build a maven2 project ( a developement site) under
> Clearcase. I have following environment:
>
> - Windows 2000
> - Logged as Administrator
> - Hudson 1.148
> - Tomcat running with Administrator Access right
> - ClearCase Plugin - ver.0.2.1
> - Shared repository on my huson host as follow (with all access)
>   \\myhost\view
>
> I created the maven2 project, but when I try to build the project I
> got following exception in project console logs:
>
> started
> [workspace] $ cleartool mkview -snapshot \\myhost\view\workspace\testlast
> Created view.
> Host-local path:
> myhost:C:\WINDOWS\system32\config\systemprofile\.hudson\jobs\Development
> Team Site\workspace\testlast\view.stg
> Global path:     \\myhost\view\workspace\testlast\view.stg
> Created snapshot view directory "\\myhost\view\workspace\testlast".
> [testlast] $ cleartool setcs ..\configspec62423.txt
> FATAL: CreateProcess: cleartool setcs ..\configspec62423.txt error=267
> java.io.IOException: CreateProcess: cleartool setcs
> ..\configspec62423.txt error=267
>    at java.lang.ProcessImpl.create(Native Method)
>    at java.lang.ProcessImpl.<init>(Unknown Source)
>    at java.lang.ProcessImpl.start(Unknown Source)
>    at java.lang.ProcessBuilder.start(Unknown Source)
>    at java.lang.Runtime.exec(Unknown Source)
>    at hudson.Proc$LocalProc.<init>(Proc.java:80)
>    at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
>    at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
>    at hudson.Launcher.launch(Launcher.java:119)
>    at hudson.Launcher.launch(Launcher.java:71)
>    at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:262)
>    at
> hudson.plugins.clearcase.ClearCaseSCM.editConfigSpec(ClearCaseSCM.java:201)
>
>    at
> hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:109)
>    at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
>    at
> hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
>
>    at
> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
>    at hudson.model.Run.run(Run.java:579)
>    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
>    at hudson.model.ResourceController.execute(ResourceController.java:70)
>    at hudson.model.Executor.run(Executor.java:62)
>
>
> When I try to execute manually the "cleartool setcs
> ..\configspec62423.txt" from command line, it works.
>
> It prevents us to use Hudson in our Enterprise Environment.
>
> Any idea ?
>
> Thanks In advance
>
>
> Jean-Marc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with ClearCase plugin (setc and relative path)

Erik Ramfelt
I think I see the problem you are specifying the View name as a UNC
format. The view name (read view tag) should be just a simple name for
the view and not a path name. The CC plugin is will download all files
into the workspace folder. The other SCM plugins download all files to
the workspace folder.

The folder layout is intended to be like this:
jobs\
   jobname\
      workspace\
          ClearCaseViewPath (or the name of the view)
             * (Files retrieved from the CC server)

Have you tested to just enter a simple name in the "View name" field
and then try to build everything?

Regards
//Erik

On 10/23/07, Jean-Marc Taillant <[hidden email]> wrote:

> It seems to work manually (from commandline) when specifying the path
> with UNC format. Is there a chance to change it in code (I don't have
> access to SVN through my enterprise)
>
> Thanks In Advance,
>
> Jean-Marc
>
>
>
>
> Jean-Marc Taillant a écrit :
> > Hello
> >
> > I would like to build a maven2 project ( a developement site) under
> > Clearcase. I have following environment:
> >
> > - Windows 2000
> > - Logged as Administrator
> > - Hudson 1.148
> > - Tomcat running with Administrator Access right
> > - ClearCase Plugin - ver.0.2.1
> > - Shared repository on my huson host as follow (with all access)
> >   \\myhost\view
> >
> > I created the maven2 project, but when I try to build the project I
> > got following exception in project console logs:
> >
> > started
> > [workspace] $ cleartool mkview -snapshot \\myhost\view\workspace\testlast
> > Created view.
> > Host-local path:
> > myhost:C:\WINDOWS\system32\config\systemprofile\.hudson\jobs\Development
> > Team Site\workspace\testlast\view.stg
> > Global path:     \\myhost\view\workspace\testlast\view.stg
> > Created snapshot view directory "\\myhost\view\workspace\testlast".
> > [testlast] $ cleartool setcs ..\configspec62423.txt
> > FATAL: CreateProcess: cleartool setcs ..\configspec62423.txt error=267
> > java.io.IOException: CreateProcess: cleartool setcs
> > ..\configspec62423.txt error=267
> >    at java.lang.ProcessImpl.create(Native Method)
> >    at java.lang.ProcessImpl.<init>(Unknown Source)
> >    at java.lang.ProcessImpl.start(Unknown Source)
> >    at java.lang.ProcessBuilder.start(Unknown Source)
> >    at java.lang.Runtime.exec(Unknown Source)
> >    at hudson.Proc$LocalProc.<init>(Proc.java:80)
> >    at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
> >    at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
> >    at hudson.Launcher.launch(Launcher.java:119)
> >    at hudson.Launcher.launch(Launcher.java:71)
> >    at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:262)
> >    at
> > hudson.plugins.clearcase.ClearCaseSCM.editConfigSpec(ClearCaseSCM.java:201)
> >
> >    at
> > hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:109)
> >    at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
> >    at
> > hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
> >
> >    at
> > hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
> >    at hudson.model.Run.run(Run.java:579)
> >    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
> >    at hudson.model.ResourceController.execute(ResourceController.java:70)
> >    at hudson.model.Executor.run(Executor.java:62)
> >
> >
> > When I try to execute manually the "cleartool setcs
> > ..\configspec62423.txt" from command line, it works.
> >
> > It prevents us to use Hudson in our Enterprise Environment.
> >
> > Any idea ?
> >
> > Thanks In advance
> >
> >
> > Jean-Marc
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with ClearCase plugin (setc and relative path)

Jean-Marc Taillant
Hi Erik,
I already try this but without success, I get the following exception:

started
[workspace] $ cleartool mkview -snapshot testlast3
cleartool: Error: storage directory must be in UNC style (e.g. \\host\share\...)
FATAL: Clear Case failed. exit code=1
FATAL: Clear tool did not return the expected exit code. Command line="cleartool mkview -snapshot testlast3", actual exit code=1
java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool mkview -snapshot testlast3", actual exit code=1
        at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:272)
        at hudson.plugins.clearcase.ClearCaseSCM.createView(ClearCaseSCM.java:175)
        at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:108)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
        at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
        at hudson.model.Run.run(Run.java:579)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
        at hudson.model.ResourceController.execute(ResourceController.java:70)
        at hudson.model.Executor.run(Executor.java:62)


Could you give me your clearcase version number?.

Jean-Marc



Erik Ramfelt a écrit :

> I think I see the problem you are specifying the View name as a UNC
> format. The view name (read view tag) should be just a simple name for
> the view and not a path name. The CC plugin is will download all files
> into the workspace folder. The other SCM plugins download all files to
> the workspace folder.
>
> The folder layout is intended to be like this:
> jobs\
>    jobname\
>       workspace\
>           ClearCaseViewPath (or the name of the view)
>              * (Files retrieved from the CC server)
>
> Have you tested to just enter a simple name in the "View name" field
> and then try to build everything?
>
> Regards
> //Erik
>
> On 10/23/07, Jean-Marc Taillant <[hidden email]> wrote:
>  
>> It seems to work manually (from commandline) when specifying the path
>> with UNC format. Is there a chance to change it in code (I don't have
>> access to SVN through my enterprise)
>>
>> Thanks In Advance,
>>
>> Jean-Marc
>>
>>
>>
>>
>> Jean-Marc Taillant a écrit :
>>    
>>> Hello
>>>
>>> I would like to build a maven2 project ( a developement site) under
>>> Clearcase. I have following environment:
>>>
>>> - Windows 2000
>>> - Logged as Administrator
>>> - Hudson 1.148
>>> - Tomcat running with Administrator Access right
>>> - ClearCase Plugin - ver.0.2.1
>>> - Shared repository on my huson host as follow (with all access)
>>>   \\myhost\view
>>>
>>> I created the maven2 project, but when I try to build the project I
>>> got following exception in project console logs:
>>>
>>> started
>>> [workspace] $ cleartool mkview -snapshot \\myhost\view\workspace\testlast
>>> Created view.
>>> Host-local path:
>>> myhost:C:\WINDOWS\system32\config\systemprofile\.hudson\jobs\Development
>>> Team Site\workspace\testlast\view.stg
>>> Global path:     \\myhost\view\workspace\testlast\view.stg
>>> Created snapshot view directory "\\myhost\view\workspace\testlast".
>>> [testlast] $ cleartool setcs ..\configspec62423.txt
>>> FATAL: CreateProcess: cleartool setcs ..\configspec62423.txt error=267
>>> java.io.IOException: CreateProcess: cleartool setcs
>>> ..\configspec62423.txt error=267
>>>    at java.lang.ProcessImpl.create(Native Method)
>>>    at java.lang.ProcessImpl.<init>(Unknown Source)
>>>    at java.lang.ProcessImpl.start(Unknown Source)
>>>    at java.lang.ProcessBuilder.start(Unknown Source)
>>>    at java.lang.Runtime.exec(Unknown Source)
>>>    at hudson.Proc$LocalProc.<init>(Proc.java:80)
>>>    at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
>>>    at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
>>>    at hudson.Launcher.launch(Launcher.java:119)
>>>    at hudson.Launcher.launch(Launcher.java:71)
>>>    at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:262)
>>>    at
>>> hudson.plugins.clearcase.ClearCaseSCM.editConfigSpec(ClearCaseSCM.java:201)
>>>
>>>    at
>>> hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:109)
>>>    at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
>>>    at
>>> hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
>>>
>>>    at
>>> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
>>>    at hudson.model.Run.run(Run.java:579)
>>>    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
>>>    at hudson.model.ResourceController.execute(ResourceController.java:70)
>>>    at hudson.model.Executor.run(Executor.java:62)
>>>
>>>
>>> When I try to execute manually the "cleartool setcs
>>> ..\configspec62423.txt" from command line, it works.
>>>
>>> It prevents us to use Hudson in our Enterprise Environment.
>>>
>>> Any idea ?
>>>
>>> Thanks In advance
>>>
>>>
>>> Jean-Marc
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>    
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with ClearCase plugin (setc and relative path)

Erik Ramfelt
Ok, that is strange that the storage directory must be in UNC style as
we're running the plugin on a Windows XP machine without problems.


When looking at the mkview command I found the following info
(http://www.ipnom.com/ClearCase-Commands/mkview.html):
In addition, on Windows systems:
    * snapshot-view-pname must be a UNC name only if the storage is
colocated (colocated storage can be the default in the circumstances
described previously).
    * For a colocated server, the snapshot view directory must not be
within a Windows special share, such as the share that is designated
by drive$ and that allows administrators to access the drive over the
network.

Is your storage colocated?


Clear case version info:
---------------------------------------------------------
cleartool -version
ClearCase version 2003.06.00 (Fri Apr 18 13:06:18 2003)
clearcase patch p2003.06.01 (Fri Sep 5 11:59:28 2003)
clearcase patch p2003.06.12 (Fri Nov 7 11:59:28 2003)
clearcase patch p2003.06.14 (Fri Oct 8 11:59:28 2004)
clearcase patch p2003.06.15 (Fri Apr 9 11:59:28 2005)
clearcase patch p2003.06.16 (Fri Jul 1 11:59:28 2005)
@(#) MVFS version 2003.06.10+ (Thu Jan 27 04:26:46 2005)
cleartool                         2003.06.10+ (Fri Jun  3 21:18:43  2005)
db_server                         2003.06.10+ (Fri May  6 22:12:48  2005)
VOB database schema version: 54
---------------------------------------------------------

//Erik

On 10/23/07, Jean-Marc Taillant <[hidden email]> wrote:

> Hi Erik,
> I already try this but without success, I get the following exception:
>
> started
> [workspace] $ cleartool mkview -snapshot testlast3
> cleartool: Error: storage directory must be in UNC style (e.g. \\host\share\...)
> FATAL: Clear Case failed. exit code=1
> FATAL: Clear tool did not return the expected exit code. Command line="cleartool mkview -snapshot testlast3", actual exit code=1
> java.io.IOException: Clear tool did not return the expected exit code. Command line="cleartool mkview -snapshot testlast3", actual exit code=1
>         at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:272)
>         at hudson.plugins.clearcase.ClearCaseSCM.createView(ClearCaseSCM.java:175)
>         at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:108)
>         at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
>         at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
>         at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
>         at hudson.model.Run.run(Run.java:579)
>         at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
>         at hudson.model.ResourceController.execute(ResourceController.java:70)
>         at hudson.model.Executor.run(Executor.java:62)
>
>
> Could you give me your clearcase version number?.
>
> Jean-Marc
>
>
>
> Erik Ramfelt a écrit :
> > I think I see the problem you are specifying the View name as a UNC
> > format. The view name (read view tag) should be just a simple name for
> > the view and not a path name. The CC plugin is will download all files
> > into the workspace folder. The other SCM plugins download all files to
> > the workspace folder.
> >
> > The folder layout is intended to be like this:
> > jobs\
> >    jobname\
> >       workspace\
> >           ClearCaseViewPath (or the name of the view)
> >              * (Files retrieved from the CC server)
> >
> > Have you tested to just enter a simple name in the "View name" field
> > and then try to build everything?
> >
> > Regards
> > //Erik
> >
> > On 10/23/07, Jean-Marc Taillant <[hidden email]> wrote:
> >
> >> It seems to work manually (from commandline) when specifying the path
> >> with UNC format. Is there a chance to change it in code (I don't have
> >> access to SVN through my enterprise)
> >>
> >> Thanks In Advance,
> >>
> >> Jean-Marc
> >>
> >>
> >>
> >>
> >> Jean-Marc Taillant a écrit :
> >>
> >>> Hello
> >>>
> >>> I would like to build a maven2 project ( a developement site) under
> >>> Clearcase. I have following environment:
> >>>
> >>> - Windows 2000
> >>> - Logged as Administrator
> >>> - Hudson 1.148
> >>> - Tomcat running with Administrator Access right
> >>> - ClearCase Plugin - ver.0.2.1
> >>> - Shared repository on my huson host as follow (with all access)
> >>>   \\myhost\view
> >>>
> >>> I created the maven2 project, but when I try to build the project I
> >>> got following exception in project console logs:
> >>>
> >>> started
> >>> [workspace] $ cleartool mkview -snapshot \\myhost\view\workspace\testlast
> >>> Created view.
> >>> Host-local path:
> >>> myhost:C:\WINDOWS\system32\config\systemprofile\.hudson\jobs\Development
> >>> Team Site\workspace\testlast\view.stg
> >>> Global path:     \\myhost\view\workspace\testlast\view.stg
> >>> Created snapshot view directory "\\myhost\view\workspace\testlast".
> >>> [testlast] $ cleartool setcs ..\configspec62423.txt
> >>> FATAL: CreateProcess: cleartool setcs ..\configspec62423.txt error=267
> >>> java.io.IOException: CreateProcess: cleartool setcs
> >>> ..\configspec62423.txt error=267
> >>>    at java.lang.ProcessImpl.create(Native Method)
> >>>    at java.lang.ProcessImpl.<init>(Unknown Source)
> >>>    at java.lang.ProcessImpl.start(Unknown Source)
> >>>    at java.lang.ProcessBuilder.start(Unknown Source)
> >>>    at java.lang.Runtime.exec(Unknown Source)
> >>>    at hudson.Proc$LocalProc.<init>(Proc.java:80)
> >>>    at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
> >>>    at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
> >>>    at hudson.Launcher.launch(Launcher.java:119)
> >>>    at hudson.Launcher.launch(Launcher.java:71)
> >>>    at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:262)
> >>>    at
> >>> hudson.plugins.clearcase.ClearCaseSCM.editConfigSpec(ClearCaseSCM.java:201)
> >>>
> >>>    at
> >>> hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:109)
> >>>    at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
> >>>    at
> >>> hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
> >>>
> >>>    at
> >>> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
> >>>    at hudson.model.Run.run(Run.java:579)
> >>>    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
> >>>    at hudson.model.ResourceController.execute(ResourceController.java:70)
> >>>    at hudson.model.Executor.run(Executor.java:62)
> >>>
> >>>
> >>> When I try to execute manually the "cleartool setcs
> >>> ..\configspec62423.txt" from command line, it works.
> >>>
> >>> It prevents us to use Hudson in our Enterprise Environment.
> >>>
> >>> Any idea ?
> >>>
> >>> Thanks In advance
> >>>
> >>>
> >>> Jean-Marc
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [hidden email]
> >>> For additional commands, e-mail: [hidden email]
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with ClearCase plugin (setc and relative path)

Erik Ramfelt
In reply to this post by Jean-Marc Taillant
I think I was wrong when I thought it was a problem with the mkview
command. When I looked at your exception again it looks like it is
hudson.Launcher.launch() that can not be launched in the UNC path.

The "cleartool setcs" command must be executed within the snapshot
directory, so the CC plugin writes the config spec to a file location
where it can be read, then it will execute "cleartool setcs
<filename>" in the snapshot directory.


So we probably need to look into why the launch command throws the
exception when it is executed in the UNC path. Perhaps Kohsuke has
some more info on this.


I dont have any good solution right now, but a workaround would be to
set up everything in hudson and check the "use update", build the
first time and let it fail. Then execute the "cleartool setcs" command
from the snapshot directory. Building after this would only execute
"cleartool update" and would not remove/create/setcs the snapshot
views.


Regards
//Erik


On 10/23/07, Jean-Marc Taillant <[hidden email]> wrote:

> Hello
>
> I would like to build a maven2 project ( a developement site) under
> Clearcase. I have following environment:
>
> - Windows 2000
> - Logged as Administrator
> - Hudson 1.148
> - Tomcat running with Administrator Access right
> - ClearCase Plugin - ver.0.2.1
> - Shared repository on my huson host as follow (with all access)
>    \\myhost\view
>
> I created the maven2 project, but when I try to build the project I got
> following exception in project console logs:
>
> started
> [workspace] $ cleartool mkview -snapshot \\myhost\view\workspace\testlast
> Created view.
> Host-local path:
> myhost:C:\WINDOWS\system32\config\systemprofile\.hudson\jobs\Development
> Team Site\workspace\testlast\view.stg
> Global path:     \\myhost\view\workspace\testlast\view.stg
> Created snapshot view directory "\\myhost\view\workspace\testlast".
> [testlast] $ cleartool setcs ..\configspec62423.txt
> FATAL: CreateProcess: cleartool setcs ..\configspec62423.txt error=267
> java.io.IOException: CreateProcess: cleartool setcs
> ..\configspec62423.txt error=267
>     at java.lang.ProcessImpl.create(Native Method)
>     at java.lang.ProcessImpl.<init>(Unknown Source)
>     at java.lang.ProcessImpl.start(Unknown Source)
>     at java.lang.ProcessBuilder.start(Unknown Source)
>     at java.lang.Runtime.exec(Unknown Source)
>     at hudson.Proc$LocalProc.<init>(Proc.java:80)
>     at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
>     at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
>     at hudson.Launcher.launch(Launcher.java:119)
>     at hudson.Launcher.launch(Launcher.java:71)
>     at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:262)
>     at
> hudson.plugins.clearcase.ClearCaseSCM.editConfigSpec(ClearCaseSCM.java:201)
>     at
> hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:109)
>     at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
>     at
> hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
>     at
> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
>     at hudson.model.Run.run(Run.java:579)
>     at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
>     at hudson.model.ResourceController.execute(ResourceController.java:70)
>     at hudson.model.Executor.run(Executor.java:62)
>
>
> When I try to execute manually the "cleartool setcs
> ..\configspec62423.txt" from command line, it works.
>
> It prevents us to use Hudson in our Enterprise Environment.
>
> Any idea ?
>
> Thanks In advance
>
>
> Jean-Marc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with ClearCase plugin (setc and relative path)

Jean-Marc Taillant
Thansk for your help. Actually, you were right regarding the colocated
server. Now it's done (I set a default place for snapshot view  through
svrstor.exe under windows). All is ok I can see my snapshot view created.

Thanks for your precious help

Jean-Marc

Erik Ramfelt a écrit :

> I think I was wrong when I thought it was a problem with the mkview
> command. When I looked at your exception again it looks like it is
> hudson.Launcher.launch() that can not be launched in the UNC path.
>
> The "cleartool setcs" command must be executed within the snapshot
> directory, so the CC plugin writes the config spec to a file location
> where it can be read, then it will execute "cleartool setcs
> <filename>" in the snapshot directory.
>
>
> So we probably need to look into why the launch command throws the
> exception when it is executed in the UNC path. Perhaps Kohsuke has
> some more info on this.
>
>
> I dont have any good solution right now, but a workaround would be to
> set up everything in hudson and check the "use update", build the
> first time and let it fail. Then execute the "cleartool setcs" command
> from the snapshot directory. Building after this would only execute
> "cleartool update" and would not remove/create/setcs the snapshot
> views.
>
>
> Regards
> //Erik
>
>
> On 10/23/07, Jean-Marc Taillant <[hidden email]> wrote:
>  
>> Hello
>>
>> I would like to build a maven2 project ( a developement site) under
>> Clearcase. I have following environment:
>>
>> - Windows 2000
>> - Logged as Administrator
>> - Hudson 1.148
>> - Tomcat running with Administrator Access right
>> - ClearCase Plugin - ver.0.2.1
>> - Shared repository on my huson host as follow (with all access)
>>    \\myhost\view
>>
>> I created the maven2 project, but when I try to build the project I got
>> following exception in project console logs:
>>
>> started
>> [workspace] $ cleartool mkview -snapshot \\myhost\view\workspace\testlast
>> Created view.
>> Host-local path:
>> myhost:C:\WINDOWS\system32\config\systemprofile\.hudson\jobs\Development
>> Team Site\workspace\testlast\view.stg
>> Global path:     \\myhost\view\workspace\testlast\view.stg
>> Created snapshot view directory "\\myhost\view\workspace\testlast".
>> [testlast] $ cleartool setcs ..\configspec62423.txt
>> FATAL: CreateProcess: cleartool setcs ..\configspec62423.txt error=267
>> java.io.IOException: CreateProcess: cleartool setcs
>> ..\configspec62423.txt error=267
>>     at java.lang.ProcessImpl.create(Native Method)
>>     at java.lang.ProcessImpl.<init>(Unknown Source)
>>     at java.lang.ProcessImpl.start(Unknown Source)
>>     at java.lang.ProcessBuilder.start(Unknown Source)
>>     at java.lang.Runtime.exec(Unknown Source)
>>     at hudson.Proc$LocalProc.<init>(Proc.java:80)
>>     at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
>>     at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
>>     at hudson.Launcher.launch(Launcher.java:119)
>>     at hudson.Launcher.launch(Launcher.java:71)
>>     at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:262)
>>     at
>> hudson.plugins.clearcase.ClearCaseSCM.editConfigSpec(ClearCaseSCM.java:201)
>>     at
>> hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:109)
>>     at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
>>     at
>> hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
>>     at
>> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
>>     at hudson.model.Run.run(Run.java:579)
>>     at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
>>     at hudson.model.ResourceController.execute(ResourceController.java:70)
>>     at hudson.model.Executor.run(Executor.java:62)
>>
>>
>> When I try to execute manually the "cleartool setcs
>> ..\configspec62423.txt" from command line, it works.
>>
>> It prevents us to use Hudson in our Enterprise Environment.
>>
>> Any idea ?
>>
>> Thanks In advance
>>
>>
>> Jean-Marc
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>    
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with ClearCase plugin (setc and relative path)

Erik Ramfelt
Good to hear that it works now! Could you please write a short
description on how you solved the problem so I can add it to a FAQ for
CC plugin?


I think I will do some tests with the launch command to see why you
saw that exception.


Regards
//Erik

On 10/23/07, Jean-Marc Taillant <[hidden email]> wrote:

> Thansk for your help. Actually, you were right regarding the colocated
> server. Now it's done (I set a default place for snapshot view  through
> svrstor.exe under windows). All is ok I can see my snapshot view created.
>
> Thanks for your precious help
>
> Jean-Marc
>
> Erik Ramfelt a écrit :
> > I think I was wrong when I thought it was a problem with the mkview
> > command. When I looked at your exception again it looks like it is
> > hudson.Launcher.launch() that can not be launched in the UNC path.
> >
> > The "cleartool setcs" command must be executed within the snapshot
> > directory, so the CC plugin writes the config spec to a file location
> > where it can be read, then it will execute "cleartool setcs
> > <filename>" in the snapshot directory.
> >
> >
> > So we probably need to look into why the launch command throws the
> > exception when it is executed in the UNC path. Perhaps Kohsuke has
> > some more info on this.
> >
> >
> > I dont have any good solution right now, but a workaround would be to
> > set up everything in hudson and check the "use update", build the
> > first time and let it fail. Then execute the "cleartool setcs" command
> > from the snapshot directory. Building after this would only execute
> > "cleartool update" and would not remove/create/setcs the snapshot
> > views.
> >
> >
> > Regards
> > //Erik
> >
> >
> > On 10/23/07, Jean-Marc Taillant <[hidden email]> wrote:
> >
> >> Hello
> >>
> >> I would like to build a maven2 project ( a developement site) under
> >> Clearcase. I have following environment:
> >>
> >> - Windows 2000
> >> - Logged as Administrator
> >> - Hudson 1.148
> >> - Tomcat running with Administrator Access right
> >> - ClearCase Plugin - ver.0.2.1
> >> - Shared repository on my huson host as follow (with all access)
> >>    \\myhost\view
> >>
> >> I created the maven2 project, but when I try to build the project I got
> >> following exception in project console logs:
> >>
> >> started
> >> [workspace] $ cleartool mkview -snapshot \\myhost\view\workspace\testlast
> >> Created view.
> >> Host-local path:
> >> myhost:C:\WINDOWS\system32\config\systemprofile\.hudson\jobs\Development
> >> Team Site\workspace\testlast\view.stg
> >> Global path:     \\myhost\view\workspace\testlast\view.stg
> >> Created snapshot view directory "\\myhost\view\workspace\testlast".
> >> [testlast] $ cleartool setcs ..\configspec62423.txt
> >> FATAL: CreateProcess: cleartool setcs ..\configspec62423.txt error=267
> >> java.io.IOException: CreateProcess: cleartool setcs
> >> ..\configspec62423.txt error=267
> >>     at java.lang.ProcessImpl.create(Native Method)
> >>     at java.lang.ProcessImpl.<init>(Unknown Source)
> >>     at java.lang.ProcessImpl.start(Unknown Source)
> >>     at java.lang.ProcessBuilder.start(Unknown Source)
> >>     at java.lang.Runtime.exec(Unknown Source)
> >>     at hudson.Proc$LocalProc.<init>(Proc.java:80)
> >>     at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
> >>     at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
> >>     at hudson.Launcher.launch(Launcher.java:119)
> >>     at hudson.Launcher.launch(Launcher.java:71)
> >>     at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:262)
> >>     at
> >> hudson.plugins.clearcase.ClearCaseSCM.editConfigSpec(ClearCaseSCM.java:201)
> >>     at
> >> hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:109)
> >>     at hudson.model.AbstractProject.checkout(AbstractProject.java:529)
> >>     at
> >> hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:213)
> >>     at
> >> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:179)
> >>     at hudson.model.Run.run(Run.java:579)
> >>     at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
> >>     at hudson.model.ResourceController.execute(ResourceController.java:70)
> >>     at hudson.model.Executor.run(Executor.java:62)
> >>
> >>
> >> When I try to execute manually the "cleartool setcs
> >> ..\configspec62423.txt" from command line, it works.
> >>
> >> It prevents us to use Hudson in our Enterprise Environment.
> >>
> >> Any idea ?
> >>
> >> Thanks In advance
> >>
> >>
> >> Jean-Marc
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]