RE: Newbiw question: adding EOModel to project
RE: Newbiw question: adding EOModel to project
- Subject: RE: Newbiw question: adding EOModel to project
- From: Jonathan Rochkind <email@hidden>
- Date: Mon, 19 Jan 2004 15:51:25 -0600
At 1:15 PM -0800 1/19/04, Alex Boster wrote:
So I should just be adding index.eomodelld to Resources?
You should add the entire "NameOfModel.eomodel" _directory_ to
Resources, not just the "index.eomodeld" file within it.
Also, although the other projects in the book so far have built fine,
this one is failing on:
Application.java:3: package com.webobjects.foundation does not exist
I don't know what's causing that, sorry. It is not related to the
models. Wait... Look at your list of 'frameworks'. It should
include several standard Apple frameworks, including
"JavaWebObjects.framework". If it does not, add that framework
(which you can find at C:/Apple/Library/Frameworks, I believe).
Maybe you accidentally removed it. If it already includes this... I
have no idea.
Sorry, I actually just recently switched from Windows to OSX
development, so I'm going on memory here, and I think I've now
exhausted my memory.
--Jonathan
Which suggests that the environment is broken -- except that it wasn't
yesterday. :( At least not for the other sample projects. The complete
build message is below.
Alex
== Making Authors for ==
Pre-build setup...
C:/Apple/Developer/Executables/javatool.exe -javac
C:/J2SDK1~1.2_0/bin/javac.exe -classpath
";C:\Apple\Library\Frameworks\JavaJDBCAdaptor.framework\Resources\Java\j
avajdbcadaptor.jar;C:\Apple\Library\Frameworks\JavaFoundation.framework;
C:\Apple\Library\Frameworks\JavaXML.framework\Resources\Java\javaxml.jar
;C:\Apple\Library\Frameworks\JavaEOControl.framework\Resources\Java\java
eocontrol.jar;C:\Apple\Library\Frameworks\JavaEOAccess.framework\Resourc
es\Java\javaeoaccess.jar;C:\Apple\Library\Frameworks\JavaWOExtensions.fr
amework\Resources\Java\JavaWOExtensions.jar;C:\Apple\Library\Frameworks\
JavaWebObjects.framework\Resources\Java\javawebobjects.jar" +classpath
"C:/Apple/Projects/Authors/Authors.build/ejb_server_classes" -extdirs
"C:/Apple/Local/Library/WebObjects/Extensions;C:/PROGRA~1/Java/J2RE14~1.
2_0/lib/ext;C:/J2SDK1~1.2_0/jre/lib/ext" -newer -copy -file_map
C:/Apple/Projects/Authors/Authors.build/derived_src_java/FileMappings.pl
ist -java_src C:/Apple/Projects/Authors/Authors.build/derived_src_java
-java_obj C:/Apple/Projects/Authors/Authors.build/java_classes
Application.java DirectAction.java Session.java Main.java
...skipping ClientSideJava.subproj
...skipping CommonJava.subproj
Building...
...skipping ClientSideJava.subproj
...skipping CommonJava.subproj
Creating info file ...
C:/Apple/Developer/Executables/mergeInfo PB.project
C:/Apple/Projects/Authors/Authors.build/derived_src/Java.plist
CustomInfo.plist -o
C:/Apple/Projects/Authors/Authors.woa/Contents/Info.plist
C:/Apple/Developer/Executables/plistToXML.exe
C:/Apple/Projects/Authors/Authors.woa/Contents/Info.plist
C:/Apple/Developer/Executables/javatool.exe -javac
C:/J2SDK1~1.2_0/bin/javac.exe -classpath
;C:\Apple\Library\Frameworks\JavaJDBCAdaptor.framework\Resources\Java\ja
vajdbcadaptor.jar;C:\Apple\Library\Frameworks\JavaFoundation.framework;C
:\Apple\Library\Frameworks\JavaXML.framework\Resources\Java\javaxml.jar;
C:\Apple\Library\Frameworks\JavaEOControl.framework\Resources\Java\javae
ocontrol.jar;C:\Apple\Library\Frameworks\JavaEOAccess.framework\Resource
s\Java\javaeoaccess.jar;C:\Apple\Library\Frameworks\JavaWOExtensions.fra
mework\Resources\Java\JavaWOExtensions.jar;C:\Apple\Library\Frameworks\J
avaWebObjects.framework\Resources\Java\javawebobjects.jar +classpath
C:/Apple/Projects/Authors/Authors.build/ejb_server_classes -extdirs
C:/Apple/Local/Library/WebObjects/Extensions;C:/PROGRA~1/Java/J2RE14~1.2
_0/lib/ext;C:/J2SDK1~1.2_0/jre/lib/ext -newer -build -java_src
C:/Apple/Projects/Authors/Authors.build/derived_src_java -java_obj
C:/Apple/Projects/Authors/Authors.build/java_classes Application.java
DirectAction.java Session.java Main.java
C:\J2SDK1~1.2_0\bin\javac.exe -d
C:\Apple\Projects\Authors\Authors.build\java_classes -classpath
"C:\Apple\Projects\Authors\Authors.build\java_classes;C:\Apple\Projects\
Authors\Authors.build\derived_src_java;C:\Apple\Projects\Authors\Authors
.build\ejb_server_classes;;C:\Apple\Library\Frameworks\JavaJDBCAdaptor.f
ramework\Resources\Java\javajdbcadaptor.jar;C:\Apple\Library\Frameworks\
JavaFoundation.framework;C:\Apple\Library\Frameworks\JavaXML.framework\R
esources\Java\javaxml.jar;C:\Apple\Library\Frameworks\JavaEOControl.fram
ework\Resources\Java\javaeocontrol.jar;C:\Apple\Library\Frameworks\JavaE
OAccess.framework\Resources\Java\javaeoaccess.jar;C:\Apple\Library\Frame
works\JavaWOExtensions.framework\Resources\Java\JavaWOExtensions.jar;C:\
Apple\Library\Frameworks\JavaWebObjects.framework\Resources\Java\javaweb
objects.jar" -extdirs
"C:\Apple\Local\Library\WebObjects\Extensions;C:\PROGRA~1\Java\J2RE14~1.
2_0\lib\ext;C:\J2SDK1~1.2_0\jre\lib\ext" Application.java
Application.java:3: package com.webobjects.foundation does not exist
import com.webobjects.foundation.*;
^
Application.java:7: cannot access
com.webobjects.foundation.NSKeyValueCoding
file com\webobjects\foundation\NSKeyValueCoding.class not found
public class Application extends WOApplication {
^
Application.java:15: cannot resolve symbol
symbol : variable this
location: class Application
NSLog.out.appendln("Welcome to " + this.name() + " !");
^
Application.java:15: package NSLog does not exist
NSLog.out.appendln("Welcome to " + this.name() + " !");
^
4 errors
javatool exit: C:\J2SDK1~1.2_0\bin\javac.exe failed, exiting
BuildFilter: inferior command exited with code 1
make: *** [build-java-classes-server] Error 1
-----Original Message-----
From: Jonathan Rochkind [mailto:email@hidden]
Sent: Monday, January 19, 2004 1:03 PM
To: Alex Boster; email@hidden
Subject: Re: Newbiw question: adding EOModel to project
At 12:44 PM -0800 1/19/04, Alex Boster wrote:
>I'm using the Windows development environment, which is
basically not
>documented anywhere AFAIK.
>
>Going through the tutorials in the "Web Objects 5: Web Applications"
>book, I'm on Chapter 10, the first project with an EOModel.
However,
>when I create the application, no "Choose EOModels" pane appears for
>the Assistant. Furthermore, when I try to add the model later, the
>dialog that has been described elsewhere where you tell WO
to copy the
>files and build the necessary references to do a proper
addition does
>not appear to be anywhere.
In the Windows PB, WO will _always_ copy the files into the project
folder, you don't have a choice like you do in OSX PB. And, there
aren't multiple reference types in Windows PB like there are in OSX
PB. So you don't need to worry about that. Just add the EOModel,
everything is fine.
The lack of documentation is annoying, but this is in fact one case
where the Windows PB is much simpler and easier than the OSX PB. OSX
PB gives you choices for which there's generally only one right
answer, when developing a WO app. In this case, Windows PB doesn't
give you the choice, it just does the right thing.
--Jonathan
>
>Anyone have suggestions? This seems to be a Windows interface issue
>(not this first I've seen, but the first that's stumped me...)
>
>Alex Boster
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
>http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.