You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jabbar <aj...@gmail.com> on 2011/05/05 22:30:56 UTC

Tapestry 5.2.5 and jboss6

Hello all,
Has anybody got tapestry 5.2.5 to work inside jboss 6? I've found various
mailing list messages for getting tapestery 5 to work with jboss 5.0.1, but
nothing conclusive for Jboss 6.0

Can anybody help or point me in the right direction?

-- 
Thanks

 A Jabbar Azam

Re : Tapestry 5.2.5 and jboss6

Posted by Hoang-Vu PHUNG <hv...@yahoo.fr>.
Hi Adam,

IMHO, I would think that if the web server is running in the same JVM as the EJB container, the performance could be drastically improved: no need for serialization, net work problem etc... 


Also for testing purpose, if everything is in-process, then testing is really a pleasure. We have done with Jboss-Embedded / maven / anthill.
The build is only sucessful if all tests passed.


We used Jboss for years and it is quite robust. 

Well, the downside is the scalability : JVM memory may be limited on some platform and web application is really a memory hog.



Thanks and Regards,
Vu



________________________________
De : Adam Zimowski <zi...@gmail.com>
À : Tapestry users <us...@tapestry.apache.org>
Envoyé le : Jeudi 5 Mai 2011 22h34
Objet : Re : Tapestry 5.2.5 and jboss6

I'm not sure if our setup will be of any help but...

We use JBoss 6 with Tapestry 5.2.5, but indirectly. What is your
purpose for needing JBoss to power Tapestry?  If it's for EJBs, we
have a separate EJB server running our EJBs, and Jetty running
Tapestry. We have an EJB module for Tapestry which sets up all the EJB
proxies and we simply @Inject this and that for all service calls.
Works beautifully.

Adam

On Thu, May 5, 2011 at 3:30 PM, Jabbar <aj...@gmail.com> wrote:
> Hello all,
> Has anybody got tapestry 5.2.5 to work inside jboss 6? I've found various
> mailing list messages for getting tapestery 5 to work with jboss 5.0.1, but
> nothing conclusive for Jboss 6.0
>
> Can anybody help or point me in the right direction?
>
> --
> Thanks
>
>  A Jabbar Azam
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

Re: Tapestry 5.2.5 and jboss6

Posted by Adam Zimowski <zi...@gmail.com>.
We've had EJB's running on a separate JVM (in fact, separate physcial
server) for years, with no performance problems. In fact, scalability
wise, it's been to our advantage. With unit tests, EJBs are as
testable as anything. In fact, I don't see a point in hosting EJBs
locally on the same JVM as the application.

But again, that's getting into politics. Every organisation is
different. All I meant to say is that we use JBoss 6 with Tapestry in
such a way that it runs our EJBs on a separate physcal server, while
Jetty runs our Tapestry app. Prior to Tapestry, we had Tomcat running
Struts, pretty much same setup except that application framework was
crap.

Adam

On Thu, May 5, 2011 at 5:30 PM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> On Thu, 05 May 2011 18:34:18 -0300, Jabbar <aj...@gmail.com> wrote:
>
>> Hello Adam,
>>
>> We've always used JBoss, it's the company standard. I could perhaps use
>> Glassfish or Jetty to host the application. The application works
>> perfectly
>> using the run jetty run eclipse plugin.
>
> What's the error message when you try to run the application in JBoss?
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5.2.5 and jboss6

Posted by Jabbar <aj...@gmail.com>.
Hello Thiago,

Sorry I couldn't get back to you. I had to deploy the application in Jetty
and now my attention has been diverted to a small job that is taking longer
than we expected.

Geoff has a solution so will try this out when I get back to my tapestry
application.

On 5 May 2011 23:30, Thiago H. de Paula Figueiredo <th...@gmail.com>wrote:

> On Thu, 05 May 2011 18:34:18 -0300, Jabbar <aj...@gmail.com> wrote:
>
>  Hello Adam,
>>
>> We've always used JBoss, it's the company standard. I could perhaps use
>> Glassfish or Jetty to host the application. The application works
>> perfectly
>> using the run jetty run eclipse plugin.
>>
>
> What's the error message when you try to run the application in JBoss?
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>



-- 
Thanks

 A Jabbar Azam

Re: Tapestry 5.2.5 and jboss6

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
Where were all you guys when I needed jboss solution 6 months ago. Not that I am unhappy with glassfish 


On May 8, 2011, at 2:28 PM, Shing Hing Man <ma...@yahoo.com> wrote:

