Not sure why the workbench won't compile for you... it works here. :\
The timetracker appears to have duplicate jars:
- tapestry-annotations-4.1.1-SNAPSHOT.jar
- tapestry-annotations-4.1.1-20060827.214823-24.jar
Don't know where the second jar came from, perhaps you could try "mvn
clean install" (add -Dmaven.test.skip=true to skip tests)
Martin
On Mon, 18 Sep 2006 05:48:52 +0200, Irv Salisbury
<[EMAIL PROTECTED]> wrote:
> Ok, so other than getting like 100 WARNING messages that resource XYZ
> could
> not be loaded, I am trying to build and run the example apps. The vlib
> ones
> seem to just create jars, so they won't tell me much. The TimeTracker
> builds a WAR file, but when deployed, I get this error (tomcat 5.5.17 on
> OSX
> intel box):
>
> 1-SNAPSHOT] [ERROR] Servlet /tapestry-TimeTracker-4.1.1-SNAPSHOT threw
> load() exception
> org.apache.hivemind.ApplicationRuntimeException: Error: Module
> tapestry.annotation is duplicated! Definition in
> jar:file:/Users/irving/work/apache/apache-tomcat-5.5.17
/webapps/tapestry-
> TimeTracker-4.1.1-SNAPSHOT/WEB-INF/lib/tapestry-
> annotations-4.1.1-SNAPSHOT.jar!/META-INF/hivemodule.xml has been ignored
> in
> favor of existing definition from
> jar:file:/Users/irving/work/apache/apache-
> tomcat-5.5.17/webapps/tapestry-TimeTracker-4.1.1-SNAPSHOT
> /WEB-INF/lib/tapestry-
> annotations-4.1.1-20060827.214823-24.jar!/META-INF/hivemodule.xml.
> at org.apache.hivemind.impl.StrictErrorHandler.error(
> StrictErrorHandler.java:39)
> at
>
org.apache.hivemind.impl.RegistryInfrastructureConstructor.addModuleDescriptor
> (RegistryInfrastructureConstructor.java:202)
> at
> org.apache.hivemind.impl.RegistryBuilder.processModuleDescriptorProvider
(
> RegistryBuilder.java:168)
> at org.apache.hivemind.impl.RegistryBuilder.constructRegistry(
> RegistryBuilder.java:143)
> at org.apache.tapestry.ApplicationServlet.constructRegistry(
> ApplicationServlet.java:253)
> at org.apache.tapestry.ApplicationServlet.init(
> ApplicationServlet.java:194)
> at org.apache.catalina.core.StandardWrapper.loadServlet(
> StandardWrapper.java:1105)
> at org.apache.catalina.core.StandardWrapper.load(
> StandardWrapper.java:932)
> at org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3917)
> at org.apache.catalina.core.StandardContext.start(
> StandardContext.java:4201)
> at org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:759)
> at org.apache.catalina.core.ContainerBase.addChild(
> ContainerBase.java:739)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java
> :524)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java
> :809)
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java
> :698)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
> :472)
> at org.apache.catalina.startup.HostConfig.check(HostConfig.java
> :1190)
> at org.apache.catalina.startup.HostConfig.lifecycleEvent(
> HostConfig.java:292)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
> at org.apache.catalina.core.ContainerBase.backgroundProcess(
> ContainerBase.java:1305)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren
> (ContainerBase.java:1569)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren
> (ContainerBase.java:1578)
> at
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
> ContainerBase.java:1558)
> at java.lang.Thread.run(Thread.java:613)
>
> So, I then moved onto Workbench, and getting this error on compile:
>
> /Users/irving/work/apache/tapestry-4.1-src
/tapestry-examples/Workbench/src/java/org/apache/tapestry/workbench/RequestDecoder.java:[17,26]
> package javax.servlet.http does not exist
>
> /Users/irving/work/apache/tapestry-4.1-src
/tapestry-examples/Workbench/src/java/org/apache/tapestry/workbench/RequestDecoder.java:[42,40]
> cannot find symbol
> symbol : class HttpServletRequest
> location: class org.apache.tapestry.workbench.RequestDecoder
>
> /Users/irving/work/apache/tapestry-4.1-src
/tapestry-examples/Workbench/src/java/org/apache/tapestry/workbench/chart/ChartService.java:[95,29]
> cannot access javax.servlet.http.HttpServletResponse
> file javax/servlet/http/HttpServletResponse.class not found
> JPEGEncoder13.encode(chart, 1.0f, output);
>
> Looks like some standard servlet stuff isn't getting pulled in as a
> compile
> time jar need. I will look into that, but thought I'd include errors a
> newbie was having upon initial trials (in hopes that this will be
> archived
> in case other newbies have the same problem)
>
> Thanks for any info.
>
> Irv
>
> On 9/17/06, Irv Salisbury <[EMAIL PROTECTED]> wrote:
>>
>> That was exactly what I was looking for. Thanks, this will get me
>> started.
>>
>>
>> Irv
>>
>> On 9/17/06, Martin Strand < [EMAIL PROTECTED]> wrote:
>> >
>> > Yeah, Maven is definitely the "greased path" here. :)
>> > If you checkout the whole tapestry project, you can run "mvn
>> > -Dmaven.test.skip=true install" to compile everything and install the
>> > jars
>> > in your local repository:
>> >
>> > [INFO] Tapestry ..............................................
SUCCESS
>> > [1.125s]
>> > [INFO] Core Library ..........................................
SUCCESS
>> > [8.141s]
>> > [INFO] Contrib ...............................................
SUCCESS
>> > [1.656s]
>> > [INFO] Annotations ...........................................
SUCCESS
>> > [0.547s]
>> > [INFO] Portlet ...............................................
SUCCESS
>> > [0.531s]
>> > [INFO] Examples ..............................................
SUCCESS
>> > [0.031s]
>> > [INFO] Tapestry Virtual Library (Beans) ......................
SUCCESS
>> > [0.235s]
>> > [INFO] Tapestry Virtual Library ..............................
SUCCESS
>> > [0.312s]
>> > [INFO] Tapestry Time Tracker .................................
SUCCESS
>> > [1.250s]
>> > [INFO] Tapestry Workbench ....................................
SUCCESS
>> > [0.891s]
>> > [INFO]
>> >
>>
------------------------------------------------------------------------
>> > [INFO]
>> >
>>
------------------------------------------------------------------------
>> > [INFO] BUILD SUCCESSFUL
>> > [INFO]
>> >
>>
------------------------------------------------------------------------
>> > [INFO] Total time: 15 seconds
>> >
>> >
>> > To build the examples, move to the /tapestry-examples dir and run the
>> > same
>> > thing. You'll now have the example wars in your local repo as well as
>> in
>> >
>> > the /target/ dir of each example
>> > (tapestry/tapestry-examples/TimeTracker/target/tapestry-
>> > TimeTracker-4.1.1-SNAPSHOT.war).
>> >
>> > Maven uses these lifecycle phases instead of targets:
>> >
>> >
>>
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
>> >
>> > Martin
>> >
>> > On Mon, 18 Sep 2006 04:55:43 +0200, Irv Salisbury
>> > <[EMAIL PROTECTED] > wrote:
>> > > Thanks, I should have been clearer... My bad. I know to put those
>> in
>> > > there. In the 4.02 stuff I downloaded and got working fine, there
>> > > seemed to
>> > > be a directory structure that was the "greased path" to pull in
>> > > hivemind. I
>> > > basically copied what was in examples to get it working, called the
>> > ant
>> > > targets and everything worked fine. In the 4.1 manual download,
>> all I
>> > > get
>> > > is a bunch of jar files, no examples. So, when I meant "what to do
>> > with
>> > > those" I more meant how to structure a 4.1 app for building.
>> > >
>> > > It looks like I should just use maven for doing this, as it is the
>> > > "greased
>> > > path". Would that be easiest? The doc pages don't really help
for
>> > 4.1.
>> > > They are great for 4.0x.
>> > >
>> > > Of course, whenever I run any of the maven targets, sometimes it is
>> > able
>> > > to
>> > > connect to the repositories, sometimes it isn't. That is always
fun
>> > > about
>> > > using maven. Guess that is another topic for later.
>> > >
>> > > So, assuming I am sitting on a fresh svn checkout of the
repository.
>> > > What
>> > > maven "targets" should I call? Also, inside tapestry-examples, are
>> > there
>> > > maven "targets" to call there?
>> > >
>> > > Thanks.
>> > >
>> > > Irv
>> > >
>> > > Is eve
>> > > On 9/17/06, Martin Strand <[EMAIL PROTECTED] > wrote:
>> > >>
>> > >> > so I need to know what to do with those
>> > >> Not sure what you mean... put them in WEB-INF/lib?
>> > >>
>> > >> If you don't use Maven you will need to download the dependencies
>> > >> manually, they are listed here:
>> > >>
>> > >>
>>
http://tapestry.apache.org/tapestry4.1/tapestry-framework/dependencies.html
>> >
>> > >> You'll need to get everything under "compile" and "provided" and
>> also
>> > >> "commons-io" under "transitive" -> "compile"
>> > >> (However, I doubt tapestry-testng is needed)
>> > >>
>> > >> Once you've got all the jars in WEB-INF/lib, Tapestry 4.1.1 should
>> > work
>> > >> fine. :)
>> > >>
>> > >> Martin
>> > >>
>> > >> On Mon, 18 Sep 2006 04:15:21 +0200, Irv Salisbury
>> > >> <[EMAIL PROTECTED]> wrote:
>> > >>
>> > >> > Ok, so our project uses ant, not maven2. Am I best off getting
>> the
>> > >> > subversion like I am? Or should i get the last 4.1 build (which
>> > was a
>> > >> > bunch
>> > >> > of jar files so I need to know what to do with those)
>> > >> >
>> > >> > Thanks for being patient guys. I realize with just starting
with
>> > >> > tapestry I
>> > >> > am biting off a bit much with 4.1, but that is the only version
>> > that
>> > >> will
>> > >> > give us the dojo ajax stuff we need.
>> > >> >
>> > >> > Irv
>> > >> >
>> > >> > On 9/17/06, Irv Salisbury < [EMAIL PROTECTED]> wrote:
>> > >> >>
>> > >> >> I don't absolutely, but i need a 4.1 version. I don't
>> understand
>> > >> that
>> > >> >> much about the maven repo. How do I use the 4.1.1-SNAPSHOTfrom
>> > the
>> > >> >> maven
>> > >> >> repo?
>> > >> >>
>> > >> >> Thanks,
>> > >> >>
>> > >> >> Irv
>> > >> >>
>> > >> >>
>> > >> >> On 9/17/06, Martin Strand < [EMAIL PROTECTED]> wrote:
>> > >> >> >
>> > >> >> > Are you absolutely sure you need the latest bleeding edge
>> > version?
>> > >> >> > I use 4.1.1-SNAPSHOT from the Maven repo and it works fine:
>> > >> >> > http://tapestry.apache.org/tapestry4.1/download.html
>> > >> >> >
>> > >> >> > Martin
>> > >> >> >
>> > >> >> > On Mon, 18 Sep 2006 03:08:55 +0200, Irv Salisbury
>> > >> >> > <[EMAIL PROTECTED] > wrote:
>> > >> >> >
>> > >> >> > > Upon doing an mvn compile, I am getting this warning:
>> > >> >> > >
>> > >> >> > > [WARNING]
>> > >> >> > > Artifact commons-logging:commons-logging:jar: 1.0.4
>> > >> retains
>> > >> >> > local
>> > >> >> > > scope 'provided' overriding broader scope 'compile'
>> > >> >> > > given by a dependency. If this is not intended,
>> modify
>> > or
>> > >> >> > remove
>> > >> >> > > the
>> > >> >> > > local scope.
>> > >> >> > >
>> > >> >> > > then, I get an error:
>> > >> >> > >
>> > >> >> > >
>> > >> >> /Users/irving/work/apache/tapestry-4.1-src
>> > >>
>> >
>>
/tapestry-annotations/src/java/org/apache/tapestry/annotations/AnnotationMessages.java:[30,55]
>> > >> >> >
>> > >> >> > > cannot access org.apache.commons.logging.Log
>> > >> >> > > file org/apache/commons/logging/Log.class not found
>> > >> >> > > private static final MessageFormatter _formatter = new
>> > >> >> > > MessageFormatter(
>> > >> >> > >
>> > >> >> > > I realize 4.1 is pretty new, but we really need the ajax
>> > stuff.
>> > >> Of
>> > >> >> > > course,
>> > >> >> > > 4.0.2 went very smoothly. I guess I am just more used to
>> ant.
>> > >> Any
>> > >> >> > > pages or
>> > >> >> > > docs that I can be pointed to for buidling or using 4.1
>> would
>> > be
>> > >> >> > great!
>> > >> >> > >
>> > >> >> > > Thanks
>> > >> >> > >
>> > >> >> > > Irv
>> > >> >> > >
>> > >> >> > > On 9/17/06, Irv Salisbury < [EMAIL PROTECTED]> wrote:
>> > >> >> > >>
>> > >> >> > >> As an update, I did get the subversion source. I was able
>> to
>> > >> build
>> > >> >> > most
>> > >> >> > >> of it, but the annotations are dying upon build. I am
>> > building
>> > >> on
>> > >> >> > OSX.
>> > >> >> > >>
>> > >> >> > >> So, i went into the examples directory and did mvn
compile,
>> > >> which
>> > >> >> > seemed
>> > >> >> > >> to build fine. I am trying to figure out how to get a war
>> > file
>> > >> >> now.
>> > >> >> > >> Did a
>> > >> >> > >> mvn war but that didn't work. Didn't see anything at the
>> > build
>> > >> >> pages
>> > >> >> > >> on how
>> > >> >> > >> to do that.
>> > >> >> > >>
>> > >> >> > >> Irv
>> > >> >> > >>
>> > >> >> > >>
>> > >> >> > >> On 9/17/06, Irv Salisbury < [EMAIL PROTECTED] >
>> wrote:
>> > >> >> > >> >
>> > >> >> > >> > Yes, I already looked at that page as I said in my
>> > email. The
>> > >> >> > first
>> > >> >> > >> > thing it tells you is you can download the official
>> > >> >> > jar-only. Doing
>> > >> >> > >> that
>> > >> >> > >> > for 4.02 comes with a whole directory structure that was
>> > >> >> reasonably
>> > >> >> > >> easy
>> > >> >> > >> > to follow how to use the examples, etc. That was fine.
>> I
>> > >> then
>> > >> >> did
>> > >> >> > >> that for
>> > >> >> > >> > 4.1 and just a bunch of jar files came down. Am I
>> supposed
>> > to
>> > >> >> > extract
>> > >> >> > >> > all those? Is there something else to do? The README
>> > didn't
>> > >> >> seem
>> > >> >> > to
>> > >> >> > >> point
>> > >> >> > >> > to anything.
>> > >> >> > >> >
>> > >> >> > >> > The second instructions are to add something to your
>> > project's
>> > >> >> pom
>> > >> >> > >> > file. Our project doesn't have a pom file, and we
aren't
>> > >> using
>> > >> >> > >> maven2. We
>> > >> >> > >> > don't want to use maven2 for our project unless we have
>> to.
>> >
>> > >> We
>> > >> >> use
>> > >> >> >
>> > >> >> > >> ant
>> > >> >> > >> > only.
>> > >> >> > >> >
>> > >> >> > >> > So, I am back at my original question. What is the
>> > preferred
>> > >> >> way,
>> > >> >> > >> > specifically for 4.1 to build and work with it. I have
>> > >> >> downloaded
>> > >> >> > >> > source using subversion and pulled maven down and am
>> > building
>> > >> >> that
>> > >> >> > >> way. Am
>> > >> >> > >> > I on the right track? I realize 4.1 is brand new, but I
>> > just
>> > >> >> want
>> > >> >> > to
>> > >> >> > >> > make sure I am going down the right path.
>> > >> >> > >> >
>> > >> >> > >> > Thanks,
>> > >> >> > >> >
>> > >> >> > >> > Irv
>> > >> >> > >> >
>> > >> >> > >> >
>> > >> >> > >> > On 9/17/06, Norbert Sándor < [EMAIL PROTECTED] >
>> wrote:
>> >
>> > >> >> > >> > >
>> > >> >> > >> > > I recommend you to explore the demo applications. They
>> > >> already
>> > >> >> > have
>> > >> >> > >> > > the
>> > >> >> > >> > > appropriate file structure, dependencies, etc.
>> > >> >> > >> > > For download instructions, see
>> > >> >> > >> > > http://tapestry.apache.org/tapestry4.1/download.html
>> > >> >> > >> > >
>> > >> >> > >> > > Regards,
>> > >> >> > >> > > Norbi
>> > >> >> > >> > >
>> > >> >> > >> > > Irv Salisbury wrote:
>> > >> >> > >> > > > We are trying to explore Tapestry 4.1. We are also
>> not
>> > >> that
>> > >> >> > >> > > familiar
>> > >> >> > >> > > > with
>> > >> >> > >> > > > maven. I downloaded the "official jar" release, but
>> I
>> > had
>> > >> >> > trouble
>> > >> >> > >> > > > figuring
>> > >> >> > >> > > > out what to do with the jar files.
>> > >> >> > >> > > >
>> > >> >> > >> > > > Can someone give me help on the preferred way to
>> > download
>> > >> and
>> > >> >> > >> > > install
>> > >> >> > >> > > > 4.1 to
>> > >> >> > >> > > > get started. It is our first Tapestry app, so keep
>> > that
>> > >> in
>> > >> >> > >> > > mind. We did
>> > >> >> > >> > > > download 4.02 and were able to get a small app
>> working
>> > in
>> > >> >> that.
>> > >> >> > >> > > >
>> > >> >> > >> > > > Should I use subversion, etc?
>> > >> >> > >> > > >
>> > >> >> > >> > > > Thanks,
>> > >> >> > >> > > >
>> > >> >> > >> > > > Irv
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]