Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » use with tapestry/hivemind
use with tapestry/hivemind [message #59994] Tue, 07 February 2006 12:57 Go to next message
Eclipse UserFriend
Originally posted by: texas_mustang.yahoo.com

I am having trouble getting tapestry/hivemind to work with equinox & the RSP
stuff that Wolfgang Gehner published. I've added the tapestry servlet as an
extension as follows:
<extension
id="myservletID"
name="myservletName"
point="org.eclipse.equinox.servlet.ext.servlets">
<alias>
/app
</alias>
<servlet-class>
org.apache.tapestry.ApplicationServlet
</servlet-class>
</extension>

When I do a sp_redeploy & then hit my url
http://localhost:7001/rspwebapp/eclipse/app
I get the following stack trace. The root appears to be a caused by:
java.lang.ClassCastException: org.apache.hivemind.impl.RegistryImpl.
org.apache.hivemind.ApplicationRuntimeException:
org.apache.hivemind.impl.RegistryImpl
[classpath:/org/apache/tapestry/pages/Exception.page, line 22, column 65]
at
org.apache.tapestry.error.ExceptionPresenterImpl.presentExce ption(ExceptionPresenterImpl.java:64)
at
$ExceptionPresenter_109448cc4be.presentException($ExceptionP resenter_109448cc4be.java)
at
org.apache.tapestry.engine.AbstractEngine.activateExceptionP age(AbstractEngine.java:121)
at
org.apache.tapestry.engine.AbstractEngine.service(AbstractEn gine.java:280)
at
org.apache.tapestry.services.impl.InvokeEngineTerminator.ser vice(InvokeEngineTerminator.java:60)
at
$WebRequestServicer_109448cc51a.service($WebRequestServicer_ 109448cc51a.java)
at
$WebRequestServicer_109448cc516.service($WebRequestServicer_ 109448cc516.java)
at
org.apache.tapestry.services.impl.WebRequestServicerPipeline Bridge.service(WebRequestServicerPipelineBridge.java:56)
at
$ServletRequestServicer_109448cc4fa.service($ServletRequestS ervicer_109448cc4fa.java)
at
org.apache.tapestry.request.DecodedRequestInjector.service(D ecodedRequestInjector.java:55)
at
$ServletRequestServicerFilter_109448cc4f6.service($ServletRe questServicerFilter_109448cc4f6.java)
at
$ServletRequestServicer_109448cc4fc.service($ServletRequestS ervicer_109448cc4fc.java)
at
org.apache.tapestry.multipart.MultipartDecoderFilter.service (MultipartDecoderFilter.java:52)
at
$ServletRequestServicerFilter_109448cc4f4.service($ServletRe questServicerFilter_109448cc4f4.java)
at
$ServletRequestServicer_109448cc4fc.service($ServletRequestS ervicer_109448cc4fc.java)
at
org.apache.tapestry.services.impl.SetupRequestEncoding.servi ce(SetupRequestEncoding.java:53)
at
$ServletRequestServicerFilter_109448cc4f8.service($ServletRe questServicerFilter_109448cc4f8.java)
at
$ServletRequestServicer_109448cc4fc.service($ServletRequestS ervicer_109448cc4fc.java)
at
$ServletRequestServicer_109448cc4ee.service($ServletRequestS ervicer_109448cc4ee.java)
at
org.apache.tapestry.ApplicationServlet.doService(Application Servlet.java:123)
at org.apache.tapestry.ApplicationServlet.doGet(ApplicationServ let.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.eclipse.equinox.servlet.httpservice.ServletRegistration. handleRequest(ServletRegistration.java:57)
at
org.eclipse.equinox.servlet.httpservice.ProxyServlet.service (ProxyServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.eclipse.equinox.servlet.bridge.BridgeServlet.service(Bri dgeServlet.java:72)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceA ction.run(StubSecurityHelper.java:225)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(S tubSecurityHelper.java:127)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStu bImpl.java:272)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStu bImpl.java:165)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvoca tionAction.run(WebAppServletContext.java:3153)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Aut henticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityMana ger.java:121)
at
weblogic.servlet.internal.WebAppServletContext.securedExecut e(WebAppServletContext.java:1973)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAp pServletContext.java:1880)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequ estImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Caused by: org.apache.hivemind.ApplicationRuntimeException:
org.apache.hivemind.impl.RegistryImpl
[classpath:/org/apache/tapestry/pages/Exception.page, line 22, column 65]
at
org.apache.tapestry.engine.RequestCycle.renderPage(RequestCy cle.java:380)
at
org.apache.tapestry.services.impl.ResponseRendererImpl.rende rResponse(ResponseRendererImpl.java:71)
at
$ResponseRenderer_109448cc4ce.renderResponse($ResponseRender er_109448cc4ce.java)
at
org.apache.tapestry.error.ExceptionPresenterImpl.presentExce ption(ExceptionPresenterImpl.java:46)
... 39 more
Caused by: java.lang.ClassCastException:
org.apache.hivemind.impl.RegistryImpl
at java.util.Collections.sort(Collections.java:121)
at org.apache.tapestry.web.WebUtils.toSortedList(WebUtils.java: 46)
at
org.apache.tapestry.describe.ServletContextStrategy.describe Object(ServletContextStrategy.java:43)
at
$DescribableStrategy_109448cc5e6.describeObject($Describable Strategy_109448cc5e6.java)
at
$DescribableStrategy_109448cc5e4.describeObject($Describable Strategy_109448cc5e4.java)
at
org.apache.tapestry.describe.HTMLDescriptionReceiver.describ eAlternate(HTMLDescriptionReceiver.java:90)
at
org.apache.tapestry.web.ServletWebContext.describeTo(Servlet WebContext.java:42)
at $WebContext_109448cc50a.describeTo($WebContext_109448cc50a.j ava)
at $WebContext_109448cc4c6.describeTo($WebContext_109448cc4c6.j ava)
at
org.apache.tapestry.describe.NativeStrategy.describeObject(N ativeStrategy.java:31)
at
$DescribableStrategy_109448cc5e6.describeObject($Describable Strategy_109448cc5e6.java)
at
$DescribableStrategy_109448cc5e4.describeObject($Describable Strategy_109448cc5e4.java)
at
org.apache.tapestry.describe.HTMLDescriptionReceiver.describ e(HTMLDescriptionReceiver.java:83)
at
org.apache.tapestry.describe.HTMLDescriberImpl.describeObjec t(HTMLDescriberImpl.java:31)
at
$HTMLDescriber_109448cc4cc.describeObject($HTMLDescriber_109 448cc4cc.java)
at org.apache.tapestry.html.Describe.renderComponent(Describe.j ava:46)
at org.apache.tapestry.AbstractComponent.render(AbstractCompone nt.java:617)
at org.apache.tapestry.BaseComponent.renderComponent(BaseCompon ent.java:92)
at org.apache.tapestry.AbstractComponent.render(AbstractCompone nt.java:617)
at
org.apache.tapestry.AbstractComponent.renderBody(AbstractCom ponent.java:434)
at org.apache.tapestry.html.Shell.renderComponent(Shell.java:11 4)
at org.apache.tapestry.AbstractComponent.render(AbstractCompone nt.java:617)
at org.apache.tapestry.BaseComponent.renderComponent(BaseCompon ent.java:92)
at org.apache.tapestry.AbstractComponent.render(AbstractCompone nt.java:617)
at org.apache.tapestry.AbstractPage.renderPage(AbstractPage.jav a:275)
at
org.apache.tapestry.engine.RequestCycle.renderPage(RequestCy cle.java:366)
... 42 moreAny thoughts as to what might be causing this error? Maybe the
hivemind list would be better, but maybe someone has some tapestry/hivemind
knowledge & has seen similar. Thanks.Waynetexas_mustang@yahoo.com
Re: use with tapestry/hivemind [message #60018 is a reply to message #59994] Tue, 07 February 2006 13:59 Go to previous messageGo to next message
Wolfgang Gehner is currently offline Wolfgang GehnerFriend
Messages: 26
Registered: July 2009
Junior Member
Does it go further than your class-cast the first time after you restart
Tomcat? Then I'm blindly guessing at the session scope issue I mentioned
in an earlier thread.
Re: use with tapestry/hivemind [message #60042 is a reply to message #60018] Tue, 07 February 2006 15:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: texas_mustang.yahoo.com

Thanks for your reply. I modified the RSP code to work under weblogic 9.1,
so I'm not in Tomcat.

No, it still throws the same error after restart. That class-cast is weird.
I looked in the code & it's just looping through servlet context attribute
names and somehow throwing this exception.

Here's the line in ServletContextStrategy
Iterator i =
WebUtils.toSortedList(context.getAttributeNames()).iterator( );
and the line in WebUtils.toSortedList()
Collections.sort(list);
and the sort being used in Collections.java
public static <T extends Comparable<? super T>> void sort(List<T> list)
{
Object[] a = list.toArray();
Arrays.sort(a);
ListIterator<T> i = list.listIterator();
for (int j=0; j<a.length; j++) {
i.next();
i.set((T)a[j]); // <--- abends here with class-cast exception
}
}

I will continue research & post any progress. Thanks.

"Wolfgang Gehner" <wgehner@infonoia.com> wrote in message
news:ab1b109b62dfeff6c0043201dbdea471$1@www.eclipse.org...
> Does it go further than your class-cast the first time after you restart
> Tomcat? Then I'm blindly guessing at the session scope issue I mentioned
> in an earlier thread.
>
Re: use with tapestry/hivemind [message #60065 is a reply to message #59994] Tue, 07 February 2006 15:20 Go to previous messageGo to next message
Wolfgang Gehner is currently offline Wolfgang GehnerFriend
Messages: 26
Registered: July 2009
Junior Member
A bug in
org.equinox.servlet.httpservice.ServletContextAdaptor.getAtt ributeNames()
already reported *may* be causing your problem:

public Enumeration getAttributeNames() {
Dictionary attributes = getAttributes(httpContext);
return attributes.keys(); //<-should be, but was: elements();
}

You should be able to fix it in your install, redeploy xxx.httpservice.jar
to the sample webapp and be fine.
Re: use with tapestry/hivemind [message #60089 is a reply to message #60042] Tue, 07 February 2006 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: skaegi.sympatico.ca

Wayne,

I'm curious. What modifications did you have to do to get to work under
WebLogic?

re: Tapestry - I'm pretty green here but want to help. Can you give me more
detailed info on your setup.

-Simon


"Wayne Young" <texas_mustang@yahoo.com> wrote in message
news:dsad4o$j28$1@utils.eclipse.org...
> Thanks for your reply. I modified the RSP code to work under weblogic 9.1,
> so I'm not in Tomcat.
>
> No, it still throws the same error after restart. That class-cast is
weird.
> I looked in the code & it's just looping through servlet context attribute
> names and somehow throwing this exception.
>
> Here's the line in ServletContextStrategy
> Iterator i =
> WebUtils.toSortedList(context.getAttributeNames()).iterator( );
> and the line in WebUtils.toSortedList()
> Collections.sort(list);
> and the sort being used in Collections.java
> public static <T extends Comparable<? super T>> void sort(List<T>
list)
> {
> Object[] a = list.toArray();
> Arrays.sort(a);
> ListIterator<T> i = list.listIterator();
> for (int j=0; j<a.length; j++) {
> i.next();
> i.set((T)a[j]); // <--- abends here with class-cast exception
> }
> }
>
> I will continue research & post any progress. Thanks.
>
> "Wolfgang Gehner" <wgehner@infonoia.com> wrote in message
> news:ab1b109b62dfeff6c0043201dbdea471$1@www.eclipse.org...
> > Does it go further than your class-cast the first time after you restart
> > Tomcat? Then I'm blindly guessing at the session scope issue I mentioned
> > in an earlier thread.
> >
>
>
Re: use with tapestry/hivemind [message #60133 is a reply to message #60089] Tue, 07 February 2006 16:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: texas_mustang.yahoo.com

Simon,

It really didn't take that much to get it going. The RSP demo done by
Wolfgang Gehner is an awesome place to start.

I have posted a zip of my rsp environment that produces the weblogic
versions. It's assuming that WL 9.1 is installed at c:\bea91. The zip
archive is in this folder. http://www.e-cool.com/rsp/

I started by just deploying the plain RSP demo. I saw all these exceptions
around jasper class references & figured out that the jsp was being compiled
into a servlet via ant & the precompile.xml. I updated this use the WL jspc
compiler and most things started correctly. (see attached precompile.xml)
The only other changes I recall making were extracting some tlds into the
WEB-INF folder to get around some classloader issues w/o having to research
them.

I'm also new to Tapestry. I took the "directlink" tutorial example & tried
to get it working. I took the tapestry libraries & bundled them as a
plug-in. Then I created a plug-in around the "directlink" example that
actually loads the tapestry servlet.

Thanks.

Wayne



"Simon Kaegi" <skaegi@sympatico.ca> wrote in message
news:dsadv2$ksq$1@utils.eclipse.org...
> Wayne,
>
> I'm curious. What modifications did you have to do to get to work under
> WebLogic?
>
> re: Tapestry - I'm pretty green here but want to help. Can you give me
> more
> detailed info on your setup.
>
> -Simon
>
>
> "Wayne Young" <texas_mustang@yahoo.com> wrote in message
> news:dsad4o$j28$1@utils.eclipse.org...
>> Thanks for your reply. I modified the RSP code to work under weblogic
>> 9.1,
>> so I'm not in Tomcat.
>>
>> No, it still throws the same error after restart. That class-cast is
> weird.
>> I looked in the code & it's just looping through servlet context
>> attribute
>> names and somehow throwing this exception.
>>
>> Here's the line in ServletContextStrategy
>> Iterator i =
>> WebUtils.toSortedList(context.getAttributeNames()).iterator( );
>> and the line in WebUtils.toSortedList()
>> Collections.sort(list);
>> and the sort being used in Collections.java
>> public static <T extends Comparable<? super T>> void sort(List<T>
> list)
>> {
>> Object[] a = list.toArray();
>> Arrays.sort(a);
>> ListIterator<T> i = list.listIterator();
>> for (int j=0; j<a.length; j++) {
>> i.next();
>> i.set((T)a[j]); // <--- abends here with class-cast exception
>> }
>> }
>>
>> I will continue research & post any progress. Thanks.
>>
>> "Wolfgang Gehner" <wgehner@infonoia.com> wrote in message
>> news:ab1b109b62dfeff6c0043201dbdea471$1@www.eclipse.org...
>> > Does it go further than your class-cast the first time after you
>> > restart
>> > Tomcat? Then I'm blindly guessing at the session scope issue I
>> > mentioned
>> > in an earlier thread.
>> >
>>
>>
>
>


Re: use with tapestry/hivemind [message #60198 is a reply to message #60065] Tue, 07 February 2006 16:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: texas_mustang.yahoo.com

Wolfgang,

Thanks for the pointer. That did get past the ClassCastException & at least
now I actually get the error page. It looks like it might still be missing
some formatting, but the error says it can't find Home.

When I open this error page... I see the following. Notice how the hrefs
don't have "eclipse" between rspwebapp & app. I am going to look into that
one now. Thanks.
<link rel="stylesheet" type="text/css"
href=" /rspwebapp/app?digest=bde0b26e389945ecc2f493a552f8c1e9&a mp;path=%2Forg%2Fapache%2Ftapestry%2Fpages%2FException.css&a mp;amp;service=asset "/>
</head>
<body>
<span class="exception-header">An exception has occurred.</span>
<p>You may continue by <b><a
href="/rspwebapp/app?service=restart">restarting</a></b> the session.
<
"Wolfgang Gehner" <wgehner@infonoia.com> wrote in message
news:eba28b7341fd00069a228804ac6c9a86$1@www.eclipse.org...
>A bug in
> org.equinox.servlet.httpservice.ServletContextAdaptor.getAtt ributeNames()
> already reported *may* be causing your problem:
>
> public Enumeration getAttributeNames() {
> Dictionary attributes = getAttributes(httpContext);
> return attributes.keys(); //<-should be, but was: elements();
> }
>
> You should be able to fix it in your install, redeploy xxx.httpservice.jar
> to the sample webapp and be fine.
>
Re: use with tapestry/hivemind [message #60245 is a reply to message #60198] Tue, 07 February 2006 16:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: texas_mustang.yahoo.com

I have attached the error page just in case it might provide some further
information.

"Wayne Young" <texas_mustang@yahoo.com> wrote in message
news:dsaidu$u2s$1@utils.eclipse.org...
> Wolfgang,
>
> Thanks for the pointer. That did get past the ClassCastException & at
> least
> now I actually get the error page. It looks like it might still be missing
> some formatting, but the error says it can't find Home.
>
> When I open this error page... I see the following. Notice how the hrefs
> don't have "eclipse" between rspwebapp & app. I am going to look into that
> one now. Thanks.
> <link rel="stylesheet" type="text/css"
> href=" /rspwebapp/app?digest=bde0b26e389945ecc2f493a552f8c1e9&a mp;path=%2Forg%2Fapache%2Ftapestry%2Fpages%2FException.css&a mp;amp;service=asset "/>
> </head>
> <body>
> <span class="exception-header">An exception has occurred.</span>
> <p>You may continue by <b><a
> href="/rspwebapp/app?service=restart">restarting</a></b> the session.
> <
> "Wolfgang Gehner" <wgehner@infonoia.com> wrote in message
> news:eba28b7341fd00069a228804ac6c9a86$1@www.eclipse.org...
>>A bug in
>> org.equinox.servlet.httpservice.ServletContextAdaptor.getAtt ributeNames()
>> already reported *may* be causing your problem:
>>
>> public Enumeration getAttributeNames() {
>> Dictionary attributes = getAttributes(httpContext);
>> return attributes.keys(); //<-should be, but was: elements();
>> }
>>
>> You should be able to fix it in your install, redeploy
>> xxx.httpservice.jar
>> to the sample webapp and be fine.
>>
>
>


  • Attachment: app.html
    (Size: 32.81KB, Downloaded 584 times)
Re: use with tapestry/hivemind [message #60270 is a reply to message #60198] Tue, 07 February 2006 16:54 Go to previous messageGo to next message
Wolfgang Gehner is currently offline Wolfgang GehnerFriend
Messages: 26
Registered: July 2009
Junior Member
What I did in Struts, to supply the missing path, was add the following in
a taglibs.jsp which I compile-time-include at the top of every JSP anyway
via
<%@ include file="taglibs.jsp" %>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
pageContext.getServletContext().setAttribute("org.apache.struts.action.SERVLET_MAPPING ",
"/eclipse/do/*");%>

In my case this works around a problem that OSGi(and bridge) apparently
uses separate servlet contexts for request and forward, so it looses the
PathInfo.
It thinks that /rspwebapp is root and looses the controller path. You are
likely to find similar things with Tapestry.
Re: use with tapestry/hivemind [message #60294 is a reply to message #60198] Tue, 07 February 2006 17:03 Go to previous messageGo to next message
Wolfgang Gehner is currently offline Wolfgang GehnerFriend
Messages: 26
Registered: July 2009
Junior Member
What happens when you change bridgeservlet mapping to:

<servlet-mapping>
<servlet-name>equinoxbridgeservlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

This means you can't have jsps in the webapp outside the bundles, but
paths should work (though "the" servletContext still may loose info on MVC
forwards).
Re: use with tapestry/hivemind [message #60318 is a reply to message #60294] Tue, 07 February 2006 19:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: texas_mustang.yahoo.com

The "Home" page still isn't found, but the exception page displays with it's
correct formatting and the hrefs look OK. Still looking.

"Wolfgang Gehner" <wgehner@infonoia.com> wrote in message
news:15b37c4e17d240300f606b8398313767$1@www.eclipse.org...
> What happens when you change bridgeservlet mapping to:
>
> <servlet-mapping>
> <servlet-name>equinoxbridgeservlet</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
>
> This means you can't have jsps in the webapp outside the bundles, but
> paths should work (though "the" servletContext still may loose info on MVC
> forwards).
Re: use with tapestry/hivemind [message #60389 is a reply to message #60318] Wed, 08 February 2006 07:57 Go to previous messageGo to next message
Wolfgang Gehner is currently offline Wolfgang GehnerFriend
Messages: 26
Registered: July 2009
Junior Member
Could this

https://bugs.eclipse.org/bugs/show_bug.cgi?id=126518

be causing the problem?
Re: use with tapestry/hivemind [message #60413 is a reply to message #60389] Wed, 08 February 2006 20:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: texas_mustang.yahoo.com

Well, I don't know. I got a little further today by adding this parameter
for the servlet extension.

<param-name>org.apache.tapestry.application-specification</param-name >
<param-value>/applications/app.application</param-value>

I still get the page not found though. I'm guessing that since the tapestry
servlet & hivemind are in a different plugin that it can't see the 'Home'
page.

2006-02-08 11:59:22,766 DEBUG [tapestry.globals.RequestGlobals] Constructing
core service implementation for service tapestry.globals.RequestGlobals
2006-02-08 11:59:23,406 DEBUG [hivemind.ThreadLocale] Constructing core
service implementation for service hivemind.ThreadLocale
2006-02-08 11:59:23,406 DEBUG [tapestry.page.PageSpecificationResolver]
Constructing core service implementation for service
tapestry.page.PageSpecificationResolver
2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver]
Autowired property log to
org.apache.commons.logging.impl.Log4JLogger@1ab22c7
2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver] Set
property specificationSource to <SingletonProxy for
tapestry.parse.SpecificationSource(org.apache.tapestry.engin e.ISpecificationSource) >
2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver] Set
property componentPropertySource to <SingletonProxy for
tapestry.props.ComponentPropertySource(org.apache.tapestry.s ervices.ComponentPropertySource) >
2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver] Set
property delegate to <SingletonProxy for
tapestry.page.SpecificationResolverDelegate(org.apache.tapes try.resolver.ISpecificationResolverDelegate) >
2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver] Set
property applicationId to org.apache.tapestry.ApplicationServlet
2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver] Set
property contextRoot to context:/
2006-02-08 11:59:23,438 DEBUG [tapestry.page.PageSpecificationResolver]
Resolving page 'Home' in Namespace@2085b6[<application>].
2006-02-08 11:59:23,438 DEBUG [tapestry.page.PageSpecificationResolver]
Checking: classpath:/applications/Home.page
2006-02-08 11:59:23,563 DEBUG [tapestry.page.PageSpecificationResolver]
Checking: context:/WEB-INF/org.apache.tapestry.ApplicationServlet/Home .page
2006-02-08 11:59:23,656 DEBUG [tapestry.page.PageSpecificationResolver]
Checking: context:/WEB-INF/Home.page
2006-02-08 11:59:23,750 DEBUG [tapestry.page.PageSpecificationResolver]
Checking: context:/Home.page
2006-02-08 11:59:23,813 DEBUG [tapestry.page.PageSpecificationResolver]
Checking: context:/Home.html
2006-02-08 11:59:23,922 DEBUG [org.apache.tapestry.engine.AbstractEngine]
Uncaught exception
org.apache.tapestry.PageNotFoundException: Page 'Home' not found in
application namespace.
at
org.apache.tapestry.resolver.PageSpecificationResolverImpl.r esolve(PageSpecificationResolverImpl.java:140)
at
$PageSpecificationResolver_1094ab5da42.resolve($PageSpecific ationResolver_1094ab5da42.java)
at
$PageSpecificationResolver_1094ab5da43.resolve($PageSpecific ationResolver_1094ab5da43.java)
at org.apache.tapestry.pageload.PageSource.getPage(PageSource.j ava:115)
at $IPageSource_1094ab5d9ac.getPage($IPageSource_1094ab5d9ac.ja va)
at org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycl e.java:268)
at org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle .java:251)
at org.apache.tapestry.engine.RequestCycle.activate(RequestCycl e.java:609)
at org.apache.tapestry.engine.HomeService.service(HomeService.j ava:63)
at $IEngineService_1094ab5da2e.service($IEngineService_1094ab5d a2e.java)
at
org.apache.tapestry.services.impl.EngineServiceOuterProxy.se rvice(EngineServiceOuterProxy.java:66)
at
org.apache.tapestry.engine.AbstractEngine.service(AbstractEn gine.java:248)
at
org.apache.tapestry.services.impl.InvokeEngineTerminator.ser vice(InvokeEngineTerminator.java:60)
at
$WebRequestServicer_1094ab5da10.service($WebRequestServicer_ 1094ab5da10.java)
at
$WebRequestServicer_1094ab5da0c.service($WebRequestServicer_ 1094ab5da0c.java)
at
org.apache.tapestry.services.impl.WebRequestServicerPipeline Bridge.service(WebRequestServicerPipelineBridge.java:56)
at
$ServletRequestServicer_1094ab5d9f0.service($ServletRequestS ervicer_1094ab5d9f0.java)
at
org.apache.tapestry.request.DecodedRequestInjector.service(D ecodedRequestInjector.java:55)
at
$ServletRequestServicerFilter_1094ab5d9ec.service($ServletRe questServicerFilter_1094ab5d9ec.java)
at
$ServletRequestServicer_1094ab5d9f2.service($ServletRequestS ervicer_1094ab5d9f2.java)
at
org.apache.tapestry.multipart.MultipartDecoderFilter.service (MultipartDecoderFilter.java:52)
at
$ServletRequestServicerFilter_1094ab5d9ea.service($ServletRe questServicerFilter_1094ab5d9ea.java)
at
$ServletRequestServicer_1094ab5d9f2.service($ServletRequestS ervicer_1094ab5d9f2.java)
at
org.apache.tapestry.services.impl.SetupRequestEncoding.servi ce(SetupRequestEncoding.java:53)
at
$ServletRequestServicerFilter_1094ab5d9ee.service($ServletRe questServicerFilter_1094ab5d9ee.java)
at
$ServletRequestServicer_1094ab5d9f2.service($ServletRequestS ervicer_1094ab5d9f2.java)
at
$ServletRequestServicer_1094ab5d9e4.service($ServletRequestS ervicer_1094ab5d9e4.java)
at
org.apache.tapestry.ApplicationServlet.doService(Application Servlet.java:123)
at org.apache.tapestry.ApplicationServlet.doGet(ApplicationServ let.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.eclipse.equinox.servlet.httpservice.ServletRegistration. handleRequest(ServletRegistration.java:57)
at
org.eclipse.equinox.servlet.httpservice.ProxyServlet.service (ProxyServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.eclipse.equinox.servlet.bridge.BridgeServlet.service(Bri dgeServlet.java:72)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceA ction.run(StubSecurityHelper.java:225)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(S tubSecurityHelper.java:127)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStu bImpl.java:272)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStu bImpl.java:165)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvoca tionAction.run(WebAppServletContext.java:3153)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Aut henticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityMana ger.java:121)
at
weblogic.servlet.internal.WebAppServletContext.securedExecut e(WebAppServletContext.java:1973)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAp pServletContext.java:1880)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequ estImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)


"Wolfgang Gehner" <wgehner@infonoia.com> wrote in message
news:e596dabe421cd97b8eec136b9565ae39$1@www.eclipse.org...
> Could this
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=126518
>
> be causing the problem?
>
Re: use with tapestry/hivemind [message #60434 is a reply to message #60413] Thu, 09 February 2006 14:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: texas_mustang.yahoo.com

I'm responding to myself, but I wanted to document this in case someone else
comes looking...

I finally got the Tapestry 4.0 DirectLink Tutorial running.

I created my own servlet extending the tapestry servlet and overriding the
createClassResolver() method.

@Override
protected ClassResolver createClassResolver() {
// TODO Auto-generated method stub
return new DefaultClassResolver(this.getClass().getClassLoader());
}

I'm sure changing the classloader will have its own problems, but I'm happy
to make some progress.

Wayne

"Wayne Young" <texas_mustang@yahoo.com> wrote in message
news:dsdkcm$j8t$1@utils.eclipse.org...
> Well, I don't know. I got a little further today by adding this parameter
> for the servlet extension.
>
> <param-name>org.apache.tapestry.application-specification</param-name >
> <param-value>/applications/app.application</param-value>
>
> I still get the page not found though. I'm guessing that since the
> tapestry servlet & hivemind are in a different plugin that it can't see
> the 'Home' page.
>
> 2006-02-08 11:59:22,766 DEBUG [tapestry.globals.RequestGlobals]
> Constructing core service implementation for service
> tapestry.globals.RequestGlobals
> 2006-02-08 11:59:23,406 DEBUG [hivemind.ThreadLocale] Constructing core
> service implementation for service hivemind.ThreadLocale
> 2006-02-08 11:59:23,406 DEBUG [tapestry.page.PageSpecificationResolver]
> Constructing core service implementation for service
> tapestry.page.PageSpecificationResolver
> 2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver]
> Autowired property log to
> org.apache.commons.logging.impl.Log4JLogger@1ab22c7
> 2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver]
> Set property specificationSource to <SingletonProxy for
> tapestry.parse.SpecificationSource(org.apache.tapestry.engin e.ISpecificationSource) >
> 2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver]
> Set property componentPropertySource to <SingletonProxy for
> tapestry.props.ComponentPropertySource(org.apache.tapestry.s ervices.ComponentPropertySource) >
> 2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver]
> Set property delegate to <SingletonProxy for
> tapestry.page.SpecificationResolverDelegate(org.apache.tapes try.resolver.ISpecificationResolverDelegate) >
> 2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver]
> Set property applicationId to org.apache.tapestry.ApplicationServlet
> 2006-02-08 11:59:23,422 DEBUG [tapestry.page.PageSpecificationResolver]
> Set property contextRoot to context:/
> 2006-02-08 11:59:23,438 DEBUG [tapestry.page.PageSpecificationResolver]
> Resolving page 'Home' in Namespace@2085b6[<application>].
> 2006-02-08 11:59:23,438 DEBUG [tapestry.page.PageSpecificationResolver]
> Checking: classpath:/applications/Home.page
> 2006-02-08 11:59:23,563 DEBUG [tapestry.page.PageSpecificationResolver]
> Checking:
> context:/WEB-INF/org.apache.tapestry.ApplicationServlet/Home .page
> 2006-02-08 11:59:23,656 DEBUG [tapestry.page.PageSpecificationResolver]
> Checking: context:/WEB-INF/Home.page
> 2006-02-08 11:59:23,750 DEBUG [tapestry.page.PageSpecificationResolver]
> Checking: context:/Home.page
> 2006-02-08 11:59:23,813 DEBUG [tapestry.page.PageSpecificationResolver]
> Checking: context:/Home.html
> 2006-02-08 11:59:23,922 DEBUG [org.apache.tapestry.engine.AbstractEngine]
> Uncaught exception
> org.apache.tapestry.PageNotFoundException: Page 'Home' not found in
> application namespace.
> at
> org.apache.tapestry.resolver.PageSpecificationResolverImpl.r esolve(PageSpecificationResolverImpl.java:140)
> at
> $PageSpecificationResolver_1094ab5da42.resolve($PageSpecific ationResolver_1094ab5da42.java)
> at
> $PageSpecificationResolver_1094ab5da43.resolve($PageSpecific ationResolver_1094ab5da43.java)
> at org.apache.tapestry.pageload.PageSource.getPage(PageSource.j ava:115)
> at $IPageSource_1094ab5d9ac.getPage($IPageSource_1094ab5d9ac.ja va)
> at org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycl e.java:268)
> at org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle .java:251)
> at org.apache.tapestry.engine.RequestCycle.activate(RequestCycl e.java:609)
> at org.apache.tapestry.engine.HomeService.service(HomeService.j ava:63)
> at $IEngineService_1094ab5da2e.service($IEngineService_1094ab5d a2e.java)
> at
> org.apache.tapestry.services.impl.EngineServiceOuterProxy.se rvice(EngineServiceOuterProxy.java:66)
> at
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEn gine.java:248)
> at
> org.apache.tapestry.services.impl.InvokeEngineTerminator.ser vice(InvokeEngineTerminator.java:60)
> at
> $WebRequestServicer_1094ab5da10.service($WebRequestServicer_ 1094ab5da10.java)
> at
> $WebRequestServicer_1094ab5da0c.service($WebRequestServicer_ 1094ab5da0c.java)
> at
> org.apache.tapestry.services.impl.WebRequestServicerPipeline Bridge.service(WebRequestServicerPipelineBridge.java:56)
> at
> $ServletRequestServicer_1094ab5d9f0.service($ServletRequestS ervicer_1094ab5d9f0.java)
> at
> org.apache.tapestry.request.DecodedRequestInjector.service(D ecodedRequestInjector.java:55)
> at
> $ServletRequestServicerFilter_1094ab5d9ec.service($ServletRe questServicerFilter_1094ab5d9ec.java)
> at
> $ServletRequestServicer_1094ab5d9f2.service($ServletRequestS ervicer_1094ab5d9f2.java)
> at
> org.apache.tapestry.multipart.MultipartDecoderFilter.service (MultipartDecoderFilter.java:52)
> at
> $ServletRequestServicerFilter_1094ab5d9ea.service($ServletRe questServicerFilter_1094ab5d9ea.java)
> at
> $ServletRequestServicer_1094ab5d9f2.service($ServletRequestS ervicer_1094ab5d9f2.java)
> at
> org.apache.tapestry.services.impl.SetupRequestEncoding.servi ce(SetupRequestEncoding.java:53)
> at
> $ServletRequestServicerFilter_1094ab5d9ee.service($ServletRe questServicerFilter_1094ab5d9ee.java)
> at
> $ServletRequestServicer_1094ab5d9f2.service($ServletRequestS ervicer_1094ab5d9f2.java)
> at
> $ServletRequestServicer_1094ab5d9e4.service($ServletRequestS ervicer_1094ab5d9e4.java)
> at
> org.apache.tapestry.ApplicationServlet.doService(Application Servlet.java:123)
> at
> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServ let.java:79)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> org.eclipse.equinox.servlet.httpservice.ServletRegistration. handleRequest(ServletRegistration.java:57)
> at
> org.eclipse.equinox.servlet.httpservice.ProxyServlet.service (ProxyServlet.java:62)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> org.eclipse.equinox.servlet.bridge.BridgeServlet.service(Bri dgeServlet.java:72)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceA ction.run(StubSecurityHelper.java:225)
> at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(S tubSecurityHelper.java:127)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStu bImpl.java:272)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStu bImpl.java:165)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvoca tionAction.run(WebAppServletContext.java:3153)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Aut henticatedSubject.java:321)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityMana ger.java:121)
> at
> weblogic.servlet.internal.WebAppServletContext.securedExecut e(WebAppServletContext.java:1973)
> at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAp pServletContext.java:1880)
> at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequ estImpl.java:1310)
> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
> at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
>
>
> "Wolfgang Gehner" <wgehner@infonoia.com> wrote in message
> news:e596dabe421cd97b8eec136b9565ae39$1@www.eclipse.org...
>> Could this
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=126518
>>
>> be causing the problem?
>>
>
>
Re: use with tapestry/hivemind [message #60453 is a reply to message #60389] Thu, 09 February 2006 15:10 Go to previous message
Wolfgang Gehner is currently offline Wolfgang GehnerFriend
Messages: 26
Registered: July 2009
Junior Member
Just found that adding
<httpcontext-name>
my-shared-context
</httpcontext-name>
to all servlets that have a relationship
resolves the forwarding/context loss issue, so I am very happily
withdrawing the bug.
I actually name my my-shared-context "cross-context", in analogy to
Tomcat, where the server.xml attribute cross-context="true" does the same
thing across WARs.
So it's
<httpcontext-name>
cross-context
</httpcontext-name>
for me.
Previous Topic:How should one use a ServletContextListener when running under serverside OSGI?
Next Topic:[Fwd: Re: Eclipse 3.1 Test Framwork : org.eclipse.ant.optional.junit\fragment.xml broken?]
Goto Forum:
  


Current Time: Thu Apr 18 06:01:05 GMT 2024

Powered by FUDForum. Page generated in 0.02724 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top