Re: Running the Tapestry Tutorial

2006-06-04 Thread Murray Collingwood
Hi folks
 
I have updated the INFO.txt file that is downloaded with the tapestry-tutorial - would somebody like to review and update this back into the zip file, it may help somebody else following me...
 
Cheers
mc-- Murray CollingwoodFocus Computingp +61 415 24 26 24http://www.focus-computing.com.au 
tapestry-libraries.tar.gz

Ccontains just the Tapestry libraries, including all the current 
dependencies.

tapestry-tutorials.tar.gz

Contains the libraries as well as all of the Tapestry QuickStart 
tutorials.

The QuickStart Tutorials are distributed as a set of Eclipse workspaces 
(though Ant build files are supplied as well).  They depend on an 
Eclipse User
Library to locate the libraries.  You can create a User Library as 
follows:

- Select Window -> Preferences... from the menu
- Navigate to Java / Build Path / User Libraries
- Click New
- Name the library "Tapestry Libraries"
- Click Add Jars ...
- Add all the JAR files in the tapestry-libraries/lib/web folder

To build the tutorials you needs ensure you are running JDK v5.0 (comes
after v1.4).  

Extract the downloaded files to a new directory, eg 
C:\TapestryTutorials. 
Don't extract it into your existing workspace.  From Eclipse select 
File |
Import... 'Existing projects into workspace', click the 'Browse' button 
to 
select a root directory, select the directory you extracted your 
download
to.  In my case above I selected C:\TapestryTutorials.  The import 
projects
dialog should display all of the projects that can be imported, these 
include 'directlink', 'forms', and 'helloworld' (depending on the 
version
of the tutorials you have downloaded). 

To build the projects you have imported you should find a 'build.xml' 
file 
inside each project.  Right mouse on the 'build.xml' and select 'Run 
As' |
'Ant Build'.

Problems: The most likely problem is an issue compiling the project due 
to 
errors with the annotations, eg "@Persist".  If this is the problem 
then 
you need to find why your system is not using the JDK v5.0 libraries.  
It 
may still be referencing an older version somewhere.  Check through the 
Windows | Preferences, the project properties (right mouse on the 
project),
and the Ant build properties (right mouse on the 'build.xml' and select
"Run As" | "Ant Build...").


tapestry-examples-xxx.tar.gz

A prebuilt JBoss distribution, containing the Tapestry Workbench and 
Virtual Library
applications.

Unpack the distribution, change the bin directory, and use the run.bat 
or
run.sh script to start up JBoss and the examples.

See http://jakarta.apache.org/tapestry/examples/index.html for details.-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Running the Tapestry Tutorial

2006-06-02 Thread Murray Collingwood

Brilliant!

I looked through the 'Ant Build...' dialog and found there was a 'tools.jar'
file being referenced from a v1.4 installation on my computer.  There was no
'tools.jar' in my 5.0 library...hmmm?  I went hunting on my machine (good on
Google Desktop) and found a tools.jar v5.0 in my "Program Files" directory,
copied all of the libs from this area into my v5.0 j2se library and it now
compiles perfectly.

Now I can start the tutorial properly...

Cheers
mc



--
Murray Collingwood
Focus Computing
p +61 415 24 26 24
http://www.focus-computing.com.au


Re: Running the Tapestry Tutorial

2006-06-02 Thread Alan Chaney

Just thought of this - its late here and I'm hot and tired...
Actually did you try 'Run As > Ant Build...' and then setting the 
environment options? I've done that before and it worked.



Regards

Alan Chaney

Alan Chaney wrote:


Hi Murray

Looks like Eclipse has decided to use 1.4 instead of 5.0 when 
executing your build.xml. Maybe Ant is picking up the default compiler 
for your system, rather than the project specific one. I often find 
that Eclipse can get very confused (as they say in the UK "get its 
knickers in a twist") and you might find a project 'clean' and 
restarting Eclipse may be helpful. Or not! Good luck.


Regards

Alan Chaney



Murray Collingwood wrote:


Hi, managed to fix this on my own.

In Eclipse there is a setting in Windows | Preferences... under Java |
Compiler indicating the compiler compliance level, mine was set to 
1.4 and

is now changed to 5.0 - this seems to have resolved the problem with the
"@Persist".

I then right mouse on the project's "build.xml" and run this.

The output from my build creates further errors:


Buildfile: *C:\TapestryTutorial\directlink\build.xml

compile*:

[*mkdir*] Created dir: C:\TapestryTutorial\directlink\target\classes

[*javac*] Compiling 1 source file to
C:\TapestryTutorial\directlink\target\classes

[*javac*] *
C:\TapestryTutorial\directlink\src\java\tutorials\directlink\pages\Home.java 


*:8: illegal character: \64

[*javac*] @Persist

[*javac*] ^

[*javac*] *
C:\TapestryTutorial\directlink\src\java\tutorials\directlink\pages\Home.java 


*:9:  expected

[*javac*] public abstract int getCounter();

[*javac*] ^

[*javac*] 2 errors

BUILD FAILED
It looks as though my ant build isn't picking up the annotations. (I 
haven't

used annotations before so I'm not sure what to do apart from check the
compiler compliance for the buildhow do I do that?)

Anybodyhhhllp...

Cheers
mc



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running the Tapestry Tutorial

2006-06-02 Thread Alan Chaney

Hi Murray

