[graniteds@yahoo] java.lang.NoClassDefFoundError: org/apache/catalina/connector/RequestFacade

175 views
Skip to first unread message

Franck Wolff

unread,
Mar 30, 2010, 4:24:28 AM3/30/10
to gran...@googlegroups.com
[Message #550, From: "jairokan" <jair...@yahoo.com>, Date: Mon Aug 20 23:14:00 CEST 2007]

Hi,
New to this group. Just trying Granite Data Service. I've tried the
POJO example works fine. I've made some modifications to my remote
objects and sill working fine. I'm trying to implement the security
setting but here my application cannot start. I'm using Tomcat5.5.
In my granite-config.xml file I've added the TomcatSecurityService
as follows:
<granite-config>
<security
type="org.granite.messaging.service.security.TomcatSecurityService"/>
</granite-config>
The application cannot start and in the log file I got the following
error:
2007-08-20 21:33:35,810 ERROR
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].
[/graniteapp]] - Exception starting filter AMFMessageFilter
java.lang.NoClassDefFoundError:
org/apache/catalina/connector/RequestFacade
at
org.granite.messaging.service.security.TomcatSecurityService.<init>
(TomcatSecurityService.java:59)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)

The RequestFacade class I'm sure is in catalina.jar.
What could cause this problem.
Please can someone help.
Thanks


Franck Wolff

unread,
Mar 30, 2010, 4:24:30 AM3/30/10
to gran...@googlegroups.com
[Message #551, From: "fwolff999" <franck...@graniteds.org>, Date: Tue Aug 21 15:11:00 CEST 2007]

Hi,

Make sure you didn't deploy catalina.jar in WEB-INF/lib.

Regards,
Franck.

Franck Wolff

unread,
Mar 30, 2010, 4:24:34 AM3/30/10
to gran...@googlegroups.com
[Message #553, From: "Jamal Romero" <jair...@yahoo.com>, Date: Tue Aug 21 17:53:00 CEST 2007]

Hi,
Thanks for the quick reply. Sorry I just want to make
sure if I got it right.
1) Do I have to put the catalina.jar file in
WEB-INF/lib or not? Last night just after sending my
first message, I copied the file to WEB-INF/lib
location and the exception disappeared, but I got
another exception, but this not urgent at the moment
may be I'll find a solution.
2) Putting catalina.jar in different location wouldn't
conflict with the already present in tomcat server?
3) I looked at TomcatSecurityService.java source code.
On the constructor it's trying to instatntiate the
request field as follows:
requestField =
RequestFacade.class.getDeclaredField("request");
I've been coding in J2ee container for a while, i've
never needed to touch the these classes. If you have a
bit of time, why is that neccesary. Could it be
another way to get the RequestFacade instant object?
May be I'm naive here. I must say, also I've never
touched the Reflection API.

Regards
Jamal

--- fwolff999 <<a href="/group/graniteds/post?postID=hNJXxs_ON4rADNYOJy7PJ3eUKyu59SukP5v64kO2QuJHDePtd9FKMWOqetiYoSdAq8G2Y5ztR_yS5mpg0K9VSqFL2w">franck...@graniteds.org</a>> wrote:

> Hi,
>
> Make sure you didn't deploy catalina.jar in
> WEB-INF/lib.
>
> Regards,
> Franck.
>

> --- In <a href="/group/graniteds/post?postID=Vd0JZFAlTpaJUKaiT06jNMYm-EDEkOi5ic_EvqgEcC4SJpazyNGU72U3ZMvYioYhWTi8ApxsZSSmJVXQCPyvVmBVTw">gran...@yahoogroups.com</a>, "jairokan"


________________________________________________________________________________\
____
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.
<a href="http://answers.yahoo.com/dir/?link=list&sid=396545433">http://answers.yahoo.com/dir/?link=list&sid=396545433</a>


Franck Wolff

