[Installation, Configuration & DEPLOYMENT] - JConsole / jmxremote connection problems
by Rob@netplay.co.uk
I have followed the setup steps identified in http://www.jboss.org/community/docs/DOC-12499 that primarily indicates adding the following details to the run.conf (or alternatively run.sh)
| # Enable the jconsole agent remotely on port 12345
| JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=12345"
| JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
| JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
|
The JBoss is 4.2.2.GA running on a Linux box (Centos I believe) and I'm connecting using a remote Windows machine using JDK 1.6 JConsole.
But when I try to connect I receive the dialog "Connection Failed: Retry? The connection to <IP address> did not succeed. Would you like to try again?".
I can confirm that Telnet to the port works, plus on the Unix machine I've run tcpdump and confirmed JConsole is in fact talking to it, but then abandons part-way through. It's almost as thought there is some authentication going on, or perhaps firewall issues - but from what I understand this box is 'open' for all connections.
Does anyone have any pointers?
In addition, by experimentation I added other system properties based on searches in other forums, so right now I have these settings being output...
(addition of jboss.platform.mbeanserver and javax.management.builder.initial)
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /usr/local/jboss
|
| JAVA: /usr/lib/java/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
|
| CLASSPATH: /usr/local/jboss/bin/run.jar
|
| =========================================================================
|
If anyone can decifer the tcpdump, then please feel free ;-)
| tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
| listening on eth0, link-type EN10MB (Ethernet), capture size 2048 bytes
| 08:44:08.671640 IP 192.168.0.0.16565 > <hidden_ip>.12345: S 3360578768:3360578768(0) win 65535 <mss 1380,nop,nop,sackOK>
| 0x0000: 4500 0030 5bfe 4000 7e06 6ae6 c0a8 0000 E..0[.@.~.j.....
| 0x0010: ac1a c920 40b5 3039 c84e 5cd0 0000 0000 ....@.09.N\.....
| 0x0020: 7002 ffff b77e 0000 0204 0564 0101 0402 p....~.....d....
| 08:44:08.671677 IP <hidden_ip>.12345 > 192.168.0.0.16565: S 2992145961:2992145961(0) ack 3360578769 win 5840 <mss 1460,nop,nop,sackOK>
| 0x0000: 4500 0030 0000 4000 4006 04e5 ac1a c920 E..0..@.@.......
| 0x0010: c0a8 0000 3039 40b5 b258 8629 c84e 5cd1 ....09@..X.).N\.
| 0x0020: 7012 16d0 67cb 0000 0204 05b4 0101 0402 p...g...........
| 08:44:08.679632 IP 192.168.0.0.16565 > <hidden_ip>.12345: . ack 1 win 65535
| 0x0000: 4500 0028 5bff 4000 7e06 6aed c0a8 0000 E..([.@.~.j.....
| 0x0010: ac1a c920 40b5 3039 c84e 5cd1 b258 862a ....@.09.N\..X.*
| 0x0020: 5010 ffff ab5f 0000 0000 0000 0000 P...._........
| 08:44:08.681141 IP 192.168.0.0.16565 > <hidden_ip>.12345: P 1:101(100) ack 1 win 65535
| 0x0000: 4500 008c 5c00 4000 7e06 6a88 c0a8 0000 E...\.@.~.j.....
| 0x0010: ac1a c920 40b5 3039 c84e 5cd1 b258 862a ....@.09.N\..X.*
| 0x0020: 5018 ffff 4ae6 0000 8062 0103 0100 3900 P...J....b....9.
| 0x0030: 0000 2000 0004 0100 8000 0005 0000 2f00 ............../.
| 0x0040: 0033 0000 3200 000a 0700 c000 0016 0000 .3..2...........
| 0x0050: 1300 0009 0600 4000 0015 0000 1200 0003 ......@.........
| 0x0060: 0200 8000 0008 0000 1400 0011 4912 ae43 ............I..C
| 0x0070: 9bfe 97dd 8f15 bc47 e8c6 2def dac1 215e .......G..-...!^
| 0x0080: b144 3ce1 c881 dbbf 3b13 832e .D<.....;...
| 08:44:08.681183 IP <hidden_ip>.12345 > 192.168.0.0.16565: . ack 101 win 5840
| 0x0000: 4500 0028 3eb8 4000 4006 c634 ac1a c920 E..(>.@.@..4....
| 0x0010: c0a8 0000 3039 40b5 b258 862a c84e 5d35 ....09@..X.*.N]5
| 0x0020: 5010 16d0 942b 0000 P....+..
| 08:44:08.681246 IP <hidden_ip>.12345 > 192.168.0.0.16565: F 1:1(0) ack 101 win 5840
| 0x0000: 4500 0028 3eb9 4000 4006 c633 ac1a c920 E..(>.@.@..3....
| 0x0010: c0a8 0000 3039 40b5 b258 862a c84e 5d35 ....09@..X.*.N]5
| 0x0020: 5011 16d0 942a 0000 P....*..
| 08:44:08.687626 IP 192.168.0.0.16565 > <hidden_ip>.12345: . ack 2 win 65535
| 0x0000: 4500 0028 5c02 4000 7e06 6aea c0a8 0000 E..(\.@.~.j.....
| 0x0010: ac1a c920 40b5 3039 c84e 5d35 b258 862b ....@.09.N]5.X.+
| 0x0020: 5010 ffff aafa 0000 0000 0000 0000 P.............
| 08:44:08.687647 IP 192.168.0.0.16565 > <hidden_ip>.12345: P 101:108(7) ack 2 win 65535
| 0x0000: 4500 002f 5c03 4000 7e06 6ae2 c0a8 0000 E../\.@.~.j.....
| 0x0010: ac1a c920 40b5 3039 c84e 5d35 b258 862b ....@.09.N]5.X.+
| 0x0020: 5018 ffff 6ae6 0000 1503 0100 0202 28 P...j.........(
| 08:44:08.687662 IP <hidden_ip>.12345 > 192.168.0.0.16565: R 2992145963:2992145963(0) win 0
| 0x0000: 4500 0028 0000 4000 4006 04ed ac1a c920 E..(..@.@.......
| 0x0010: c0a8 0000 3039 40b5 b258 862b 0000 0000 ....09@..X.+....
| 0x0020: 5004 0000 d08a 0000 P.......
| 08:44:08.689376 IP 192.168.0.0.16566 > <hidden_ip>.12345: S 2135034393:2135034393(0) win 65535 <mss 1380,nop,nop,sackOK>
| 0x0000: 4500 0030 5c05 4000 7e06 6adf c0a8 0000 E..0\.@.~.j.....
| 0x0010: ac1a c920 40b6 3039 7f42 0a19 0000 0000 ....@.09.B......
| 0x0020: 7002 ffff 5341 0000 0204 0564 0101 0402 p...SA.....d....
| 08:44:08.689398 IP <hidden_ip>.12345 > 192.168.0.0.16566: S 2991693387:2991693387(0) ack 2135034394 win 5840 <mss 1460,nop,nop,sackOK>
| 0x0000: 4500 0030 0000 4000 4006 04e5 ac1a c920 E..0..@.@.......
| 0x0010: c0a8 0000 3039 40b6 b251 9e4b 7f42 0a1a ....09@..Q.K.B..
| 0x0020: 7012 16d0 eb72 0000 0204 05b4 0101 0402 p....r..........
| 08:44:08.699118 IP 192.168.0.0.16566 > <hidden_ip>.12345: . ack 1 win 65535
| 0x0000: 4500 0028 5c07 4000 7e06 6ae5 c0a8 0000 E..(\.@.~.j.....
| 0x0010: ac1a c920 40b6 3039 7f42 0a1a b251 9e4c ....@.09.B...Q.L
| 0x0020: 5010 ffff 2f07 0000 0000 0000 0000 P.../.........
| 08:44:08.699143 IP 192.168.0.0.16566 > <hidden_ip>.12345: P 1:8(7) ack 1 win 65535
| 0x0000: 4500 002f 5c08 4000 7e06 6add c0a8 0000 E../\.@.~.j.....
| 0x0010: ac1a c920 40b6 3039 7f42 0a1a b251 9e4c ....@.09.B...Q.L
| 0x0020: 5018 ffff 4c5a 0000 4a52 4d49 0002 4b P...LZ..JRMI..K
| 08:44:08.699152 IP <hidden_ip>.12345 > 192.168.0.0.16566: . ack 8 win 5840
| 0x0000: 4500 0028 26db 4000 4006 de11 ac1a c920 E..(&.@.@.......
| 0x0010: c0a8 0000 3039 40b6 b251 9e4c 7f42 0a21 ....09@..Q.L.B.!
| 0x0020: 5010 16d0 1830 0000 P....0..
| 08:44:08.699738 IP <hidden_ip>.12345 > 192.168.0.0.16566: P 1:19(18) ack 8 win 5840
| 0x0000: 4500 003a 26dc 4000 4006 ddfe ac1a c920 E..:&.@.@.......
| 0x0010: c0a8 0000 3039 40b6 b251 9e4c 7f42 0a21 ....09@..Q.L.B.!
| 0x0020: 5018 16d0 3610 0000 4e00 0b31 3932 2e31 P...6...N..192.1
| 0x0030: 3638 2e30 2e30 0000 40b6 68.0.0..@.
| 08:44:08.712109 IP 192.168.0.0.16566 > <hidden_ip>.12345: P 8:27(19) ack 19 win 65517
| 0x0000: 4500 003b 5c0b 4000 7e06 6ace c0a8 0000 E..;\.@.~.j.....
| 0x0010: ac1a c920 40b6 3039 7f42 0a21 b251 9e5e ....@.09.B.!.Q.^
| 0x0020: 5018 ffed c8ac 0000 000d 3139 322e 3136 P.........192.16
| 0x0030: 382e 302e 3131 3800 0000 00 8.0.118....
| 08:44:08.712614 IP 192.168.0.0.16566 > <hidden_ip>.12345: P 27:77(50) ack 19 win 65517
| 0x0000: 4500 005a 5c0c 4000 7e06 6aae c0a8 0000 E..Z\.@.~.j.....
| 0x0010: ac1a c920 40b6 3039 7f42 0a34 b251 9e5e ....@.09.B.4.Q.^
| 0x0020: 5018 ffed d228 0000 50ac ed00 0577 2200 P....(..P....w".
| 0x0030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
| 0x0040: 0000 0000 0000 0000 0244 154d c9d4 e63b .........D.M...;
| 0x0050: df74 0006 6a6d 7872 6d69 .t..jmxrmi
| 08:44:08.712653 IP <hidden_ip>.12345 > 192.168.0.0.16566: . ack 77 win 5840
| 0x0000: 4500 0028 26dd 4000 4006 de0f ac1a c920 E..(&.@.@.......
| 0x0010: c0a8 0000 3039 40b6 b251 9e5e 7f42 0a66 ....09@..Q.^.B.f
| 0x0020: 5010 16d0 17d9 0000 P.......
| 08:44:08.713460 IP <hidden_ip>.12345 > 192.168.0.0.16566: P 19:280(261) ack 77 win 5840
| 0x0000: 4500 012d 26de 4000 4006 dd09 ac1a c920 E..-&.@.@.......
| 0x0010: c0a8 0000 3039 40b6 b251 9e5e 7f42 0a66 ....09@..Q.^.B.f
| 0x0020: 5018 16d0 3703 0000 51ac ed00 0577 0f01 P...7...Q....w..
| 0x0030: 8bb1 935a 0000 011d 6d8e eb2c 800d 7372 ...Z....m..,..sr
| 0x0040: 002e 6a61 7661 782e 6d61 6e61 6765 6d65 ..javax.manageme
| 0x0050: 6e74 2e72 656d 6f74 652e 726d 692e 524d nt.remote.rmi.RM
| 0x0060: 4953 6572 7665 7249 6d70 6c5f 5374 7562 IServerImpl_Stub
| 0x0070: 0000 0000 0000 0002 0200 0074 0016 6874 ...........t..ht
| 0x0080: 7470 3a2f 2f62 6573 6465 6d6f 3031 3a38 tp://besdemo01:8
| 0x0090: 3038 332f 7872 001a 6a61 7661 2e72 6d69 083/xr..java.rmi
| 0x00a0: 2e73 6572 7665 722e 5265 6d6f 7465 5374 .server.RemoteSt
| 0x00b0: 7562 e9fe dcc9 8be1 651a 0200 0071 007e ub......e....q.~
| 0x00c0: 0001 7872 001c 6a61 7661 2e72 6d69 2e73 ..xr..java.rmi.s
| 0x00d0: 6572 7665 722e 5265 6d6f 7465 4f62 6a65 erver.RemoteObje
| 0x00e0: 6374 d361 b491 0c61 331e 0300 0071 007e ct.a...a3....q.~
| 0x00f0: 0001 7870 7736 000a 556e 6963 6173 7452 ..xpw6..UnicastR
| 0x0100: 6566 000d 3137 322e 3236 2e32 3031 2e33 ef..172.26.201.3
| 0x0110: 3200 0096 33b2 276d d65a a162 418b b193 2...3.'m.Z.bA...
| 0x0120: 5a00 0001 1d6d 8eeb 2c80 0101 78 Z....m..,...x
| 08:44:08.731097 IP 192.168.0.0.16566 > <hidden_ip>.12345: P 77:92(15) ack 280 win 65256
| 0x0000: 4500 0037 5c0e 4000 7e06 6acf c0a8 0000 E..7\.@.~.j.....
| 0x0010: ac1a c920 40b6 3039 7f42 0a66 b251 9f63 ....@.09.B.f.Q.c
| 0x0020: 5018 fee8 e8aa 0000 548b b193 5a00 0001 P.......T...Z...
| 0x0030: 1d6d 8eeb 2c80 0d .m..,..
| 08:44:08.768897 IP <hidden_ip>.12345 > 192.168.0.0.16566: . ack 92 win 5840
| 0x0000: 4500 0028 26df 4000 4006 de0d ac1a c920 E..(&.@.@.......
| 0x0010: c0a8 0000 3039 40b6 b251 9f63 7f42 0a75 ....09@..Q.c.B.u
| 0x0020: 5010 16d0 16c5 0000 P.......
|
Any help will be truly appreciated.
Regards,
Rob.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187216#4187216
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187216
17 years, 5 months
[JNDI/Naming/Network] - javax.naming.NameNotFoundException: com not bound
by Barthuin
Hello everybody
I'm trying to do a basic form with Livecycle Forms but I have some errors and doubts. I have done a servlet when I try to generate that pdf form but, when it runs renderForm() method, it shows this error
13:01:58,525 INFO [STDOUT] Error al realizar el 'Render': javax.naming.NameNotFoundException: com not bound
13:01:58,525 ERROR [STDERR] com.adobe.formServer.interfaces.RenderFormException: javax.naming.NameNotFoundException: com not bound
13:01:58,525 ERROR [STDERR] at com.adobe.formServer.client.EJBClient.renderForm(EJBClient.java:357)
13:01:58,525 ERROR [STDERR] at net.flexlive.randori.pdfConstructor.generatePdf(pdfConstructor.java:102)
13:01:58,525 ERROR [STDERR] at net.flexlive.randori.pdfConstructor.doGet(pdfConstructor.java:36)
13:01:58,525 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
13:01:58,525 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
13:01:58,525 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
13:01:58,525 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
13:01:58,525 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
13:01:58,525 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
13:01:58,525 ERROR [STDERR] Caused by: javax.naming.NameNotFoundException: com not bound
13:01:58,525 ERROR [STDERR] ... 23 more
I was looking for a solution but I haven't idea about what can be the problem of this. IÃÂè'm using JBOSS 4.2.3 and Eclipse 3.3.2 and my servlet code is this:
String sNom = "solicitud_final.xdp";
String sRoot = "http://localhost:8080/AdobeForms/web";
//Construyo el path de la aplicacion, para que el form server sepa volver
String appPath = request.getServletPath();
//appPath = appPath.substring(0, appPath.lastIndexOf("/"));
String sURL = request.getScheme() + "/" +
request.getServerName() + ":" +
request.getServerPort() +
request.getContextPath() +
appPath;
//Configuro las opciones
String m_sOptions = "RenderAtClient=true&CacheEnabled=false";
//Cojo el XML para la preCarga del formulario
byte[] mData = null;
//String sRutaXML = mRootForms + "/" + mXMLData;
//mData = readFile(sRutaXML);
//Instancio el FormServer mediante la API
EJBClient ejbClient = new EJBClient();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory");
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
env.put(Context.PROVIDER_URL, "172.26.121.76:1099");
InitialContext context = null;
try {
context = new InitialContext(env);
} catch (Exception e) {
System.out.println("Error al iniciar el contexto: " + e.getMessage());
return;
}
ejbClient.setInitialContext(context);
IFormServer ifs = (IFormServer)ejbClient;
//LLamo al metodo que conastruye el formulario
IOutputContext mIOC = ifs.renderForm(
sNom,
"PDFForm",
null,//mData,
m_sOptions,
request.getHeader("User-Agent"),
sURL,
null,
sRoot,
null);
//Construyo la salida y la muestro por pantalla
ServletOutputStream oOutput = response.getOutputStream();
response.setContentType(mIOC.getContentType());
byte[] cContent = mIOC.getOutputContent();
oOutput.write(cContent);
oOutput.flush();
oOutput.close();
I discovered where do this error. i have tried to do this
Object obj = context.lookup("ejb/com/adobe/formServer/FormServer");
and I have the same error, so I think "com not bound" is refered to ejb.com package. Any suggestion about how to resolve this?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187208#4187208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187208
17 years, 5 months
[JNDI/Naming/Network] - Re: trying to render a xdp form with LiveCycleForms: javax.n
by Barthuin
"Barthuin" wrote : Hello everybody
|
| I'm trying to do a basic form with Livecycle Forms but I have some errors and doubts. I have done a servlet when I try to generate that pdf form but, when it runs renderForm() method, it shows this error
|
| 13:01:58,525 INFO [STDOUT] Error al realizar el 'Render': javax.naming.NameNotFoundException: com not bound
| 13:01:58,525 ERROR [STDERR] com.adobe.formServer.interfaces.RenderFormException: javax.naming.NameNotFoundException: com not bound
| 13:01:58,525 ERROR [STDERR] at com.adobe.formServer.client.EJBClient.renderForm(EJBClient.java:357)
| 13:01:58,525 ERROR [STDERR] at net.flexlive.randori.pdfConstructor.generatePdf(pdfConstructor.java:102)
| 13:01:58,525 ERROR [STDERR] at net.flexlive.randori.pdfConstructor.doGet(pdfConstructor.java:36)
| 13:01:58,525 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| 13:01:58,525 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| 13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
| 13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| 13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| 13:01:58,525 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| 13:01:58,525 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| 13:01:58,525 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| 13:01:58,525 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| 13:01:58,525 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 13:01:58,525 ERROR [STDERR] Caused by: javax.naming.NameNotFoundException: com not bound
| 13:01:58,525 ERROR [STDERR] ... 23 more
|
| I was looking for a solution but I haven't idea about what can be the problem of this. IÃÂè'm using JBOSS 4.2.3 and Eclipse 3.3.2 and my servlet code is this:
|
|
| String sNom = "solicitud_final.xdp";
| String sRoot = "http://localhost:8080/AdobeForms/web";
|
| //Construyo el path de la aplicacion, para que el form server sepa volver
| String appPath = request.getServletPath();
| //appPath = appPath.substring(0, appPath.lastIndexOf("/"));
| String sURL = request.getScheme() + "/" +
| request.getServerName() + ":" +
| request.getServerPort() +
| request.getContextPath() +
| appPath;
|
| //Configuro las opciones
| String m_sOptions = "RenderAtClient=true&CacheEnabled=false";
|
| //Cojo el XML para la preCarga del formulario
| byte[] mData = null;
| //String sRutaXML = mRootForms + "/" + mXMLData;
| //mData = readFile(sRutaXML);
|
| //Instancio el FormServer mediante la API
| EJBClient ejbClient = new EJBClient();
|
| Hashtable env = new Hashtable();
| env.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory");
| env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
| env.put(Context.PROVIDER_URL, "172.26.121.76:1099");
| InitialContext context = null;
|
| try {
| context = new InitialContext(env);
| } catch (Exception e) {
| System.out.println("Error al iniciar el contexto: " + e.getMessage());
| return;
| }
|
| ejbClient.setInitialContext(context);
|
| IFormServer ifs = (IFormServer)ejbClient;
| //LLamo al metodo que conastruye el formulario
| IOutputContext mIOC = ifs.renderForm(
| sNom,
| "PDFForm",
| null,//mData,
| m_sOptions,
| request.getHeader("User-Agent"),
| sURL,
| null,
| sRoot,
| null);
|
| //Construyo la salida y la muestro por pantalla
| ServletOutputStream oOutput = response.getOutputStream();
| response.setContentType(mIOC.getContentType());
| byte[] cContent = mIOC.getOutputContent();
| oOutput.write(cContent);
| oOutput.flush();
| oOutput.close();
|
| I discovered where do this error. i have tried to do this
|
| Object obj = context.lookup("ejb/com/adobe/formServer/FormServer");
|
| and I have the same error, so I think "com not bound" is refered to ejb.com package. Any suggestion about how to resolve this?
|
| Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187205#4187205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187205
17 years, 5 months
[JNDI/Naming/Network] - trying to render a xdp form with LiveCycleForms: javax.namin
by Barthuin
Hello everybody
I'm trying to do a basic form with Livecycle Forms but I have some errors and doubts. I have done a servlet when I try to generate that pdf form but, when it runs renderForm() method, it shows this error
13:01:58,525 INFO [STDOUT] Error al realizar el 'Render': javax.naming.NameNotFoundException: com not bound
13:01:58,525 ERROR [STDERR] com.adobe.formServer.interfaces.RenderFormException: javax.naming.NameNotFoundException: com not bound
13:01:58,525 ERROR [STDERR] at com.adobe.formServer.client.EJBClient.renderForm(EJBClient.java:357)
13:01:58,525 ERROR [STDERR] at net.flexlive.randori.pdfConstructor.generatePdf(pdfConstructor.java:102)
13:01:58,525 ERROR [STDERR] at net.flexlive.randori.pdfConstructor.doGet(pdfConstructor.java:36)
13:01:58,525 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
13:01:58,525 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
13:01:58,525 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
13:01:58,525 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
13:01:58,525 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
13:01:58,525 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
13:01:58,525 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
13:01:58,525 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
13:01:58,525 ERROR [STDERR] Caused by: javax.naming.NameNotFoundException: com not bound
13:01:58,525 ERROR [STDERR] ... 23 more
I was looking for a solution but I haven't idea about what can be the problem of this. Iè'm using JBOSS 4.2.3 and Eclipse 3.3.2 and my servlet code is this:
String sNom = "solicitud_final.xdp";
String sRoot = "http://localhost:8080/AdobeForms/web";
//Construyo el path de la aplicacion, para que el form server sepa volver
String appPath = request.getServletPath();
//appPath = appPath.substring(0, appPath.lastIndexOf("/"));
String sURL = request.getScheme() + "/" +
request.getServerName() + ":" +
request.getServerPort() +
request.getContextPath() +
appPath;
//Configuro las opciones
String m_sOptions = "RenderAtClient=true&CacheEnabled=false";
//Cojo el XML para la preCarga del formulario
byte[] mData = null;
//String sRutaXML = mRootForms + "/" + mXMLData;
//mData = readFile(sRutaXML);
//Instancio el FormServer mediante la API
EJBClient ejbClient = new EJBClient();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory");
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
env.put(Context.PROVIDER_URL, "172.26.121.76:1099");
InitialContext context = null;
try {
context = new InitialContext(env);
} catch (Exception e) {
System.out.println("Error al iniciar el contexto: " + e.getMessage());
return;
}
ejbClient.setInitialContext(context);
IFormServer ifs = (IFormServer)ejbClient;
//LLamo al metodo que conastruye el formulario
IOutputContext mIOC = ifs.renderForm(
sNom,
"PDFForm",
null,//mData,
m_sOptions,
request.getHeader("User-Agent"),
sURL,
null,
sRoot,
null);
//Construyo la salida y la muestro por pantalla
ServletOutputStream oOutput = response.getOutputStream();
response.setContentType(mIOC.getContentType());
byte[] cContent = mIOC.getOutputContent();
oOutput.write(cContent);
oOutput.flush();
oOutput.close();
I discovered where do this error. i have tried to do this
Object obj = context.lookup("ejb/com/adobe/formServer/FormServer");
and I have the same error, so I think "com not bound" is refered to ejb.com package. Any suggestion about how to resolve this?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187204#4187204
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187204
17 years, 5 months