I generate a PDF document by clicking a link on my webpage. The PDF document is opened inside the browser. However, I am unable to display the gif image on the PDF document that is being displayed in the browser.
Any ideas?
Image
Re: Image
Support · Aug 17, 2006Hello,
Does the PDF come up fine in the browser and the GIF image does not show up or do you get errors when trying to generate the PDF document with the GIF image you are trying to add?
If you get an error when adding the GIF image, please send the GIF image you are using to our [^a|mailto:support@cete.com|Support Team^], so that they can look into it further.
Thanks,
ceTe Software Support Team
Re: Image
Forum member · Aug 18, 2006Hello,
The PDF comes up fine. The gif image is not displayed. I do not see any errors. To give you more information, I placed the gif image in the "Image" folder in the Weblogic directory structure and I am trying to access the image from the folder and sisplay the same on the JSP Page.
Thanks,
Jebastan
Re: Image
Support · Aug 18, 2006Hello Jebastan,
Are you deploying your application as a WAR file? In WebLogic AppServer, WAR files will not get exploded after the deployment and that could be the reason it is not finding the image and not adding it to the page and not generating any errors.
Thanks,
ceTe Software Support Team
Re: Image
Forum member · Aug 23, 2006Dear Friends,
I have given full details about my webapplication PDF Image Display Problem.
// JSP Code
String strImgPath=application.getRealPath(“Image/logo.gif”);
Image objImage =
new Image(strImgPath, 100, 50); //Line 2: Error is thrown here.
page.getElements().add(objImage);
Question:
--------
When Executing this program in Weblogic Server 6.1, it is not throwing any Exceptions, but when it reaches Line 2 , It throws the follwing Weblogic Error.
*strImage has no problem.it is giving the exact image path.
*******************************************************************
<Aug 23, 2006 9:56:21 AM CEST> <Error> <HTTP> <[WebAppServletContext(6406126,sc
e_dev,/scoe_dev)] Root cause of ServletException
java.lang.NullPointerException
at jsp_servlet._commonjsp.__errorpage._jspService(__errorpage.java:114)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispa
cherImpl.java:241)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:11
)
at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContext
mpl.java:267)
at jsp_servlet._eorderjsp.__printorderdetails._jspService(__printorderd
tails.java:305)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:304)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
rvletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
pl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
************************************************************
Please Help Me to get around this problem.
Thanks,
N.Jebastan
Re: Image
Support · Aug 23, 2006Hello Jebastan,
Can you please verify whether you are deploying your application as WAR file or are you using exploded directory structure? Also are you using the JDK that WebLogic uses (i.e. JRockit) or are you using the Sun JDK?
Thanks,
ceTe Software Support Team
Re: Image
Forum member · Aug 25, 2006hi,
This is a serious problem that i'm facing for past 2 weeks,well i can put it as incompatbility of softwares.now the problem is i'm using weblogic 6.1 as per client demands
and that cannot be changed,but weblogic 6.1 supports only JDK1.3.
But JDK1.3 doesn't support
the display of images in a PDF document generated using Java on a webbrowser.The image display in a PDF file is supported only by JDK1.4,this information i had got from CeTe support.
So my requirement is i should be able to display image in a PDF document(in a webbrowser - WebApplication) using weblogic 6.1.So is their any solution by which, with the
help JDK1.3 it can be done,as Weblogic 6.1 doesn't support JDK1.4.
Thanks,
N.Jebastan
Re: Image
Support · Aug 25, 2006Hello Jebastan,
Unfortunately we do not have full support of our product to work successfully with JDK 1.3. This is something we may add in the future but we do not have any immediate plans.
The only solution would be to upgrade the version of Weblogic that has support for JDK 1.4 or higher. Our product is fully compatible with JDK 1.4 or higher.
Thanks,
ceTe Software Support Team