tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio González Artime" <antoniogart...@gmail.com>
Subject Servlet + Corba Error -> Access to the specified resource () has been forbidden.
Date Tue, 03 Jun 2008 18:50:17 GMT
Hello everybody:

I'm trying to develop a simple application that uses a servlet and
calls a Corba function; very similar to this tutorial:

http://java.sun.com/developer/technicalArticles/Servlets/corba/

I deploy the application but when I use POST to send a variable to the
CORBA function, Tomcat returns:

////////////////////////////////////////////////////////////////////////////////////////
HTTP Status 403 -
type Status report
message
description Access to the specified resource () has been forbidden.
Apache Tomcat/6.0.16
/////////////////////////////////////////////////////////////////////////////////////////

Log in catalina.out: //////////////////////////////////////////////////////

ERROR : org.omg.CORBA.NO_IMPLEMENT: This is a locally constrained
object.  vmcid: 0x0  minor code: 0  completed: No
org.omg.CORBA.NO_IMPLEMENT: This is a locally constrained object.
vmcid: 0x0  minor code: 0  completed: No
        at org.omg.CORBA.LocalObject._is_a(LocalObject.java:109)
        at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
        at lastfm.servlets.tags.ViewResults.init(ViewResults.java:54)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)

////////////////////////////////////////////////////////////////////////////////////

ViewResults.java /////////////////////////////////////////////////////////

[...]
@Override
	public void init(ServletConfig config) throws ServletException {
	      super.init(config);
	    //
	      try {
	         String args[] = null;
	         // Create and initialize the ORB
	         ORB orb = ORB.init(args, null);
	
	         // Get the root naming context
	         org.omg.CORBA.Object objRef =
	            orb.resolve_initial_references("RootPOA");
	         ncRef = NamingContextHelper.narrow(objRef);
[...]

/////////////////////////////////////////////////////////////////////////////////////////

web.xml ///////////////////////////////////////////////////////////////////////////

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	<display-name>Last Fm Servlet</display-name>
	<servlet>
		<servlet-name>GetTag</servlet-name>
		<servlet-class>lastfm.servlets.tags.GetTag</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>ViewResults</servlet-name>
		<servlet-class>lastfm.servlets.tags.ViewResults</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>GetTag</servlet-name>
		<url-pattern>/GetTag</url-pattern>
	</servlet-mapping>
		<servlet-mapping>
		<servlet-name>ViewResults</servlet-name>
		<url-pattern>/ViewResults</url-pattern>
	</servlet-mapping>
    <welcome-file-list>
    	<welcome-file>login.html</welcome-file>
	</welcome-file-list>
</web-app>

////////////////////////////////////////////////////////////////////////////////////////

I'm going crazy with this... Any suggestions?

Thank you in advance!

--
Antonio González Artime
antoniogartime@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message