Hello,

I am attempting to output an image from a LiteRenderer using Geotools
2.2-RC3.  I have the same problem that was addressed at
http://www.mail-archive.com/[email protected]/msg0203
1.html.  However, I don't understand the poster's solution.

I am recieving an odd error.  Upon the following line of code in my servlet
I recieve a null pointer exception.

myLiteRenderer.paint((Graphics2D) g, new Rectangle(0,0,w,h), new
AffineTransform());

Also, in my Tomcat command line window, I get the following (first few)
stack trace exceptions.

----------------------------------------------------------------------------
-
Nov 28, 2006 8:01:34 PM null createBackingStore
WARNING: Failed to bind a "jdbc/EPSG" entry.
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
        at org.apache.naming.NamingContext.bind(NamingContext.java:842)
        at org.apache.naming.NamingContext.bind(NamingContext.java:170)
        at org.apache.naming.NamingContext.bind(NamingContext.java:186)
        at org.apache.naming.SelectorContext.bind(SelectorContext.java:170)
        at javax.naming.InitialContext.bind(Unknown Source)
        at
org.geotools.referencing.factory.epsg.DefaultFactory.createFactory(De
                faultFactory.java:297)
        at
org.geotools.referencing.factory.epsg.DefaultFactory.createBackingSto
                re(DefaultFactory.java:328)
        at
org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingS
                tore(DeferredAuthorityFactory.java:188)
        at
org.geotools.referencing.factory.BufferedAuthorityFactory.isReady(Buf
                feredAuthorityFactory.java:206)
        at
org.geotools.referencing.factory.DeferredAuthorityFactory.isReady(Def
                erredAuthorityFactory.java:176)
----------------------------------------------------------------------------
-

What is the EPSG?  I noticed in my "C:\apache\tomcat\temp" directory, there
is a Databases\Geotools\HSQL directory with ESPG.script, EPSG.backup,
EPSG.data and ESPG.properties files.

What do I do about this error?  Also, can someone explain to me the solution
in the link above?

Sincerely,

Christopher Jon Jursa
Geoinformatics Laboratory
School of Information Sciences
University of Pittsburgh
web: http://gis.sis.pitt.edu
email: [EMAIL PROTECTED]
phone: 412-624-8858


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to