unread,
Mar 30, 2010, 4:24:35 AM3/30/10
to gran...@googlegroups.com
[Message #554, From: "jairokan" <jair...@yahoo.com>, Date: Wed Aug 22 10:53:00 CEST 2007]

Hi,
After putting catalina.jar in WEB-INF/lib directory the exception
about the RequestFacade not found had disappeared but I got
anotherone saying the the Service cannot be found. Please the log:


2007-08-22 09:35:12,141 ERROR [org.granite.config.GraniteConfig] -
Could not load Granite Config from: C:\Program Files\Apache Software
Foundation\Tomcat 5.5\webapps\graniteapp\WEB-INF\granite\granite-
config.xml
org.granite.config.GraniteConfigException: Could not configure
SecurityService
org.granite.messaging.service.security.TomcatSecurityService with: {}
at org.granite.config.GraniteConfig.forElement
(GraniteConfig.java:414)
at org.granite.config.GraniteConfig.loadConfig
(GraniteConfig.java:451)
at org.granite.config.GraniteConfig.loadConfig
(GraniteConfig.java:111)
at org.granite.messaging.webapp.AMFMessageFilter.init
(AMFMessageFilter.java:55)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter
(ApplicationFilterConfig.java:221)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef
(ApplicationFilterConfig.java:302)
at org.apache.catalina.core.ApplicationFilterConfig.<init>
(ApplicationFilterConfig.java:78)
at org.apache.catalina.core.StandardContext.filterStart
(StandardContext.java:3635)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4222)
at org.apache.catalina.manager.ManagerServlet.start
(ManagerServlet.java:1176)
at org.apache.catalina.manager.HTMLManagerServlet.start
(HTMLManagerServlet.java:542)
at org.apache.catalina.manager.HTMLManagerServlet.doGet
(HTMLManagerServlet.java:105)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11AprProcessor.process
(Http11AprProcessor.java:834)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr
ocess(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run
(AprEndpoint.java:1286)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Could not find Tomcat
service for: (default)
at
org.granite.messaging.service.security.TomcatSecurityService.configur
e(TomcatSecurityService.java:82)
at org.granite.config.GraniteConfig.forElement
(GraniteConfig.java:411)
... 26 more

I can see the Service is there in the Server.xml named Catalina
which is the default when you install Tomcat. Please advise why is
it not found.

Regards
Jairo

> --- fwolff999 <franck.wolff@...> wrote:
>
> > Hi,
> >
> > Make sure you didn't deploy catalina.jar in
> > WEB-INF/lib.
> >
> > Regards,
> > Franck.
> >

> > --- In <a href="/group/graniteds/post?postID=EaRlpcMT9udPq93XzOaaOuS2YUQVPkYko_ksK9oIFzo3ihwhfEff1eNXmbb6-KfhbyMh2do2hbww-cNYzf4vSuEk">gran...@yahoogroups.com</a>, "jairokan"

Franck Wolff

unread,
Mar 30, 2010, 4:24:38 AM3/30/10
to gran...@googlegroups.com
[Message #556, From: "jairokan" <jair...@yahoo.com>, Date: Wed Aug 22 23:22:00 CEST 2007]

<P>Hi,<BR>At last I found the solution!!!!!!!!<IMG height="18" alt=":))" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/18.gif" width="18"><BR>After many days of search, googling google, diving inside graniteds sourcecode, line by line, looking at the error logs and banging my heag against the wall<IMG height="18" alt=":((" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/17.gif" width="18">,<BR>finally my simple application started without errors, and the TomcatSecurityService started doing the job properly. So for anyone new to this like me<BR>wanting to use the SecurityService in Tomcat container WITHOUT JBoss here's what you should do, this is in Tomcat 5.5, it will save you time and frustration<IMG height="18" alt="X-(" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/12.gif" width="18">.<BR>Infact in Granite Data Services website documentation there only one piece of information missing, it's about the web application context attribute "privileged".<BR>The documentation says, to use TomcatSecurityService your granite-config.xml should be as folllows:<BR><granite-config><BR> <security type="org.granite.messaging.service.security.TomcatSecurityService"/><BR></granite-config></P>
<P>After starting the application I was getting the following error in the log:<BR>java.lang.NoClassDefFoundError: org/apache/catalina/connector/RequestFacade<BR>at org.granite.messaging.service.security.TomcatSecurityService.<init>(TomcatSecurityService.java:59)</P>
<P>So I said this class is in catalina.jar why not put it in WEB-INF/lib. The error disappeared, BUT a new one came up like this:<BR>Caused by: java.lang.NullPointerException: Could not find Tomcat service for: (default)<BR>at org.granite.messaging.service.security.TomcatSecurityService.configure(TomcatSecurityService.java:82)</P>
<P>Inside TomcatSecurityService.configure(Map<String, String> params) method, a reference to the Server instance is created:<BR>Server server = ServerFactory.getServer();<BR>Then from that reference we can get the Container Services available, "Catalina" service comes as default when Tomcat installed.<BR>Below that, there's a test for the service reference if found null an Excpetion will be thrown whiich is what I got in the log. So the problem is that even<BR>the service is available the reference found is null.<BR>I removed again catalina.jar from WEB-INF/lib directory and I'm back to square one, the first error is showing again. But I had the intuition that this<BR>file shouln't be there at all. I knew that the problen was located in the service ref test and why it was null. After sesrching everywhere and with every<BR>word combination possible, my last combimation of words was like this: Tomcat Server findServices(), then I found this link:<BR><A href="http://wiki.apache.org/tomcat/HowTo#head-cb66e750a22dea34b56f508dd675ed3c2e2e221a">http://wiki.apache.org/tomcat/HowTo#head-cb66e750a22dea34b56f508dd675ed3c2e2e221a</A><BR>and that was my salvation. As the page says: ((the Context of the web application in question needs to have its privileged attribute set to "true", ))<BR>So I changed my context as follows:<BR><Context reloadable="true" crossContext="false" privileged="true"><BR><!-- Of course here I got my Datasource setup and the Realm --><BR></Context></P>
<P>After just adding the small peice ((privileged="true")) all worked as a charm. and I happily <IMG height="18" alt=":))" src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/18.gif" width="18">can see my Flex application displaying a screen saying:<BR>"User not logged in" </P>
<P>So this is the story and I hope it'll save you time</P>
<P> </P>
<P> </P>
<P> </P>
<P><BR>--- In gran...@yahoogroups.com, "jairokan" <jairokan@...> wrote:<BR>><BR>> Hi,<BR>> After putting catalina.jar in WEB-INF/lib directory the exception <BR>> about the RequestFacade not found had disappeared but I got <BR>> anotherone saying the the Service cannot be found. Please the log:<BR>> <BR>> <BR>> 2007-08-22 09:35:12,141 ERROR [org.granite.config.GraniteConfig] - <BR>> Could not load Granite Config from: C:\Program Files\Apache Software <BR>> Foundation\Tomcat 5.5\webapps\graniteapp\WEB-INF\granite\granite-<BR>> config.xml<BR>> org.granite.config.GraniteConfigException: Could not configure <BR>> SecurityService <BR>> org.granite.messaging.service.security.TomcatSecurityService with: {}<BR>> at org.granite.config.GraniteConfig.forElement<BR>> (GraniteConfig.java:414)<BR>> at org.granite.config.GraniteConfig.loadConfig<BR>> (GraniteConfig.java:451)<BR>> at org.granite.config.GraniteConfig.loadConfig<BR>> (GraniteConfig.java:111)<BR>> at org.granite.messaging.webapp.AMFMessageFilter.init<BR>> (AMFMessageFilter.java:55)<BR>> at org.apache.catalina.core.ApplicationFilterConfig.getFilter<BR>> (ApplicationFilterConfig.java:221)<BR>> at <BR>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef<BR>> (ApplicationFilterConfig.java:302)<BR>> at org.apache.catalina.core.ApplicationFilterConfig.<init><BR>> (ApplicationFilterConfig.java:78)<BR>> at org.apache.catalina.core.StandardContext.filterStart<BR>> (StandardContext.java:3635)<BR>> at org.apache.catalina.core.StandardContext.start<BR>> (StandardContext.java:4222)<BR>> at org.apache.catalina.manager.ManagerServlet.start<BR>> (ManagerServlet.java:1176)<BR>> at org.apache.catalina.manager.HTMLManagerServlet.start<BR>> (HTMLManagerServlet.java:542)<BR>> at org.apache.catalina.manager.HTMLManagerServlet.doGet<BR>> (HTMLManagerServlet.java:105)<BR>> at javax.servlet.http.HttpServlet.service<BR>> (HttpServlet.java:690)<BR>> at javax.servlet.http.HttpServlet.service<BR>> (HttpServlet.java:803)<BR>> at <BR>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter<BR>> (ApplicationFilterChain.java:269)<BR>> at org.apache.catalina.core.ApplicationFilterChain.doFilter<BR>> (ApplicationFilterChain.java:188)<BR>> at org.apache.catalina.core.StandardWrapperValve.invoke<BR>> (StandardWrapperValve.java:210)<BR>> at org.apache.catalina.core.StandardContextValve.invoke<BR>> (StandardContextValve.java:174)<BR>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke<BR>> (AuthenticatorBase.java:525)<BR>> at org.apache.catalina.core.StandardHostValve.invoke<BR>> (StandardHostValve.java:127)<BR>> at org.apache.catalina.valves.ErrorReportValve.invoke<BR>> (ErrorReportValve.java:117)<BR>> at org.apache.catalina.core.StandardEngineValve.invoke<BR>> (StandardEngineValve.java:108)<BR>> at org.apache.catalina.connector.CoyoteAdapter.service<BR>> (CoyoteAdapter.java:151)<BR>> at org.apache.coyote.http11.Http11AprProcessor.process<BR>> (Http11AprProcessor.java:834)<BR>> at <BR>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr<BR>> ocess(Http11AprProtocol.java:640)<BR>> at org.apache.tomcat.util.net.AprEndpoint$Worker.run<BR>> (AprEndpoint.java:1286)<BR>> at java.lang.Thread.run(Unknown Source)<BR>> Caused by: java.lang.NullPointerException: Could not find Tomcat <BR>> service for: (default)<BR>> at <BR>> org.granite.messaging.service.security.TomcatSecurityService.configur<BR>> e(TomcatSecurityService.java:82)<BR>> at org.granite.config.GraniteConfig.forElement<BR>> (GraniteConfig.java:411)<BR>> ... 26 more<BR>> <BR>> I can see the Service is there in the Server.xml named Catalina <BR>> which is the default when you install Tomcat. Please advise why is <BR>> it not found.<BR>> <BR>> Regards<BR>> Jairo<BR>> <BR>> --- In gran...@yahoogroups.com, Jamal Romero jairokan@ wrote:<BR>> ><BR>> > Hi,<BR>> > Thanks for the quick reply. Sorry I just want to make<BR>> > sure if I got it right. <BR>> > 1) Do I have to put the catalina.jar file in<BR>> > WEB-INF/lib or not? Last night just after sending my<BR>> > first message, I copied the file to WEB-INF/lib<BR>> > location and the exception disappeared, but I got<BR>> > another exception, but this not urgent at the moment<BR>> > may be I'll find a solution.<BR>> > 2) Putting catalina.jar in different location wouldn't<BR>> > conflict with the already present in tomcat server?<BR>> > 3) I looked at TomcatSecurityService.java source code.<BR>> > On the constructor it's trying to instatntiate the<BR>> > request field as follows:<BR>> > requestField =<BR>> > RequestFacade.class.getDeclaredField("request");<BR>> > I've been coding in J2ee container for a while, i've<BR>> > never needed to touch the these classes. If you have a<BR>> > bit of time, why is that neccesary. Could it be<BR>> > another way to get the RequestFacade instant object?<BR>> > May be I'm naive here. I must say, also I've never<BR>> > touched the Reflection API.<BR>> > <BR>> > Regards<BR>> > Jamal<BR>> > <BR>> > --- fwolff999 franck.wolff@ wrote:<BR>> > <BR>> > > Hi,<BR>> > > <BR>> > > Make sure you didn't deploy catalina.jar in<BR>> > > WEB-INF/lib.<BR>> > > <BR>> > > Regards,<BR>> > > Franck.<BR>> > > <BR>> > > --- In gran...@yahoogroups.com, "jairokan"<BR>> > > <jairokan@> wrote:<BR>> > > ><BR>> > > > Hi,<BR>> > > > New to this group. Just trying Granite Data<BR>> > > Service. I've tried the <BR>> > > > POJO example works fine. I've made some<BR>> > > modifications to my remote <BR>> > > > objects and sill working fine. I'm trying to<BR>> > > implement the security <BR>> > > > setting but here my application cannot start. I'm<BR>> > > using Tomcat5.5.<BR>> > > > In my granite-config.xml file I've added the<BR>> > > TomcatSecurityService <BR>> > > > as follows:<BR>> > > > <granite-config><BR>> > > > <security <BR>> > > ><BR>> > ><BR>> > <BR>> type="org.granite.messaging.service.security.TomcatSecurityService"/><BR>> > > > </granite-config><BR>> > > > The application cannot start and in the log file I<BR>> > > got the following <BR>> > > > error:<BR>> > > > 2007-08-20 21:33:35,810 ERROR <BR>> > > ><BR>> > ><BR>> > [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].<BR>> > > > [/graniteapp]] - Exception starting filter<BR>> > > AMFMessageFilter<BR>> > > > java.lang.NoClassDefFoundError: <BR>> > > > org/apache/catalina/connector/RequestFacade<BR>> > > > at <BR>> > > ><BR>> > ><BR>> > org.granite.messaging.service.security.TomcatSecurityService.<init><BR>> > > > (TomcatSecurityService.java:59)<BR>> > > > at<BR>> > ><BR>> > sun.reflect.NativeConstructorAccessorImpl.newInstance0<BR>> > > > (Native Method)<BR>> > > > <BR>> > > > The RequestFacade class I'm sure is in<BR>> > > catalina.jar.<BR>> > > > What could cause this problem.<BR>> > > > Please can someone help.<BR>> > > > Thanks<BR>> > > ><BR>> > > <BR>> > > <BR>> > > <BR>> > <BR>> > <BR>> > <BR>> > <BR>> > <BR>> _____________________________________________________________________<BR>> _______________<BR>> > Be a better Heartthrob. Get better relationship answers from <BR>> someone who knows. Yahoo! Answers - Check it out. <BR>> > http://answers.yahoo.com/dir/?link=list&sid=396545433<BR>> ><BR>><BR></P>

Franck Wolff

unread,
Mar 30, 2010, 4:24:50 AM3/30/10
to gran...@googlegroups.com
[Message #563, From: "fwolff999" <franck...@graniteds.org>, Date: Sun Aug 26 12:49:00 CEST 2007]

Hi,

Thanks for this info<img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif" alt=":)" height="18" width="18">. Could you write a short tuto on this topic (where to put the "Context" configuration, in a global Tomcat server.xml or in the web-app only conf?) so I can add this precious hint to GDS documentation?

Regards,
Franck.

--- In gran...@yahoogroups.com, "jairokan" <jairokan@...> wrote:
>
>

> Hi,
> At last I found the solution!!!!!!!! [:))]


