You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shing Hing Man <ma...@yahoo.com> on 2008/02/16 23:04:49 UTC
Tap 5.0.10 : Classpath assets no longer accessible In Jboss 4.0.5AG
In tap 5.0.9, I have a text file accessLog.txt at the
root of classpath.
I use mvn package to create the war file and copy the
war file into the
deploy directory of Jobss 4.0.5AG.
In a page, the txt file is accessed in the following
way.
@Inject
@Path("classpath:accessLog.txt")
private Asset accessLog;
URL url = accessLog.getResource().toURL();
String fullPath = url.getPath();
response = new DocumentStreamResponse(fullPath,
MimeType.TEXT
.getSuffice());
After upgrading to tap 5.0.10, I have the following
exception (in Jboss 4.0.5 AG).
java.io.FileNotFoundException: File
'file:/home/matmsh/jbossAS/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp36673tapestry5Demo-exp.war/WEB-INF/lib/tapestry5Demo.jar!/accessLog.txt'
does not exist
at
org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)
at
org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:994)
at
net.sf.utilitiesTap5.utilities.DocumentStreamResponse.getStream(DocumentStreamResponse.java:34)
at
org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:49)
at
org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:28)
at
$ComponentEventResultProcessor_1182421e2ad.processResultValue($ComponentEventResultProcessor_1182421e2ad.java)
at
$ComponentEventResultProcessor_1182421e282.processResultValue($ComponentEventResultProcessor_1182421e282.java)
at
org.apache.tapestry.internal.services.ComponentResultProcessorWrapper.handleResult(ComponentResultProcessorWrapper.java:43)
at
org.apache.tapestry.internal.structure.ComponentPageElementImpl$13.handleResult(ComponentPageElementImpl.java:936)
at
org.apache.tapestry.internal.services.EventImpl.storeResult(EventImpl.java:60)
at
com.man.tapestry5Demo.pages.test.AccessGridSource.dispatchComponentEvent(AccessGridSource.java)
at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:832)
at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:954)
at
org.apache.tapestry.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:62)
at
org.apache.tapestry.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
at
$ComponentEventRequestHandler_1182421e283.handle($ComponentEventRequestHandler_1182421e283.java)
at
org.apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
I noticed in
jboss-4.0.5.GA/server/default/tmp/deploy/tmp36674tapestry5Demo-exp.war/WEB-INF/classes
is empty. (When I use tap 5.0.9, it has
accessLog.txt.)
Any help would be very much appreciated.
Shing
Home page : http://www.lombok.demon.co.uk/
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tap 5.0.10 : Classpath assets no longer accessible In Jboss 4.0.5AG
Posted by Shing Hing Man <ma...@yahoo.com>.
Sorry that I have not given a clear reply.
Everything is fine now.
Changing archiveClasses from true to false resolves
the
problem of not able to find assets in the classpath.
Shing
--- Howard Lewis Ship <hl...@gmail.com> wrote:
> So ... are you back in operation or still blocked?
>
> On Feb 17, 2008 11:48 AM, Shing Hing Man
> <ma...@yahoo.com> wrote:
> > I have not changed my JBoss. I have the same
> problem
> > (with archiveClasses=true) when deploying a Tap
> 5.0.10
> > war file into a standalone Tomcat 5.5.20. If the
> > problem is caused by recently changes in Tapestry
> 5,
> > someone else should experience the same problem.
> >
> > Shing
> >
> >
> >
> >
> > --- Howard Lewis Ship <hl...@gmail.com> wrote:
> >
> > > Sounds like you've solved your problem.
> Interesting
> > > that the
> > > archiveClasses stuff is no longer needed ... I
> > > wonder if it is due to
> > > the many changes in Tapestry or to some change
> in
> > > Tomcat/JBoss?
> > >
> > > On Feb 17, 2008 2:28 AM, Shing Hing Man
> > > <ma...@yahoo.com> wrote:
> > > > After changing
> > > > archiveClasses from true to false in
> > > > maven-war-plugin in pom.xml,
> > > > the classpath assets are available again.
> > > >
> > > >
> > > > I have been using maven 2.0.7.
> > > > I cannot tell whether I have downloaded a new
> > > version
> > > > of maven-war-plugin since the last deploy.
> > > > The current version of maven-war-plug in my
> local
> > > > repository is 2.1-alpha-1.
> > > >
> > > > Shing
> > > >
> > > >
> > > >
> > > > --- Shing Hing Man <ma...@yahoo.com> wrote:
> > > >
> > > > >
> > > > > In tap 5.0.9, I have a text file
> accessLog.txt
> > > at
> > > > > the
> > > > > root of classpath.
> > > > > I use mvn package to create the war file and
> > > copy
> > > > > the
> > > > > war file into the
> > > > > deploy directory of Jobss 4.0.5AG.
> > > > >
> > > > > In a page, the txt file is accessed in the
> > > following
> > > > > way.
> > > > >
> > > > > @Inject
> > > > > @Path("classpath:accessLog.txt")
> > > > > private Asset accessLog;
> > > > >
> > > > >
> > > > > URL url =
> accessLog.getResource().toURL();
> > > > > String fullPath = url.getPath();
> > > > > response = new
> > > DocumentStreamResponse(fullPath,
> > > > > MimeType.TEXT
> > > > >
> > > .getSuffice());
> > > > >
> > > > >
> > > > > After upgrading to tap 5.0.10, I have the
> > > following
> > > > > exception (in Jboss 4.0.5 AG).
> > > > >
> > > > >
> > > > >
> > > > > java.io.FileNotFoundException: File
> > > > >
> > > >
> > >
> >
>
'file:/home/matmsh/jbossAS/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp36673tapestry5Demo-exp.war/WEB-INF/lib/tapestry5Demo.jar!/accessLog.txt'
> > > > > does not exist
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:994)
> > > > > at
> > > > >
> > > >
> > >
> >
>
net.sf.utilitiesTap5.utilities.DocumentStreamResponse.getStream(DocumentStreamResponse.java:34)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:49)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:28)
> > > > > at
> > > > >
> > > >
> > >
> >
>
$ComponentEventResultProcessor_1182421e2ad.processResultValue($ComponentEventResultProcessor_1182421e2ad.java)
> > > > > at
> > > > >
> > > >
> > >
> >
>
$ComponentEventResultProcessor_1182421e282.processResultValue($ComponentEventResultProcessor_1182421e282.java)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.services.ComponentResultProcessorWrapper.handleResult(ComponentResultProcessorWrapper.java:43)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl$13.handleResult(ComponentPageElementImpl.java:936)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.services.EventImpl.storeResult(EventImpl.java:60)
> > > > > at
> > > > >
> > > >
> > >
> >
>
com.man.tapestry5Demo.pages.test.AccessGridSource.dispatchComponentEvent(AccessGridSource.java)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:832)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:954)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:62)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
> > > > > at
> > > > >
> > > >
> > >
> >
>
$ComponentEventRequestHandler_1182421e283.handle($ComponentEventRequestHandler_1182421e283.java)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
> > > > >
> > > > >
> > > > > I noticed in
> > > > >
>
=== message truncated ===
Home page : http://www.lombok.demon.co.uk/
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tap 5.0.10 : Classpath assets no longer accessible In Jboss 4.0.5AG
Posted by Howard Lewis Ship <hl...@gmail.com>.
So ... are you back in operation or still blocked?
On Feb 17, 2008 11:48 AM, Shing Hing Man <ma...@yahoo.com> wrote:
> I have not changed my JBoss. I have the same problem
> (with archiveClasses=true) when deploying a Tap 5.0.10
> war file into a standalone Tomcat 5.5.20. If the
> problem is caused by recently changes in Tapestry 5,
> someone else should experience the same problem.
>
> Shing
>
>
>
>
> --- Howard Lewis Ship <hl...@gmail.com> wrote:
>
> > Sounds like you've solved your problem. Interesting
> > that the
> > archiveClasses stuff is no longer needed ... I
> > wonder if it is due to
> > the many changes in Tapestry or to some change in
> > Tomcat/JBoss?
> >
> > On Feb 17, 2008 2:28 AM, Shing Hing Man
> > <ma...@yahoo.com> wrote:
> > > After changing
> > > archiveClasses from true to false in
> > > maven-war-plugin in pom.xml,
> > > the classpath assets are available again.
> > >
> > >
> > > I have been using maven 2.0.7.
> > > I cannot tell whether I have downloaded a new
> > version
> > > of maven-war-plugin since the last deploy.
> > > The current version of maven-war-plug in my local
> > > repository is 2.1-alpha-1.
> > >
> > > Shing
> > >
> > >
> > >
> > > --- Shing Hing Man <ma...@yahoo.com> wrote:
> > >
> > > >
> > > > In tap 5.0.9, I have a text file accessLog.txt
> > at
> > > > the
> > > > root of classpath.
> > > > I use mvn package to create the war file and
> > copy
> > > > the
> > > > war file into the
> > > > deploy directory of Jobss 4.0.5AG.
> > > >
> > > > In a page, the txt file is accessed in the
> > following
> > > > way.
> > > >
> > > > @Inject
> > > > @Path("classpath:accessLog.txt")
> > > > private Asset accessLog;
> > > >
> > > >
> > > > URL url = accessLog.getResource().toURL();
> > > > String fullPath = url.getPath();
> > > > response = new
> > DocumentStreamResponse(fullPath,
> > > > MimeType.TEXT
> > > >
> > .getSuffice());
> > > >
> > > >
> > > > After upgrading to tap 5.0.10, I have the
> > following
> > > > exception (in Jboss 4.0.5 AG).
> > > >
> > > >
> > > >
> > > > java.io.FileNotFoundException: File
> > > >
> > >
> >
> 'file:/home/matmsh/jbossAS/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp36673tapestry5Demo-exp.war/WEB-INF/lib/tapestry5Demo.jar!/accessLog.txt'
> > > > does not exist
> > > > at
> > > >
> > >
> >
> org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)
> > > > at
> > > >
> > >
> >
> org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:994)
> > > > at
> > > >
> > >
> >
> net.sf.utilitiesTap5.utilities.DocumentStreamResponse.getStream(DocumentStreamResponse.java:34)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:49)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:28)
> > > > at
> > > >
> > >
> >
> $ComponentEventResultProcessor_1182421e2ad.processResultValue($ComponentEventResultProcessor_1182421e2ad.java)
> > > > at
> > > >
> > >
> >
> $ComponentEventResultProcessor_1182421e282.processResultValue($ComponentEventResultProcessor_1182421e282.java)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.ComponentResultProcessorWrapper.handleResult(ComponentResultProcessorWrapper.java:43)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$13.handleResult(ComponentPageElementImpl.java:936)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.EventImpl.storeResult(EventImpl.java:60)
> > > > at
> > > >
> > >
> >
> com.man.tapestry5Demo.pages.test.AccessGridSource.dispatchComponentEvent(AccessGridSource.java)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:832)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:954)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:62)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
> > > > at
> > > >
> > >
> >
> $ComponentEventRequestHandler_1182421e283.handle($ComponentEventRequestHandler_1182421e283.java)
> > > > at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
> > > >
> > > >
> > > > I noticed in
> > > >
> > >
> >
> jboss-4.0.5.GA/server/default/tmp/deploy/tmp36674tapestry5Demo-exp.war/WEB-INF/classes
> > > >
> > > > is empty. (When I use tap 5.0.9, it has
> > > > accessLog.txt.)
> > > >
> > > >
> > > > Any help would be very much appreciated.
> > > >
> > > > Shing
> > > >
> > > > Home page : http://www.lombok.demon.co.uk/
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> __________________________________________________________
> > > > Sent from Yahoo! Mail - a smarter inbox
> > > > http://uk.mail.yahoo.com
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail:
> > > > users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > Home page : http://www.lombok.demon.co.uk/
> > >
> > >
> > >
> > >
> >
> __________________________________________________________
> > > Sent from Yahoo! Mail - a smarter inbox
> > http://uk.mail.yahoo.com
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail:
> > users-help@tapestry.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator Apache Tapestry and Apache HiveMind
> >
> >
> ---------------------------------------------------------------------
> >
> === message truncated ===
>
>
>
> Home page : http://www.lombok.demon.co.uk/
>
>
>
> __________________________________________________________
> Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tap 5.0.10 : Classpath assets no longer accessible In Jboss 4.0.5AG
Posted by Shing Hing Man <ma...@yahoo.com>.
I have not changed my JBoss. I have the same problem
(with archiveClasses=true) when deploying a Tap 5.0.10
war file into a standalone Tomcat 5.5.20. If the
problem is caused by recently changes in Tapestry 5,
someone else should experience the same problem.
Shing
--- Howard Lewis Ship <hl...@gmail.com> wrote:
> Sounds like you've solved your problem. Interesting
> that the
> archiveClasses stuff is no longer needed ... I
> wonder if it is due to
> the many changes in Tapestry or to some change in
> Tomcat/JBoss?
>
> On Feb 17, 2008 2:28 AM, Shing Hing Man
> <ma...@yahoo.com> wrote:
> > After changing
> > archiveClasses from true to false in
> > maven-war-plugin in pom.xml,
> > the classpath assets are available again.
> >
> >
> > I have been using maven 2.0.7.
> > I cannot tell whether I have downloaded a new
> version
> > of maven-war-plugin since the last deploy.
> > The current version of maven-war-plug in my local
> > repository is 2.1-alpha-1.
> >
> > Shing
> >
> >
> >
> > --- Shing Hing Man <ma...@yahoo.com> wrote:
> >
> > >
> > > In tap 5.0.9, I have a text file accessLog.txt
> at
> > > the
> > > root of classpath.
> > > I use mvn package to create the war file and
> copy
> > > the
> > > war file into the
> > > deploy directory of Jobss 4.0.5AG.
> > >
> > > In a page, the txt file is accessed in the
> following
> > > way.
> > >
> > > @Inject
> > > @Path("classpath:accessLog.txt")
> > > private Asset accessLog;
> > >
> > >
> > > URL url = accessLog.getResource().toURL();
> > > String fullPath = url.getPath();
> > > response = new
> DocumentStreamResponse(fullPath,
> > > MimeType.TEXT
> > >
> .getSuffice());
> > >
> > >
> > > After upgrading to tap 5.0.10, I have the
> following
> > > exception (in Jboss 4.0.5 AG).
> > >
> > >
> > >
> > > java.io.FileNotFoundException: File
> > >
> >
>
'file:/home/matmsh/jbossAS/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp36673tapestry5Demo-exp.war/WEB-INF/lib/tapestry5Demo.jar!/accessLog.txt'
> > > does not exist
> > > at
> > >
> >
>
org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)
> > > at
> > >
> >
>
org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:994)
> > > at
> > >
> >
>
net.sf.utilitiesTap5.utilities.DocumentStreamResponse.getStream(DocumentStreamResponse.java:34)
> > > at
> > >
> >
>
org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:49)
> > > at
> > >
> >
>
org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:28)
> > > at
> > >
> >
>
$ComponentEventResultProcessor_1182421e2ad.processResultValue($ComponentEventResultProcessor_1182421e2ad.java)
> > > at
> > >
> >
>
$ComponentEventResultProcessor_1182421e282.processResultValue($ComponentEventResultProcessor_1182421e282.java)
> > > at
> > >
> >
>
org.apache.tapestry.internal.services.ComponentResultProcessorWrapper.handleResult(ComponentResultProcessorWrapper.java:43)
> > > at
> > >
> >
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl$13.handleResult(ComponentPageElementImpl.java:936)
> > > at
> > >
> >
>
org.apache.tapestry.internal.services.EventImpl.storeResult(EventImpl.java:60)
> > > at
> > >
> >
>
com.man.tapestry5Demo.pages.test.AccessGridSource.dispatchComponentEvent(AccessGridSource.java)
> > > at
> > >
> >
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:832)
> > > at
> > >
> >
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:954)
> > > at
> > >
> >
>
org.apache.tapestry.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:62)
> > > at
> > >
> >
>
org.apache.tapestry.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
> > > at
> > >
> >
>
$ComponentEventRequestHandler_1182421e283.handle($ComponentEventRequestHandler_1182421e283.java)
> > > at
> > >
> >
>
org.apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
> > >
> > >
> > > I noticed in
> > >
> >
>
jboss-4.0.5.GA/server/default/tmp/deploy/tmp36674tapestry5Demo-exp.war/WEB-INF/classes
> > >
> > > is empty. (When I use tap 5.0.9, it has
> > > accessLog.txt.)
> > >
> > >
> > > Any help would be very much appreciated.
> > >
> > > Shing
> > >
> > > Home page : http://www.lombok.demon.co.uk/
> > >
> > >
> > >
> > >
> > >
> >
>
__________________________________________________________
> > > Sent from Yahoo! Mail - a smarter inbox
> > > http://uk.mail.yahoo.com
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail:
> > > users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > Home page : http://www.lombok.demon.co.uk/
> >
> >
> >
> >
>
__________________________________________________________
> > Sent from Yahoo! Mail - a smarter inbox
> http://uk.mail.yahoo.com
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail:
> users-help@tapestry.apache.org
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
>
---------------------------------------------------------------------
>
=== message truncated ===
Home page : http://www.lombok.demon.co.uk/
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tap 5.0.10 : Classpath assets no longer accessible In Jboss 4.0.5AG
Posted by Howard Lewis Ship <hl...@gmail.com>.
Sounds like you've solved your problem. Interesting that the
archiveClasses stuff is no longer needed ... I wonder if it is due to
the many changes in Tapestry or to some change in Tomcat/JBoss?
On Feb 17, 2008 2:28 AM, Shing Hing Man <ma...@yahoo.com> wrote:
> After changing
> archiveClasses from true to false in
> maven-war-plugin in pom.xml,
> the classpath assets are available again.
>
>
> I have been using maven 2.0.7.
> I cannot tell whether I have downloaded a new version
> of maven-war-plugin since the last deploy.
> The current version of maven-war-plug in my local
> repository is 2.1-alpha-1.
>
> Shing
>
>
>
> --- Shing Hing Man <ma...@yahoo.com> wrote:
>
> >
> > In tap 5.0.9, I have a text file accessLog.txt at
> > the
> > root of classpath.
> > I use mvn package to create the war file and copy
> > the
> > war file into the
> > deploy directory of Jobss 4.0.5AG.
> >
> > In a page, the txt file is accessed in the following
> > way.
> >
> > @Inject
> > @Path("classpath:accessLog.txt")
> > private Asset accessLog;
> >
> >
> > URL url = accessLog.getResource().toURL();
> > String fullPath = url.getPath();
> > response = new DocumentStreamResponse(fullPath,
> > MimeType.TEXT
> > .getSuffice());
> >
> >
> > After upgrading to tap 5.0.10, I have the following
> > exception (in Jboss 4.0.5 AG).
> >
> >
> >
> > java.io.FileNotFoundException: File
> >
> 'file:/home/matmsh/jbossAS/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp36673tapestry5Demo-exp.war/WEB-INF/lib/tapestry5Demo.jar!/accessLog.txt'
> > does not exist
> > at
> >
> org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)
> > at
> >
> org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:994)
> > at
> >
> net.sf.utilitiesTap5.utilities.DocumentStreamResponse.getStream(DocumentStreamResponse.java:34)
> > at
> >
> org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:49)
> > at
> >
> org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:28)
> > at
> >
> $ComponentEventResultProcessor_1182421e2ad.processResultValue($ComponentEventResultProcessor_1182421e2ad.java)
> > at
> >
> $ComponentEventResultProcessor_1182421e282.processResultValue($ComponentEventResultProcessor_1182421e282.java)
> > at
> >
> org.apache.tapestry.internal.services.ComponentResultProcessorWrapper.handleResult(ComponentResultProcessorWrapper.java:43)
> > at
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$13.handleResult(ComponentPageElementImpl.java:936)
> > at
> >
> org.apache.tapestry.internal.services.EventImpl.storeResult(EventImpl.java:60)
> > at
> >
> com.man.tapestry5Demo.pages.test.AccessGridSource.dispatchComponentEvent(AccessGridSource.java)
> > at
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:832)
> > at
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:954)
> > at
> >
> org.apache.tapestry.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:62)
> > at
> >
> org.apache.tapestry.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
> > at
> >
> $ComponentEventRequestHandler_1182421e283.handle($ComponentEventRequestHandler_1182421e283.java)
> > at
> >
> org.apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
> >
> >
> > I noticed in
> >
> jboss-4.0.5.GA/server/default/tmp/deploy/tmp36674tapestry5Demo-exp.war/WEB-INF/classes
> >
> > is empty. (When I use tap 5.0.9, it has
> > accessLog.txt.)
> >
> >
> > Any help would be very much appreciated.
> >
> > Shing
> >
> > Home page : http://www.lombok.demon.co.uk/
> >
> >
> >
> >
> >
> __________________________________________________________
> > Sent from Yahoo! Mail - a smarter inbox
> > http://uk.mail.yahoo.com
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail:
> > users-help@tapestry.apache.org
> >
> >
>
>
> Home page : http://www.lombok.demon.co.uk/
>
>
>
> __________________________________________________________
> Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tap 5.0.10 : Classpath assets no longer accessible In Jboss 4.0.5AG
Posted by Shing Hing Man <ma...@yahoo.com>.
After changing
archiveClasses from true to false in
maven-war-plugin in pom.xml,
the classpath assets are available again.
I have been using maven 2.0.7.
I cannot tell whether I have downloaded a new version
of maven-war-plugin since the last deploy.
The current version of maven-war-plug in my local
repository is 2.1-alpha-1.
Shing
--- Shing Hing Man <ma...@yahoo.com> wrote:
>
> In tap 5.0.9, I have a text file accessLog.txt at
> the
> root of classpath.
> I use mvn package to create the war file and copy
> the
> war file into the
> deploy directory of Jobss 4.0.5AG.
>
> In a page, the txt file is accessed in the following
> way.
>
> @Inject
> @Path("classpath:accessLog.txt")
> private Asset accessLog;
>
>
> URL url = accessLog.getResource().toURL();
> String fullPath = url.getPath();
> response = new DocumentStreamResponse(fullPath,
> MimeType.TEXT
> .getSuffice());
>
>
> After upgrading to tap 5.0.10, I have the following
> exception (in Jboss 4.0.5 AG).
>
>
>
> java.io.FileNotFoundException: File
>
'file:/home/matmsh/jbossAS/jboss-4.0.5.GA/server/default/./tmp/deploy/tmp36673tapestry5Demo-exp.war/WEB-INF/lib/tapestry5Demo.jar!/accessLog.txt'
> does not exist
> at
>
org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)
> at
>
org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:994)
> at
>
net.sf.utilitiesTap5.utilities.DocumentStreamResponse.getStream(DocumentStreamResponse.java:34)
> at
>
org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:49)
> at
>
org.apache.tapestry.internal.services.StreamResponseResultProcessor.processResultValue(StreamResponseResultProcessor.java:28)
> at
>
$ComponentEventResultProcessor_1182421e2ad.processResultValue($ComponentEventResultProcessor_1182421e2ad.java)
> at
>
$ComponentEventResultProcessor_1182421e282.processResultValue($ComponentEventResultProcessor_1182421e282.java)
> at
>
org.apache.tapestry.internal.services.ComponentResultProcessorWrapper.handleResult(ComponentResultProcessorWrapper.java:43)
> at
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl$13.handleResult(ComponentPageElementImpl.java:936)
> at
>
org.apache.tapestry.internal.services.EventImpl.storeResult(EventImpl.java:60)
> at
>
com.man.tapestry5Demo.pages.test.AccessGridSource.dispatchComponentEvent(AccessGridSource.java)
> at
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:832)
> at
>
org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:954)
> at
>
org.apache.tapestry.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:62)
> at
>
org.apache.tapestry.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
> at
>
$ComponentEventRequestHandler_1182421e283.handle($ComponentEventRequestHandler_1182421e283.java)
> at
>
org.apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
>
>
> I noticed in
>
jboss-4.0.5.GA/server/default/tmp/deploy/tmp36674tapestry5Demo-exp.war/WEB-INF/classes
>
> is empty. (When I use tap 5.0.9, it has
> accessLog.txt.)
>
>
> Any help would be very much appreciated.
>
> Shing
>
> Home page : http://www.lombok.demon.co.uk/
>
>
>
>
>
__________________________________________________________
> Sent from Yahoo! Mail - a smarter inbox
> http://uk.mail.yahoo.com
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
>
>
Home page : http://www.lombok.demon.co.uk/
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org