RE: URL pattern /admin/*
"Christian Cryder" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Andras, Well, the way things are currently implemented, anything that ends with *.event gets routed to ApplicationGateway (which youy are seeing), and ApplicationGateway then tries to determine the event name. It does this first by looking at the servlet path info, and if that is null, then it uses the actual URI name. In this case, the path is coming back as 'admin', and so Barracuda thinks that is the event name you are after (which it isn't). Before I venture a guess at possible solutions, can you give us soime insight into what you are trying to accomplish here? Why do you want to use the /admin path to precede the actual event? Why not just use the event name? Or perhaps something like http://myhost/mywebapp/GetLogin.event?Admin=true Help us understand what you're after here... Thanks, Christian ---------------------------------------------- Christian Cryder [[email protected]] Internet Architect, ATMReports.com Barracuda - http://barracuda.enhydra.org ---------------------------------------------- "Coffee? I could quit anytime, just not today" > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Andras Balogh > Sent: Wednesday, January 15, 2003 2:18 AM > To: [email protected] > Subject: [Barracuda] URL pattern /admin/* > > > Hi, > > I have a problem with my Barracuda webapp using Tomcat. > I want to map the admin part of my webapp to the path: /admin/* > > When i try to request something like this > http://myhost/mywebapp/admin/GetLogin.event > i get the error that unhandled event. > In the log i can see that something is not going right: > > 27730 [Thread-7] DEBUG > rg.enhydra.barracuda.core.event.ApplicationGateway - Incoming > URI:/mywebapp/admin/GetLogin.event > 27730 [Thread-7] DEBUG > rg.enhydra.barracuda.core.event.ApplicationGateway - ServletPath:/admin > 27730 [Thread-7] DEBUG > rg.enhydra.barracuda.core.event.ApplicationGateway - Creating Event > 27730 [Thread-7] ERROR > rg.enhydra.barracuda.core.event.ApplicationGateway - Class admin not > found...Creating a generic HttpRequestEvent > > I don't know why the servlet path is becaming just /admin. > This is a tomcat bug? (my tomcat version is 4.1.12) > Looking at the source of > org.enhydra.barracuda.core.event.ApplicationGateway i see that if the > request URI would be used > than the event name could be obtained. > > Can somebody comment on this matter? > > Thanks, > > Andras. > > > > > > > > > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda