On Jun 17, 2009, at 12:22 PM, Chuck Hill wrote:
On Jun 17, 2009, at 8:52 AM, David Avendasora wrote:
Hmm.
I'm hoping for a way to use them that will work within the normal
woproject Ant build process.
I'm running into a problem with path lengths with the folder-based
frameworks when trying to build my fully-embedded applications with
Hudson on Windows 2k. Who ever thougth 256 characters was a
reasonable limit for a path length?!
Isn't it 1024? There are two shells cmd and command. One of those
has a 1024 limit, IIRC. Still too short.
If I try to do the same copy manually (by dragging and dropping, or
copying in cmd.exe (same as what Hudson is using) to complains about
the file name is too long. I can't even create the last directory
(assistant) in the path that it's complaining about - that also errors
saying the path is too long.
So I think what is really happening is that the creation of the
directory is actually what fails first but it doesn't stop the
process. When Ant tries to copy a file into that missing directory it
then fails with "The system cannot find the path specified". That's
my theory.
Windows sucks. That's a fact.
Dave
BUILD FAILED
D:\Hudson\Home\jobs\BakeryManagementWebClient\workspace\Trunk
\build.xml:143: Failed to copy D:\Hudson\Home\jobs
\BakeryManagementWebClient\workspace\Trunk\dist
\BakeryManagementWebClient.woa\Contents\Frameworks
\JavaEORuleSystem.framework\Versions\A\WebServerResources\Java\com
\webobjects\eogeneration\assistant\EOXMLEditor$_DisplayObject.class to
D:\Hudson\Home\jobs\BakeryManagementWebClient\workspace\Trunk\dist
\BakeryManagementWebClient\WEB-INF\BakeryManagementWebClient.woa
\Contents\Frameworks\JavaEORuleSystem.framework\Versions\A
\WebServerResources\Java\com\webobjects\eogeneration\assistant
\EOXMLEditor$_DisplayObject.class due to java.io.FileNotFoundException
D:\Hudson\Home\jobs\BakeryManagementWebClient\workspace\Trunk\dist
\BakeryManagementWebClient\WEB-INF\BakeryManagementWebClient.woa
\Contents\Frameworks\JavaEORuleSystem.framework\Versions\A
\WebServerResources\Java\com\webobjects\eogeneration\assistant
\EOXMLEditor$_DisplayObject.class (The system cannot find the path
specified)
at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:817)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:496)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org
.apache
.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.io.FileNotFoundException: D:\Hudson\Home\jobs
\BakeryManagementWebClient\workspace\Trunk\dist
\BakeryManagementWebClient\WEB-INF\BakeryManagementWebClient.woa
\Contents\Frameworks\JavaEORuleSystem.framework\Versions\A
\WebServerResources\Java\com\webobjects\eogeneration\assistant
\EOXMLEditor$_DisplayObject.class (The system cannot find the path
specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at
org
.apache
.tools
.ant.types.resources.FileResource.getOutputStream(FileResource.java:213)
at
org
.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:
373)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:475)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:304)
at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:805)
... 18 more
Dave
On Jun 17, 2009, at 11:47 AM, Dov Rosenberg wrote:
For our servlet deployed apps, all I did was add them to my WEB-
INF/lib
folder and everything worked great
Dov Rosenberg
On 6/17/09 11:34 AM, "David Avendasora"
<[email protected]> wrote:
Hi all,
I'm wondering what the "correct" way is to use the jar versions
of the
WO frameworks instead of the directory-based ones. Do I just add
them
to the Libraries directory? That doesn't seem right.
And no, I'm not using Maven.
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/drosenberg%40inquira.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
This email sent to [email protected]
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]