thanks! I moved files to /lib and it worked... once
now it doesn't work
and there's error in log file
Error: One factory fails for the operation "jpeg"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getHeight(RenderedOp.java:2199)
at com.jerhel.ImageUtils.load(ImageUtils.java:29)
at com.jerhel.ImageUtils.saveResizedImage(ImageUtils.java:282)
at
org.apache.jsp.admin.product_005fsql_005factions_jsp.saveResizedImage(product_005fsql_005factions_jsp.java:142)
at
org.apache.jsp.admin.product_005fsql_005factions_jsp.insert(product_005fsql_005factions_jsp.java:179)
at
org.apache.jsp.admin.product_005fsql_005factions_jsp._jspService(product_005fsql_005factions_jsp.java:583)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:42)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:253)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:365)
at
com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:151)
at
com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:53)
at com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:120)
at com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getHeight(RenderedOp.java:2199)
at com.jerhel.ImageUtils.load(ImageUtils.java:29)
at com.jerhel.ImageUtils.saveResizedImage(ImageUtils.java:282)
at
org.apache.jsp.admin.product_005fsql_005factions_jsp.saveResizedImage(product_005fsql_005factions_jsp.java:142)
at
org.apache.jsp.admin.product_005fsql_005factions_jsp.insert(product_005fsql_005factions_jsp.java:179)
at
org.apache.jsp.admin.product_005fsql_005factions_jsp._jspService(product_005fsql_005factions_jsp.java:583)
does it mean 32 Mb heap memory size isn't enough to resize 800 Kb picture?
that's what product_sql_actions.jsp does...
awarnier wrote:
>
> dfobox wrote:
>> Hi all,
>> we have a website running under Tomcat 4 on old Linux box. it works
>> flawlessly, but decision was made to move it to hosting company server
>> with
>> Tomcat 6 on it.
>> I've copied website to freshly installed Tomcat 6.0.18 on my Mac,
>> imported
>> database with phpMyAdmin, changed tomcat-users.xml file for
>> authentication
>> on admin part, put mysql-connector-java-5.0.8-bin.jar (for JDBC
>> connection)
>> to WEB-INF/lib and voila - it works just perfect.
>> history with instance on hosting server is much longer, but now website
>> seems to be working except when resizing of image is being performed.
>> whenever user adds content with picture, error comes out
>>
>> java.lang.NoClasDefFoundError: com/sun/media/jai/codec/ImageEncodeParam
>>
>> JAI is Java Advanced Imaging API, on both working servers I have only
>> jai_codec.jar, jai_core.jar and jai_imageio.jar in
>> $CATALINA_HOME/webapps/ROOT/WEB-INF/classes folder. There are
>> installation
>> instructions for JAI on java.sun.com, but I'm not sure if I can do it on
>> hosting server...
>> any clues will be greatly appreciated.
>> best, Ivan
> Just my 0.02 Euro : should they not be in
> $CATALINA_HOME/webapps/ROOT/WEB-INF/lib ?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/Migrating-website-from-own-server-to-hosting-company-tp23708196p23709520.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]