Re: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-11 Thread Rettig Christoph

Yes, no problem with -nonaming : catalina.bat run -nonaming.
server.xml :


And all JBoss client JAR files in E:\Projects\web\WEB-INF\lib

Nothing else changed to catalina installation directory

Oh yes, another one,
jndi.properties is not read (if I remember well) so I have to manually
System.setProperty "java.naming..." just before calling new InitialContext()

  Hi!

  I'm using catalina in combination with the turbine framework and jbossMQ.
I also
  get exactly these communication errors when trying to get an initial
context.
  Which jar files exactly do you put in your web-inf\lib?? I tried your
suggestions
  (using jbossmq-client.jar) but the error stays the same

regards

  Chris ...

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Jbossmq && turbine Urgent!!!!

2001-05-09 Thread Rettig Christoph

Hi!

I have successfully written a jms-system using jbossmq and wanted to embed
this into the turbine framework (using catalina) but the same code doesn't
work anymore - I don't get an Initial-context


The code to get the context is as follows

  Properties env = new Properties();

  env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
  env.setProperty(Context.PROVIDER_URL,   "localhost:1099");
  env.setProperty(Context.URL_PKG_PREFIXES ,
"org.jboss.naming:org.jnp.interfaces");

  InitialContext jndi = new InitialContext(env);

and I get the following exception (as I said before: everything works
perfectly using the class standalone (not within a servlet))

any help would be great:

Chris ..

javax.naming.CommunicationException.  Root exception is
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is: 
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is: 
java.net.MalformedURLException: unknown protocol: jndi
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is: 
java.net.MalformedURLException: unknown protocol: jndi
java.net.MalformedURLException: unknown protocol: jndi
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:298)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:282)
at javax.naming.InitialContext.lookup(InitialContext.java:354)
at
at.siemens.jTA.jms.weatherAngel.jmsWeatherAngel.(jmsWeatherAngel.java:
116)
at
at.siemens.jTA.jms.weatherAngel.jmsWeatherAngel.(jmsWeatherAngel.java:
89)
at
at.siemens.jTA.modules.actions.WeatherLookup.doLookup(WeatherLookup.java:48)
at
at.siemens.jTA.modules.actions.WeatherLookup.doPerform(WeatherLookup.java:88
)
at
org.apache.turbine.modules.actions.VelocityAction.doPerform(VelocityAction.j
ava:88)
at
org.apache.turbine.util.velocity.VelocityActionEvent.perform(VelocityActionE
vent.java:116)
at
org.apache.turbine.modules.actions.VelocityAction.perform(VelocityAction.jav
a:114)
at
org.apache.turbine.modules.actions.VelocitySecureAction.perform(VelocitySecu
reAction.java:100)
at
org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:148)
at org.apache.turbine.modules.Page.build(Page.java:90)
at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
at org.apache.turbine.Turbine.doGet(Turbine.java:414)
at org.apache.turbine.Turbine.doPost(Turbine.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:246)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:191)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:254)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2087)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:162)
at
org.apach