> After many days of search, googling google, diving inside graniteds
> sourcecode, line by line, looking at the error logs and banging my heag

> against the wall [:((] ,


> finally my simple application started without errors, and the
> TomcatSecurityService started doing the job properly. So for anyone new
> to this like me

> wanting to use the SecurityService in Tomcat container WITHOUT JBoss
> here's what you should do, this is in Tomcat 5.5, it will save you time

> and frustration [X-(] .


> Infact in Granite Data Services website documentation there only one
> piece of information missing, it's about the web application context
> attribute "privileged".

> The documentation says, to use TomcatSecurityService your
> granite-config.xml should be as folllows:

> <granite-config>
> <security
> type="org.granite.messaging.service.security.TomcatSecurityService"/>
> </granite-config>
>

> After starting the application I was getting the following error in the
> log:

> java.lang.NoClassDefFoundError:
> org/apache/catalina/connector/RequestFacade
> at
> org.granite.messaging.service.security.TomcatSecurityService.<init>(Tomc\
> atSecurityService.java:59)


>
> So I said this class is in catalina.jar why not put it in WEB-INF/lib.
> The error disappeared, BUT a new one came up like this:

> Caused by: java.lang.NullPointerException: Could not find Tomcat service
> for: (default)

> at
> org.granite.messaging.service.security.TomcatSecurityService.configure(T\
> omcatSecurityService.java:82)


>
> Inside TomcatSecurityService.configure(Map<String, String> params)
> method, a reference to the Server instance is created:

> Server server = ServerFactory.getServer();


> Then from that reference we can get the Container Services available,
> "Catalina" service comes as default when Tomcat installed.

> Below that, there's a test for the service reference if found null an
> Excpetion will be thrown whiich is what I got in the log. So the problem
> is that even

> the service is available the reference found is null.

> I removed again catalina.jar from WEB-INF/lib directory and I'm back to
> square one, the first error is showing again. But I had the intuition
> that this

> file shouln't be there at all. I knew that the problen was located in
> the service ref test and why it was null. After sesrching everywhere and
> with every

> word combination possible, my last combimation of words was like this:
> Tomcat Server findServices(), then I found this link:

> http://wiki.apache.org/tomcat/HowTo#head-cb66e750a22dea34b56f508dd675ed3\
> c2e2e221a
> <http://wiki.apache.org/tomcat/HowTo#head-cb66e750a22dea34b56f508dd675ed\
> 3c2e2e221a>


> and that was my salvation. As the page says: ((the Context of the web
> application in question needs to have its privileged attribute set to
> "true", ))

> So I changed my context as follows:

> <Context reloadable="true" crossContext="false" privileged="true">

> <!-- Of course here I got my Datasource setup and the Realm -->

> </Context>


>
> After just adding the small peice ((privileged="true")) all worked as a

> charm. and I happily [:))] can see my Flex application displaying a
> screen saying:
> "User not logged in"


>
> So this is the story and I hope it'll save you time
>
>
>
>
>
>
>
>

> --- In gran...@yahoogroups.com, "jairokan" jairokan@ wrote:
> >
> > Hi,


> > After putting catalina.jar in WEB-INF/lib directory the exception

> > about the RequestFacade not found had disappeared but I got

> > anotherone saying the the Service cannot be found. Please the log:
> >
> >

> > 2007-08-22 09:35:12,141 ERROR [org.granite.config.GraniteConfig] -

> > Could not load Granite Config from: C:\Program Files\Apache Software

> > Foundation\Tomcat 5.5\webapps\graniteapp\WEB-INF\granite\granite-

> > Caused by: java.lang.NullPointerException: Could not find Tomcat
> > service for: (default)

> > at
> > org.granite.messaging.service.security.TomcatSecurityService.configur
> > e(TomcatSecurityService.java:82)
> > at org.granite.config.GraniteConfig.forElement
> > (GraniteConfig.java:411)
> > ... 26 more
> >

> > I can see the Service is there in the Server.xml named Catalina

> > which is the default when you install Tomcat. Please advise why is

> > it not found.
> >
> > Regards
> > Jairo
> >

> > --- In gran...@yahoogroups.com, Jamal Romero jairokan@ wrote:
> > >

> > > Hi,


> > > Thanks for the quick reply. Sorry I just want to make

> > > sure if I got it right.

> > > 1) Do I have to put the catalina.jar file in

