Re: New Web Components failing to compile?
Re: New Web Components failing to compile?
- Subject: Re: New Web Components failing to compile?
- From: Martin Fled <email@hidden>
- Date: Thu, 23 Mar 2006 05:44:43 -0800 (PST)
Jeffrey Pearson <email@hidden> wrote:
Next issue.
When I add a web component, it fails to compile??
Steps I took:
Right-Click on Web Components in the Groups/Files panel.
Select Add->New File
Select WebObjects->Component
Click Next
Name it (ie Publishers)
Location is ~/metropolisadmin
Add to project: metropolisadmin
All Three targets selected (I have also tried just metropolisadmin
target selected)
Click Finish
When XCode finishes what it is doing, I select Build and Go.
Here is the class file created:
//
// Publishers.java: Class file for WO Component 'Publishers'
// Project metropolisadmin
//
// Created by jeffreypearson on 3/22/06
//
import com.webobjects.foundation.*;
import com.webobjects.appserver.*;
import com.webobjects.eocontrol.*;
import
com.webobjects.eoaccess.*;
public class Publishers extends WOComponent {
public Publishers(WOContext context) {
super(context);
}
}
Get errors:
Publishers.java:9: package com.webobjects.appserver does not exist
Publishers.java:11: package com.webobjects.eoaccess does not exist
Publishers.java:13: cannot resolve symbol (which is the public class
Publishers extends WOComponent line)
Publishers.java:15: cannot resolve symbol (which is the Public
Publishers(WOContext context) line)
How can this be erroring with the template file that is autogenerated?
Jeff
Jeff, when you are adding new component, add it only to App Server target. Web Server target is only for graphics, css files etc. All java code and components should go to App Server. You never need to add anything to your project target, it is only a wrapper on App Server and Web Server targets.
Martin
New
Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.
_______________________________________________
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