I am having a problem with iText when I deploy my application to weblogic. It
blows up when I use ServletContext.getResource() to get a reference to a font
file and ask iText to load it. Stack trace:
Caused by: ExceptionConverter: java.io.IOException:
zip:/u01/app/oracle/product/weblogic/user_projects/domains/wldomain/servers/gopher_server1/tmp/_WL_user/gopher/gwac4q/war/WEB-INF/lib/_wl_cls_gen.jar!/org/lcra/gopher/reports/monthperf/pdf/fonts/arial.ttf
not found as file or resource.
at com.lowagie.text.FontFactoryImp.register(Unknown Source)
at com.lowagie.text.FontFactory.register(Unknown Source)
at com.lowagie.text.FontFactory.register(Unknown Source)
at org.lcra.simplepdf.SimplePDF.loadFont(SimplePDF.java:50)
at org.lcra.gopher.reports.PDFConfig.(PDFConfig.java:37)
at org.lcra.gopher.util.Config.init(Config.java:127)
at org.lcra.gopher.util.Config.configWeb(Config.java:78)
at org.lcra.gopher.servlet.GopherServlet.init(GopherServlet.java:30)
at javax.servlet.GenericServlet.init(GenericServlet.java:242)
at
weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at
weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at
weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at
org.lcra.webauth.AuthFilterFormBased.doFilter(AuthFilterFormBased.java:166)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/