> > > WEB-INF/lib or not? Last night just after sending my

> > > first message, I copied the file to WEB-INF/lib

> > > location and the exception disappeared, but I got

> > > another exception, but this not urgent at the moment

> > > may be I'll find a solution.

> > > 2) Putting catalina.jar in different location wouldn't

> > > conflict with the already present in tomcat server?

> > > 3) I looked at TomcatSecurityService.java source code.

> > > On the constructor it's trying to instatntiate the

> > > request field as follows:
> > > requestField =
> > > RequestFacade.class.getDeclaredField("request");

> > > I've been coding in J2ee container for a while, i've

> > > never needed to touch the these classes. If you have a

> > > bit of time, why is that neccesary. Could it be

> > > another way to get the RequestFacade instant object?

> > > May be I'm naive here. I must say, also I've never

> > > touched the Reflection API.
> > >
> > > Regards
> > > Jamal
> > >

> > > --- fwolff999 franck.wolff@ wrote:
> > >
> > > > Hi,


> > > >
> > > > Make sure you didn't deploy catalina.jar in

> > > > WEB-INF/lib.
> > > >
> > > > Regards,
> > > > Franck.
> > > >
> > > > --- In gran...@yahoogroups.com, "jairokan"
> > > > <jairokan@> wrote:
> > > > >
> > > > > Hi,


