[opencms-dev] Applet issue after upgrade
Steve Bryan
steve at bright-interactive.com
Wed Mar 12 11:45:38 CET 2008
Hi again
And thanks for the article Georgi. I think this issue is happening because
the applet URL includes the port 8080. This fails for the users in my
client's office since they cannot access http on port 8080. I think I have a
pretty typical setup, with Apache running on port 80 and forwarding to
Tomcat on port 8080. All other pages seem to work fine.
The culprit seems to be some code in
org.opencms.workplace.explorer.CmsNewResourceUpload.createAppletCode:
int port = getJsp().getRequest().getServerPort();
String webapp = scheme + "://" + host + ":" + port +
OpenCms.getSystemInfo().getContextPath();
The port is being inserted at this point. Is there any way I can work around
this?
In opencms-system.xml heres the <sites> tag:
<sites>
<workplace-server>http://drivelive.gkndriveline</workplace-server>
<default-uri>/sites/drivelive/</default-uri>
<site server="http://drivelive.gkndriveline" uri="/sites/drivelive/"/>
</sites>
Here's my apache vhost config:
<VirtualHost *:80>
DocumentRoot "/var/www/vhosts/drivelive/htdocs"
ServerName drivelive.gkndriveline
# Use Apache Proxying to mount the webapps
ProxyPass /drivelive
http://drivelive.gkndriveline:8080/drivelive
ProxyPassReverse /drivelive
http://drivelive.gkndriveline:8080/drivelive
etc
Thanks for any hints!
Steve
------------------------------
Date: Fri, 7 Mar 2008 13:13:23 -0000
From: "Steve Bryan" <steve at bright-interactive.com>
Subject: [opencms-dev] Upload Applet issue after upgrade
To: <opencms-dev at opencms.org>
Message-ID: <200803071313.m27DDN8Q042816 at relay1.fast.net.uk>
Content-Type: text/plain; charset="us-ascii"
Hi all
A problem with the upload applet. I recently moved an OpenCms 6.2 site to a
new server (same IP) and at the same time upgraded to 7.0.3.
Now users at my client's site are getting an error when using the Java
upload applet (see below trace). I can use the applet fine from my office.
They have a proxy server.
Anyone seen a similar situation or have any ideas?
Thanks
Steve
Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM User home directory =
C:\Documents and Settings\hannah.batchelor
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.ClassFormatError: Incompatible magic value 1008813135 in class
file org/opencms/applet/upload/FileUploadApplet
at java.lang.ClassLoader.defineClass1(Native Method) at
java.lang.ClassLoader.defineClass(Unknown Source) at
java.security.SecureClassLoader.defineClass(Unknown Source) at
sun.applet.AppletClassLoader.findClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
sun.applet.AppletClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
sun.applet.AppletClassLoader.loadCode(Unknown Source) at
sun.applet.AppletPanel.createApplet(Unknown Source) at
sun.plugin.AppletViewer.createApplet(Unknown Source) at
sun.applet.AppletPanel.runLoader(Unknown Source) at
sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown
Source)
------------------------------
Date: Fri, 07 Mar 2008 16:35:17 +0200
From: Georgi Naplatanov <gosho at oles.biz>
Subject: Re: [opencms-dev] Upload Applet issue after upgrade
To: The OpenCms mailing list <opencms-dev at opencms.org>
Message-ID: <47D152A5.70705 at oles.biz>
Content-Type: text/plain; charset=windows-1251; format=flowed
Hello, Steve.
May be it is Apache HTTPD configuration problem.
Look at this thread
http://jumploader.com/forum/viewtopic.php?p=180&sid=bea0d049993fca4b30daef73
4191edde.
Best regards
Georgi
More information about the opencms-dev
mailing list