On 2002.05.13 15:55:51 -0400 Emerson Cargnin - MSA wrote:
> Can I place oracle-services.xml in in meta-inf in order to maintain.it
> together in cvs?

You can make a package that includes the oracle-service.xml, however it has
to be a .sar extension and the file has to be named jboss-service.xml.

You could do something like this:


app.ear
  my-ejbs.jar
    oracle-service.sar
      META-INF
        jboss-service.xml (formerly oracle-service.xml)
  my-jsps.war

.sar files are jar format.  They are more or less intended for deploying
mbean classes + mbean configuration, but you can just have configuration.

in the above picture, the ear, jar, sar, and war files are all jar format,
packed as shown.

david jencks



> 
> 
> ----- Original Message -----
> From: Emerson Cargnin - MSA
> To: [EMAIL PROTECTED]
> Sent: Monday, May 13, 2002 4:15 PM
> Subject: [JBoss-user] Tomcat standalone malformed URL to connect JBOSS
> 
> 
> I'm trying to lookup EJB in a remote machine from tomcat and i'm getting
> the
> following error
> obs: i'm using jboss 3 RC2 and tomcat 4.0.1 in windows
> :
> 
> Code:
> 
> Properties newProps = System.getProperties();
> newProps.put("java.naming.factory.initial","org.jnp.interfaces.NamingContext
> Factory");
> newProps.put("java.naming.provider.url","jnp://localhost:1099/");
> newProps.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interf
> aces");
> System.setProperties (newProps);
> 
> InitialContext jndiContext = new InitialContext(newProps);
> Object ref = jndiContext.lookup("ejb/CobrancaFacade");
> CobrancaFacadeHome home = (CobrancaFacadeHome)
> PortableRemoteObject.narrow(ref,CobrancaFacadeHome.class);
> cobrancaFacade = home.create();
> 
> 
> Exception:
> 
> javax.naming.CommunicationException.  Root exception is
> java.rmi.ServerException: RemoteException oc
> curred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments;
> nested
> exception is:
>         java.net.MalformedURLException: no protocol: de
>         at
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
>         at sun.rmi.transport.Transport$1.run(Transport.java:148)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
>         at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
>         at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
> 01)
>         at java.lang.Thread.run(Thread.java:536)
>         at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
> all.java:247)
> 
>         at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
>         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
>         at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:368)
>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:352)
>         at javax.naming.InitialContext.lookup(InitialContext.java:354)
>         at
> br.com.sicredi.cobranca.cliente.bd.CobrancaBD.<init>(CobrancaBD.java:46)
>         at
> br.com.sicredi.cobranca.cliente.web.PesquisaPracaAction.executa(PesquisaPrac
> aAction.java:
> 112)
>         at
> br.com.sicredi.fw.cliente.web.TemplateAction.execute(TemplateAction.java:37)
>         at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
> sor.java:437)
> 
>         at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
>         at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
>         at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.j
> ava:247)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> 
> 
> _______________________________________________________________
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We
> supply
> the hardware. You get the recognition. Email Us:
> [EMAIL PROTECTED]
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to