Re: New Web Components failing to compile?
Re: New Web Components failing to compile?
- Subject: Re: New Web Components failing to compile?
- From: Chuck Hill <email@hidden>
- Date: Wed, 22 Mar 2006 18:33:23 -0800
I somehow sense that you are starting a deep and long love affair
with targets. :-P
On Mar 22, 2006, at 6:27 PM, Jeffrey Pearson 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
Changes are excellent that WebObjects does, in fact, exist. This
message is a hint from Xcode that you have added the web component to
the wrong target. It needs to be added to the Application Server
target.
Eclipse has no targets...
<walks away whistling>
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden