Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

com.adobe.formServer.interfaces.RenderFormException: javax.naming.NameNotFoundException: com not bou

Avatar

Level 1

HI

I am trying to create from xdf file using formserver-client.jar. This my code

IOutputContext _context = LiveCycle.getInstance().renderPdfForm(
                    "http://localhost:8080/lesson2", "requestform.xdp",
                    XomUtil.toByteArray(_formData));

LiveCycle class is

public class LiveCycle {
    private static LiveCycle self = null;

    private EJBClient lcForms;

    private LiveCycle() {
        // Singleton constructor
        lcForms = new EJBClient();
    }

    static public LiveCycle getInstance() {
        if (self == null) {
            self = new LiveCycle();
        }
        return self;
    }

    public IOutputContext renderPdfForm(String contentRoot, String templateName, byte[] data)
            throws RemoteException, RenderFormException {
        IOutputContext ioc = lcForms.renderForm(templateName, "PDFFORM", // Output format (PDF/PDFFORM/PDFMERGE)
                data, // XML form data to be binded with form
                null, // Take the default options
                "", // User Agent
                null, // ApplicationWebRoot
                null, // TargetURL
                contentRoot, // Content root URI
                null);
        return ioc;
    }
}

when invoking the servelet i get below error

com.adobe.formServer.interfaces.RenderFormException: javax.naming.NameNotFoundException: com not bound
2010-07-23 14:12:56,953 ERROR [STDERR]     at com.adobe.formServer.client.EJBClient.renderForm(EJBClient.java:249)
2010-07-23 14:12:56,953 ERROR [STDERR]     at net.flexlive.common.LiveCycle.renderPdfForm(LiveCycle.java:28)
2010-07-23 14:12:56,953 ERROR [STDERR]     at net.flexlive.randori.RandoriServlet.service(RandoriServlet.java:32)
2010-07-23 14:12:56,953 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
2010-07-23 14:12:56,953 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
2010-07-23 14:12:56,953 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
2010-07-23 14:12:56,953 ERROR [STDERR] Caused by: javax.naming.NameNotFoundException: com not bound

thank you

0 Replies