Looks like Eclipse has decided to use 1.4 instead of 5.0 when executing 
your build.xml. Maybe Ant is picking up the default compiler for your 
system, rather than the project specific one. I often find that Eclipse 
can get very confused (as they say in the UK "get its knickers in a 
twist") and you might find a project 'clean' and restarting Eclipse may 
be helpful. Or not! Good luck.


Regards

Alan Chaney



Murray Collingwood wrote:


Hi, managed to fix this on my own.

In Eclipse there is a setting in Windows | Preferences... under Java |
Compiler indicating the compiler compliance level, mine was set to 1.4 
and

is now changed to 5.0 - this seems to have resolved the problem with the
"@Persist".

I then right mouse on the project's "build.xml" and run this.

The output from my build creates further errors:


Buildfile: *C:\TapestryTutorial\directlink\build.xml

compile*:

[*mkdir*] Created dir: C:\TapestryTutorial\directlink\target\classes

[*javac*] Compiling 1 source file to
C:\TapestryTutorial\directlink\target\classes

[*javac*] *
C:\TapestryTutorial\directlink\src\java\tutorials\directlink\pages\Home.java 


*:8: illegal character: \64

[*javac*] @Persist

[*javac*] ^

[*javac*] *
C:\TapestryTutorial\directlink\src\java\tutorials\directlink\pages\Home.java 


*:9:  expected

[*javac*] public abstract int getCounter();

[*javac*] ^

[*javac*] 2 errors

BUILD FAILED
It looks as though my ant build isn't picking up the annotations. (I 
haven't

used annotations before so I'm not sure what to do apart from check the
compiler compliance for the buildhow do I do that?)

Anybodyhhhllp...

Cheers
mc



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running the Tapestry Tutorial

2006-06-02 Thread Murray Collingwood

Hi, managed to fix this on my own.

In Eclipse there is a setting in Windows | Preferences... under Java |
Compiler indicating the compiler compliance level, mine was set to 1.4 and
is now changed to 5.0 - this seems to have resolved the problem with the
"@Persist".

I then right mouse on the project's "build.xml" and run this.

The output from my build creates further errors:


Buildfile: *C:\TapestryTutorial\directlink\build.xml

compile*:

[*mkdir*] Created dir: C:\TapestryTutorial\directlink\target\classes

[*javac*] Compiling 1 source file to
C:\TapestryTutorial\directlink\target\classes

[*javac*] *
C:\TapestryTutorial\directlink\src\java\tutorials\directlink\pages\Home.java
*:8: illegal character: \64

[*javac*] @Persist

[*javac*] ^

[*javac*] *
C:\TapestryTutorial\directlink\src\java\tutorials\directlink\pages\Home.java
*:9:  expected

[*javac*] public abstract int getCounter();

[*javac*] ^

[*javac*] 2 errors

BUILD FAILED
It looks as though my ant build isn't picking up the annotations. (I haven't
used annotations before so I'm not sure what to do apart from check the
compiler compliance for the buildhow do I do that?)

Anybodyhhhllp...

Cheers
mc

--
Murray Collingwood
Focus Computing
p +61 415 24 26 24
http://www.focus-computing.com.au


Re: Running the Tapestry Tutorial

2006-06-02 Thread Murray Collingwood

Thanks Jesse - I have now been able to load the tutorials.  I found the best
method was to extract the downloads to some location (not my workspace) and
then within Eclipse do the Windows | Preference setting to identify the
Tapestry Libraries, followed by File | Import an existing project, browse to
the place I extract the downloads and they should all appear in the
selection dialog.

I'm having one more problem...
"Syntax error, annotations are only available if source level is 5.0"

The line being referenced is in Home.java and reads...
"@Persist"

I have loaded J2SE 1.5.0_07 yet still this problem remains.  Is there
something I've forgotten or missed

Cheers
mc


--
Murray Collingwood
Focus Computing
p +61 415 24 26 24
http://www.focus-computing.com.au


Re: Running the Tapestry Tutorial

2006-06-01 Thread Jesse Kuhnert

No idea what the tutorial stuff is showing, but I do know if you check out
either tacos (http://tacos.sourceforge.net ) or the current tapestry4 trunk
version (trunk from either project) you will find eclipse shared run
configurations for the tacos demo or the upcoming (unreleased / documented)
tapestry4.1 tutorial application.

On 6/2/06, Murray Collingwood <[EMAIL PROTECTED]> wrote:


Hi folks

Sorry, this is a real newby question - how do you run the Tapestry
Tutorial
in Eclipse?

I have installed Eclipse 3.1 (C:\Eclipse) and downloaded the Tapestry
Tutorial zip.  I extracted the Tutorial files into a folder -
C:\TapestryTutorial

I found a file called "INFO.txt" and tried to follow the instructions here
but they didn't help me find anything to work with.

The contents of the Tapestry Tutorial zip look nothing like the directory
layouts described on the Tapestry Quickstart page.
http://jakarta.apache.org/tapestry/QuickStart/index.html#Pre-requisistes

I must be missing something basic - somebody please help.

Cheers
mc



--
Murray Collingwood
Focus Computing
p +61 415 24 26 24
http://www.focus-computing.com.au





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Running the Tapestry Tutorial

2006-06-01 Thread Murray Collingwood

Hi folks

Sorry, this is a real newby question - how do you run the Tapestry Tutorial
in Eclipse?

I have installed Eclipse 3.1 (C:\Eclipse) and downloaded the Tapestry
Tutorial zip.  I extracted the Tutorial files into a folder -
C:\TapestryTutorial

I found a file called "INFO.txt" and tried to follow the instructions here
but they didn't help me find anything to work with.

The contents of the Tapestry Tutorial zip look nothing like the directory
layouts described on the Tapestry Quickstart page.
http://jakarta.apache.org/tapestry/QuickStart/index.html#Pre-requisistes

I must be missing something basic - somebody please help.

Cheers
mc



--
Murray Collingwood
Focus Computing
p +61 415 24 26 24
http://www.focus-computing.com.au