> > > > > New to this group. Just trying Granite Data

> > > > Service. I've tried the

> > > > > POJO example works fine. I've made some

> > > > modifications to my remote


> > > > > objects and sill working fine. I'm trying to

> > > > implement the security


> > > > > setting but here my application cannot start. I'm

> > > > using Tomcat5.5.


> > > > > In my granite-config.xml file I've added the

> > > > TomcatSecurityService
> > > > > as follows:
> > > > > <granite-config>
> > > > > <security
> > > > >
> > > >
> > >
> > type="org.granite.messaging.service.security.TomcatSecurityService"/>
> > > > > </granite-config>

> > > > > The application cannot start and in the log file I

> > > > got the following
> > > > > error:


> > > > > 2007-08-20 21:33:35,810 ERROR
> > > > >
> > > >

> > > [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].

> > > > > [/graniteapp]] - Exception starting filter

> > > > AMFMessageFilter
> > > > > java.lang.NoClassDefFoundError:
> > > > > org/apache/catalina/connector/RequestFacade


> > > > > at
> > > > >
> > > >
> > > org.granite.messaging.service.security.TomcatSecurityService.<init>
> > > > > (TomcatSecurityService.java:59)

> > > > > at
> > > >
> > > sun.reflect.NativeConstructorAccessorImpl.newInstance0
> > > > > (Native Method)


> > > > >
> > > > > The RequestFacade class I'm sure is in

> > > > catalina.jar.


> > > > > What could cause this problem.

> > > > > Please can someone help.
> > > > > Thanks
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> > _____________________________________________________________________
> > _______________

> > > Be a better Heartthrob. Get better relationship answers from

> > someone who knows. Yahoo! Answers - Check it out.

> > > http://answers.yahoo.com/dir/?link=list&sid=396545433
> > >
> >
>


Reply all
Reply to author
Forward
0 new messages