> Your solution works for me.  
> 
> Thanks! 
> 
> Shing 
> 
> --- On Sat, 7/5/11, Geoff Callender <ge...@gmail.com> wrote:
> 
>> From: Geoff Callender <ge...@gmail.com>
>> Subject: Re: Tapestry 5.2.5 and jboss6
>> To: "Tapestry users" <us...@tapestry.apache.org>
>> Date: Saturday, 7 May, 2011, 16:39
>> This works.  In
>> ClasspathURLConverter replace this, which worked in JBoss
>> 5...
>> 
>>            
>>     URLConnection connection =
>> url.openConnection();
>>            
>>     Object virtualFile =
>> connection.getContent();
>>            
>>     Object zipEntryHandler =
>> invoke(virtualFile, "getHandler");
>>            
>>     Object realUrl = invoke(zipEntryHandler,
>> "getRealURL");
>>            
>>     return (URL) realUrl;
>> 
>> ...with this for JBoss 6...
>> 
>>            
>>     URLConnection connection =
>> url.openConnection();
>>            
>>     Object virtualFile =
>> connection.getContent();
>>            
>>     File physicalFile = (File)
>> invoke(virtualFile, "getPhysicalFile");
>>            
>>     URL physicalFileURL =
>> physicalFile.toURI().toURL();
>>            
>>     return physicalFileURL;
>> 
>> Here's the full source...
>> 
>> package jumpstart.web.services;
>> 
>> import java.io.File;
>> import java.lang.reflect.InvocationTargetException;
>> import java.lang.reflect.Method;
>> import java.net.URL;
>> import java.net.URLConnection;
>> 
>> import
>> org.apache.tapestry5.ioc.services.ClasspathURLConverter;
>> import org.slf4j.Logger;
>> import org.slf4j.LoggerFactory;
>> 
>> public class ClasspathURLConverterJBoss6 implements
>> ClasspathURLConverter {
>>     private static Logger _logger =
>> LoggerFactory.getLogger(ClasspathURLConverterJBoss6.class);
>> 
>>     public URL convert(URL url) {
>>         if (url != null
>> && url.getProtocol().startsWith("vfs")) {
>>             //
>> supports virtual filesystem used by JBoss 6.x
>>            
>> try {
>>            
>>     URLConnection connection =
>> url.openConnection();
>>            
>>     Object virtualFile =
>> connection.getContent();
>>            
>>     File physicalFile = (File)
>> invoke(virtualFile, "getPhysicalFile");
>>            
>>     URL physicalFileURL =
>> physicalFile.toURI().toURL();
>>            
>>     return physicalFileURL;
>>             }
>>            
>> catch (Exception e) {
>>            
>>     _logger.error(e.getCause().toString());
>>             }
>>         }
>>         return url;
>>     }
>> 
>>     private Object invoke(Object target,
>> String methodName) throws NoSuchMethodException,
>> InvocationTargetException,
>>            
>> IllegalAccessException {
>>         Class<?> type =
>> target.getClass();
>>         Method method;
>>         try {
>>            
>> method = type.getMethod(methodName);
>>         }
>>         catch
>> (NoSuchMethodException e) {
>>            
>> method = type.getDeclaredMethod(methodName);
>>            
>> method.setAccessible(true);
>>         }
>>         return
>> method.invoke(target);
>>     }
>> 
>> }
>> 
>> Cheers,
>> 
>> Geoff
>> 
>> On 07/05/2011, at 5:28 PM, Geoff Callender wrote:
>> 
>>> Oops - don't modify ClasspathURLConverter as I did
>> below.
>>> 
>>> The JBoss server log shows that Tapestry's services
>> start but no pages/components/mixins have been found, ie.
>> there are no INFO messages from ComponentClassResolver.
>>> 
>>> The solution will be to get ClasspathURLConverter
>> working again.
>>> 
>>> 
>>> On 07/05/2011, at 3:44 PM, Geoff Callender wrote:
>>> 
>>>> I'm also having trouble with JBoss 6. I'm trying
>> to deploy jumpstart's ear.
>>>> 
>>>> First, a fix to the ClasspathURLConverter for
>> JBoss 6. Instead of this...
>>>> 
>>>>         if (url !=
>> null && url.getProtocol().startsWith("vfs")) {
>>>> 
>>>> try this...
>>>> 
>>>>         if (url !=
>> null && url.getProtocol().startsWith("vfs")
>> && !url.getPath().endsWith("/")) {
>>>> 
>>>> Actually, it might not be needed at all, but I
>> don't know for sure yet.
>>>> 
>>>> The business layer runs fine and I can run remote
>> tests to it just fine.
>>>> 
>>>> The web layer appears to be deployed OK, and when
>> I do requests to it I can confirm they are passing through
>> my PageProtectionFilter, so Tapestry's running and my
>> requests are reaching the servlet filters.
>>>> 
>>>> So it appears that Tapestry's getting
>> short-circuited. My guess is that it can't find the page
>> class or template.
>>>> 
>>>> 
>>>> On 06/05/2011, at 8:30 AM, Thiago H. de Paula
>> Figueiredo wrote:
>>>> 
>>>>> On Thu, 05 May 2011 18:34:18 -0300, Jabbar
>> <aj...@gmail.com>
>> wrote:
>>>>> 
>>>>>> Hello Adam,
>>>>>> 
>>>>>> We've always used JBoss, it's the company
>> standard. I could perhaps use
>>>>>> Glassfish or Jetty to host the
>> application. The application works perfectly
>>>>>> using the run jetty run eclipse plugin.
>>>>> 
>>>>> What's the error message when you try to run
>> the application in JBoss?
>>>>> 
>>>>> -- 
>>>>> Thiago H. de Paula Figueiredo
>>>>> Independent Java, Apache Tapestry 5 and
>> Hibernate consultant, developer, and instructor
>>>>> Owner, Ars Machina Tecnologia da Informação
>> Ltda.
>>>>> http://www.arsmachina.com.br
>>>>> 
>>>>> 
>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>> 
>>>> 
>>> 
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5.2.5 and jboss6

Posted by Shing Hing Man <ma...@yahoo.com>.
Your solution works for me.  

Thanks! 

Shing 

--- On Sat, 7/5/11, Geoff Callender <ge...@gmail.com> wrote:

> From: Geoff Callender <ge...@gmail.com>
> Subject: Re: Tapestry 5.2.5 and jboss6
> To: "Tapestry users" <us...@tapestry.apache.org>
> Date: Saturday, 7 May, 2011, 16:39
> This works.  In
> ClasspathURLConverter replace this, which worked in JBoss
> 5...
> 
>            
>     URLConnection connection =
> url.openConnection();
>            
>     Object virtualFile =
> connection.getContent();
>            
>     Object zipEntryHandler =
> invoke(virtualFile, "getHandler");
>            
>     Object realUrl = invoke(zipEntryHandler,
> "getRealURL");
>            
>     return (URL) realUrl;
> 
> ...with this for JBoss 6...
> 
>            
>     URLConnection connection =
> url.openConnection();
>            
>     Object virtualFile =
> connection.getContent();
>            
>     File physicalFile = (File)
> invoke(virtualFile, "getPhysicalFile");
>            
>     URL physicalFileURL =
> physicalFile.toURI().toURL();
>            
>     return physicalFileURL;
> 
> Here's the full source...
> 
> package jumpstart.web.services;
> 
> import java.io.File;
> import java.lang.reflect.InvocationTargetException;
> import java.lang.reflect.Method;
> import java.net.URL;
> import java.net.URLConnection;
> 
> import
> org.apache.tapestry5.ioc.services.ClasspathURLConverter;
> import org.slf4j.Logger;
> import org.slf4j.LoggerFactory;
> 
> public class ClasspathURLConverterJBoss6 implements
> ClasspathURLConverter {
>     private static Logger _logger =
> LoggerFactory.getLogger(ClasspathURLConverterJBoss6.class);
> 
>     public URL convert(URL url) {
>         if (url != null
> && url.getProtocol().startsWith("vfs")) {
>             //
> supports virtual filesystem used by JBoss 6.x
>            
> try {
>            
>     URLConnection connection =
> url.openConnection();
>            
>     Object virtualFile =
> connection.getContent();
>            
>     File physicalFile = (File)
> invoke(virtualFile, "getPhysicalFile");
>            
>     URL physicalFileURL =
> physicalFile.toURI().toURL();
>            
>     return physicalFileURL;
>             }
>            
> catch (Exception e) {
>            
>     _logger.error(e.getCause().toString());
>             }
>         }
>         return url;
>     }
> 
>     private Object invoke(Object target,
> String methodName) throws NoSuchMethodException,
> InvocationTargetException,
>            
> IllegalAccessException {
>         Class<?> type =
> target.getClass();
>         Method method;
>         try {
>            
> method = type.getMethod(methodName);
>         }
>         catch
> (NoSuchMethodException e) {
>            
> method = type.getDeclaredMethod(methodName);
>            
> method.setAccessible(true);
>         }
>         return
> method.invoke(target);
>     }
> 
> }
> 
> Cheers,
> 
> Geoff
> 
> On 07/05/2011, at 5:28 PM, Geoff Callender wrote:
> 
> > Oops - don't modify ClasspathURLConverter as I did
> below.
> > 
> > The JBoss server log shows that Tapestry's services
> start but no pages/components/mixins have been found, ie.
> there are no INFO messages from ComponentClassResolver.
> > 
> > The solution will be to get ClasspathURLConverter
> working again.
> > 
> > 
> > On 07/05/2011, at 3:44 PM, Geoff Callender wrote:
> > 
> >> I'm also having trouble with JBoss 6. I'm trying
> to deploy jumpstart's ear.
> >> 
> >> First, a fix to the ClasspathURLConverter for
> JBoss 6. Instead of this...
> >> 
> >>         if (url !=
> null && url.getProtocol().startsWith("vfs")) {
> >> 
> >> try this...
> >> 
> >>         if (url !=
> null && url.getProtocol().startsWith("vfs")
> && !url.getPath().endsWith("/")) {
> >> 
> >> Actually, it might not be needed at all, but I
> don't know for sure yet.
> >> 
> >> The business layer runs fine and I can run remote
> tests to it just fine.
> >> 
> >> The web layer appears to be deployed OK, and when
> I do requests to it I can confirm they are passing through
> my PageProtectionFilter, so Tapestry's running and my
> requests are reaching the servlet filters.
> >> 
> >> So it appears that Tapestry's getting
> short-circuited. My guess is that it can't find the page
> class or template.
> >> 
> >> 
> >> On 06/05/2011, at 8:30 AM, Thiago H. de Paula
> Figueiredo wrote:
> >> 
> >>> On Thu, 05 May 2011 18:34:18 -0300, Jabbar
> <aj...@gmail.com>
> wrote:
> >>> 
> >>>> Hello Adam,
> >>>> 
> >>>> We've always used JBoss, it's the company
> standard. I could perhaps use
> >>>> Glassfish or Jetty to host the
> application. The application works perfectly
> >>>> using the run jetty run eclipse plugin.
> >>> 
> >>> What's the error message when you try to run
> the application in JBoss?
> >>> 
> >>> -- 
> >>> Thiago H. de Paula Figueiredo
> >>> Independent Java, Apache Tapestry 5 and
> Hibernate consultant, developer, and instructor
> >>> Owner, Ars Machina Tecnologia da Informação
> Ltda.
> >>> http://www.arsmachina.com.br
> >>> 
> >>>
> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>> 
> >> 
> > 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5.2.5 and jboss6

Posted by Geoff Callender <ge...@gmail.com>.
This works.  In ClasspathURLConverter replace this, which worked in JBoss 5...

				URLConnection connection = url.openConnection();
				Object virtualFile = connection.getContent();
				Object zipEntryHandler = invoke(virtualFile, "getHandler");
				Object realUrl = invoke(zipEntryHandler, "getRealURL");
				return (URL) realUrl;

...with this for JBoss 6...

				URLConnection connection = url.openConnection();
				Object virtualFile = connection.getContent();
				File physicalFile = (File) invoke(virtualFile, "getPhysicalFile");
				URL physicalFileURL = physicalFile.toURI().toURL();
				return physicalFileURL;

Here's the full source...

package jumpstart.web.services;

import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLConnection;

import org.apache.tapestry5.ioc.services.ClasspathURLConverter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ClasspathURLConverterJBoss6 implements ClasspathURLConverter {
	private static Logger _logger = LoggerFactory.getLogger(ClasspathURLConverterJBoss6.class);

	public URL convert(URL url) {
		if (url != null && url.getProtocol().startsWith("vfs")) {
			// supports virtual filesystem used by JBoss 6.x
			try {
				URLConnection connection = url.openConnection();
				Object virtualFile = connection.getContent();
				File physicalFile = (File) invoke(virtualFile, "getPhysicalFile");
				URL physicalFileURL = physicalFile.toURI().toURL();
				return physicalFileURL;
			}
			catch (Exception e) {
				_logger.error(e.getCause().toString());
			}
		}
		return url;
	}

	private Object invoke(Object target, String methodName) throws NoSuchMethodException, InvocationTargetException,
			IllegalAccessException {
		Class<?> type = target.getClass();
		Method method;
		try {
			method = type.getMethod(methodName);
		}
		catch (NoSuchMethodException e) {
			method = type.getDeclaredMethod(methodName);
			method.setAccessible(true);
		}
		return method.invoke(target);
	}

}

Cheers,

Geoff

On 07/05/2011, at 5:28 PM, Geoff Callender wrote:

> Oops - don't modify ClasspathURLConverter as I did below.
> 
> The JBoss server log shows that Tapestry's services start but no pages/components/mixins have been found, ie. there are no INFO messages from ComponentClassResolver.
> 
> The solution will be to get ClasspathURLConverter working again.
> 
> 
> On 07/05/2011, at 3:44 PM, Geoff Callender wrote:
> 
>> I'm also having trouble with JBoss 6. I'm trying to deploy jumpstart's ear.
>> 
>> First, a fix to the ClasspathURLConverter for JBoss 6. Instead of this...
>> 
>> 		if (url != null && url.getProtocol().startsWith("vfs")) {
>> 
>> try this...
>> 
>> 		if (url != null && url.getProtocol().startsWith("vfs") && !url.getPath().endsWith("/")) {
>> 
>> Actually, it might not be needed at all, but I don't know for sure yet.
>> 
>> The business layer runs fine and I can run remote tests to it just fine.
>> 
>> The web layer appears to be deployed OK, and when I do requests to it I can confirm they are passing through my PageProtectionFilter, so Tapestry's running and my requests are reaching the servlet filters.
>> 
>> So it appears that Tapestry's getting short-circuited. My guess is that it can't find the page class or template.
>> 
>> 
>> On 06/05/2011, at 8:30 AM, Thiago H. de Paula Figueiredo wrote:
>> 
>>> On Thu, 05 May 2011 18:34:18 -0300, Jabbar <aj...@gmail.com> wrote:
>>> 
>>>> Hello Adam,
>>>> 
>>>> We've always used JBoss, it's the company standard. I could perhaps use
>>>> Glassfish or Jetty to host the application. The application works perfectly
>>>> using the run jetty run eclipse plugin.
>>> 
>>> What's the error message when you try to run the application in JBoss?
>>> 
>>> -- 
>>> Thiago H. de Paula Figueiredo
>>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
>>> Owner, Ars Machina Tecnologia da Informação Ltda.
>>> http://www.arsmachina.com.br
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>> 
> 


Re: Tapestry 5.2.5 and jboss6

Posted by Geoff Callender <ge...@gmail.com>.
Oops - don't modify ClasspathURLConverter as I did below.

The JBoss server log shows that Tapestry's services start but no pages/components/mixins have been found, ie. there are no INFO messages from ComponentClassResolver.

The solution will be to get ClasspathURLConverter working again.


On 07/05/2011, at 3:44 PM, Geoff Callender wrote:

> I'm also having trouble with JBoss 6. I'm trying to deploy jumpstart's ear.
> 
> First, a fix to the ClasspathURLConverter for JBoss 6. Instead of this...
> 
> 		if (url != null && url.getProtocol().startsWith("vfs")) {
> 
> try this...
> 
> 		if (url != null && url.getProtocol().startsWith("vfs") && !url.getPath().endsWith("/")) {
> 
> Actually, it might not be needed at all, but I don't know for sure yet.
> 
> The business layer runs fine and I can run remote tests to it just fine.
> 
> The web layer appears to be deployed OK, and when I do requests to it I can confirm they are passing through my PageProtectionFilter, so Tapestry's running and my requests are reaching the servlet filters.
> 
> So it appears that Tapestry's getting short-circuited. My guess is that it can't find the page class or template.
> 
> 
> On 06/05/2011, at 8:30 AM, Thiago H. de Paula Figueiredo wrote:
> 
>> On Thu, 05 May 2011 18:34:18 -0300, Jabbar <aj...@gmail.com> wrote:
>> 
>>> Hello Adam,
>>> 
>>> We've always used JBoss, it's the company standard. I could perhaps use
>>> Glassfish or Jetty to host the application. The application works perfectly
>>> using the run jetty run eclipse plugin.
>> 
>> What's the error message when you try to run the application in JBoss?
>> 
>> -- 
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
> 


Re: Tapestry 5.2.5 and jboss6

Posted by Geoff Callender <ge...@gmail.com>.
I'm also having trouble with JBoss 6. I'm trying to deploy jumpstart's ear.

First, a fix to the ClasspathURLConverter for JBoss 6. Instead of this...

		if (url != null && url.getProtocol().startsWith("vfs")) {

try this...

		if (url != null && url.getProtocol().startsWith("vfs") && !url.getPath().endsWith("/")) {

Actually, it might not be needed at all, but I don't know for sure yet.

The business layer runs fine and I can run remote tests to it just fine.

The web layer appears to be deployed OK, and when I do requests to it I can confirm they are passing through my PageProtectionFilter, so Tapestry's running and my requests are reaching the servlet filters.

So it appears that Tapestry's getting short-circuited. My guess is that it can't find the page class or template.


On 06/05/2011, at 8:30 AM, Thiago H. de Paula Figueiredo wrote:

> On Thu, 05 May 2011 18:34:18 -0300, Jabbar <aj...@gmail.com> wrote:
> 
>> Hello Adam,
>> 
>> We've always used JBoss, it's the company standard. I could perhaps use
>> Glassfish or Jetty to host the application. The application works perfectly
>> using the run jetty run eclipse plugin.
> 
> What's the error message when you try to run the application in JBoss?
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


Re: Tapestry 5.2.5 and jboss6

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 05 May 2011 18:34:18 -0300, Jabbar <aj...@gmail.com> wrote:

> Hello Adam,
>
> We've always used JBoss, it's the company standard. I could perhaps use
> Glassfish or Jetty to host the application. The application works  
> perfectly
> using the run jetty run eclipse plugin.

What's the error message when you try to run the application in JBoss?

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5.2.5 and jboss6

Posted by Jabbar <aj...@gmail.com>.
Hello Adam,

We've always used JBoss, it's the company standard. I could perhaps use
Glassfish or Jetty to host the application. The application works perfectly
using the run jetty run eclipse plugin.

On 5 May 2011 21:34, Adam Zimowski <zi...@gmail.com> wrote:

> I'm not sure if our setup will be of any help but...
>
> We use JBoss 6 with Tapestry 5.2.5, but indirectly. What is your
> purpose for needing JBoss to power Tapestry?  If it's for EJBs, we
> have a separate EJB server running our EJBs, and Jetty running
> Tapestry. We have an EJB module for Tapestry which sets up all the EJB
> proxies and we simply @Inject this and that for all service calls.
> Works beautifully.
>
> Adam
>
> On Thu, May 5, 2011 at 3:30 PM, Jabbar <aj...@gmail.com> wrote:
> > Hello all,
> > Has anybody got tapestry 5.2.5 to work inside jboss 6? I've found various
> > mailing list messages for getting tapestery 5 to work with jboss 5.0.1,
> but
> > nothing conclusive for Jboss 6.0
> >
> > Can anybody help or point me in the right direction?
> >
> > --
> > Thanks
> >
> >  A Jabbar Azam
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Thanks

 A Jabbar Azam

Re: Tapestry 5.2.5 and jboss6

Posted by Adam Zimowski <zi...@gmail.com>.
I'm not sure if our setup will be of any help but...

We use JBoss 6 with Tapestry 5.2.5, but indirectly. What is your
purpose for needing JBoss to power Tapestry?  If it's for EJBs, we
have a separate EJB server running our EJBs, and Jetty running
Tapestry. We have an EJB module for Tapestry which sets up all the EJB
proxies and we simply @Inject this and that for all service calls.
Works beautifully.

Adam

On Thu, May 5, 2011 at 3:30 PM, Jabbar <aj...@gmail.com> wrote:
> Hello all,
> Has anybody got tapestry 5.2.5 to work inside jboss 6? I've found various
> mailing list messages for getting tapestery 5 to work with jboss 5.0.1, but
> nothing conclusive for Jboss 6.0
>
> Can anybody help or point me in the right direction?
>
> --
> Thanks
>
>  A Jabbar Azam
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 5.2.5 and jboss6

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
I was unable to do this and switched to glassfish. That was easy



On May 5, 2011, at 3:30 PM, Jabbar <aj...@gmail.com> wrote:

> Hello all,
> Has anybody got tapestry 5.2.5 to work inside jboss 6? I've found various
> mailing list messages for getting tapestery 5 to work with jboss 5.0.1, but
> nothing conclusive for Jboss 6.0
> 
> Can anybody help or point me in the right direction?
> 
> -- 
> Thanks
> 
> A Jabbar Azamy. 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org