Re: Ant Build Failed :Package com.webobjects.appserver does not exist
Re: Ant Build Failed :Package com.webobjects.appserver does not exist
- Subject: Re: Ant Build Failed :Package com.webobjects.appserver does not exist
- From: Bogdan Zlatanov <email@hidden>
- Date: Tue, 26 Mar 2013 08:31:57 +0100
Hi,
Could you share your .classpath contents? I get the feeling you're doing something funky or your system is not properly set up.
Cheers.
On 26 Mar 2013, at 06:05, miriyala srinivas wrote:
> Hi All,
> I am trying to deploy webobjects application into tomcat ,for this I am running ant script which come up with the project by default and I am quire sure I have done required things like changing webXML is set true and added javawojspservelt.jar in classpath and added LICENSE file in the project root and I set the wolips.properties file also but while compiling ant is unable to find the required jars.Any Idea on this?
>
> Below is my complete Stack-Trace
>
>
> Buildfile: C:\Users\SONY\workspace\Test1\build.xml
> init.properties:
> init.build:
> compile:
> [wocompile] C:\Users\SONY\workspace\Test1\build.xml:206: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
> build.woapp:
> [woapplication] Installing Test1 in dist
> [woapplication] 'Windows Vista' is some kind of windows, skipping chmod.
> javaclient:
> ssdd:
> war:
> split:
> [mkdir] Created dir: C:\Users\SONY\workspace\Test1\dist\Split
> [copy] Copied 1 empty directory to 1 empty directory under C:\Users\SONY\workspace\Test1\dist\Split\WebObjects\Test1.woa
> package:
> [tar] Building tar: C:\Users\SONY\workspace\Test1\dist\Test1-Application.tar.gz
> [tar] Building tar: C:\Users\SONY\workspace\Test1\dist\Test1-WebServerResources.tar.gz
> build:
> init.properties:
> init.install:
> compile:
> [wocompile] C:\Users\SONY\workspace\Test1\build.xml:206: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
> build.woapp:
> [woapplication] Installing Test1 in dist
> javaclient:
> ssdd:
> war:
> split:
> package:
> [tar] Building tar: C:\Users\SONY\workspace\Test1\dist\Test1-Application.tar.gz
> [tar] Nothing to do: C:\Users\SONY\workspace\Test1\dist\Test1-WebServerResources.tar.gz is up to date.
> install:
> init.properties:
> clean:
> [delete] Deleting directory C:\Users\SONY\workspace\Test1\bin
> [delete] Deleting directory C:\Users\SONY\workspace\Test1\dist
> init.properties:
> init.install:
> init.properties:
> init.build:
> init.properties:
> init.properties:
> compile:
> [mkdir] Created dir: C:\Users\SONY\workspace\Test1\bin
> [wocompile] C:\Users\SONY\workspace\Test1\build.xml:206: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
> [wocompile] Compiling 4 source files to C:\Users\SONY\workspace\Test1\bin
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Application.java:4: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WOApplication;
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Application.java:5: package com.webobjects.foundation does not exist
> [wocompile] import com.webobjects.foundation.NSLog;
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Application.java:7: cannot find symbol
> [wocompile] symbol: class WOApplication
> [wocompile] public class Application extends WOApplication {
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\DirectAction.java:4: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WOActionResults;
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\DirectAction.java:5: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WORequest;
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\DirectAction.java:6: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WODirectAction;
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\DirectAction.java:10: cannot find symbol
> [wocompile] symbol: class WODirectAction
> [wocompile] public class DirectAction extends WODirectAction {
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\DirectAction.java:11: cannot find symbol
> [wocompile] symbol : class WORequest
> [wocompile] location: class your.app.DirectAction
> [wocompile] public DirectAction(WORequest request) {
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\DirectAction.java:15: cannot find symbol
> [wocompile] symbol : class WOActionResults
> [wocompile] location: class your.app.DirectAction
> [wocompile] public WOActionResults defaultAction() {
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Session.java:4: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WOSession;
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Session.java:6: cannot find symbol
> [wocompile] symbol: class WOSession
> [wocompile] public class Session extends WOSession {
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\components\Main.java:4: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WOComponent;
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\components\Main.java:5: package com.webobjects.appserver does not exist
> [wocompile] import com.webobjects.appserver.WOContext;
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\components\Main.java:7: cannot find symbol
> [wocompile] symbol: class WOComponent
> [wocompile] public class Main extends WOComponent {
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\components\Main.java:10: cannot find symbol
> [wocompile] symbol : class WOContext
> [wocompile] location: class your.app.components.Main
> [wocompile] public Main(WOContext context) {
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Application.java:9: cannot find symbol
> [wocompile] symbol : variable WOApplication
> [wocompile] location: class your.app.Application
> [wocompile] WOApplication.main(argv, Application.class);
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Application.java:13: cannot find symbol
> [wocompile] symbol : method name()
> [wocompile] location: class your.app.Application
> [wocompile] NSLog.out.appendln("Welcome to " + name() + " !");
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Application.java:13: package NSLog does not exist
> [wocompile] NSLog.out.appendln("Welcome to " + name() + " !");
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\Application.java:15: cannot find symbol
> [wocompile] symbol : method setAllowsConcurrentRequestHandling(boolean)
> [wocompile] location: class your.app.Application
> [wocompile] setAllowsConcurrentRequestHandling(true);
> [wocompile] ^
> [wocompile] C:\Users\SONY\workspace\Test1\Sources\your\app\DirectAction.java:16: cannot find symbol
> [wocompile] symbol : method pageWithName(java.lang.String)
> [wocompile] location: class your.app.DirectAction
> [wocompile] return pageWithName(Main.class.getName());
> [wocompile] ^
> [wocompile] 20 errors
>
> BUILD FAILED
> C:\Users\SONY\workspace\Test1\build.xml:206: Compile failed; see the compiler error output for details.
>
> Total time: 2 seconds
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden