Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Chris Skinner

Greenhorn
+ Follow
since Jan 23, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Skinner

Thanks for the quick responses. I decided to try deploying both applications in an EAR file rather than as two separate WAR files and that seems to have solved the problem.
Chris
11 years ago
Hi,
I'm having a problem running two j2ee applications on Websphere 5.1.2 application server. Both of the applications use the Coroutine4java.jar and the corojdk.dll. The problem is that which ever one loads second gets these errors :

Either

Caused by: java.lang.UnsatisfiedLinkError: Native Library C:\WINDOWS\system32\corojdk11.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2111)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2025)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:908)
at com.neva.Coroutine.<clinit>(Coroutine.java:213)
at com.neva.COMClassObject.CoInitialize(COMClassObject.java:153)
at com.xyenterprise.PCMUtils.PCMAPIMgr.<init>(PCMAPIMgr.java:129)

Or this :

[9/8/06 17:27:31:054 EDT] 18962a5f DispatchActio E org.apache.struts.actions.DispatchAction TRAS0014I: The following exception was logged java.lang.reflect.InvocationTargetException

java.lang.NoClassDefFoundError: com/neva/Coroutine
at com.neva.COMClassObject.CoInitialize(COMClassObject.java:153)
at com.xyenterprise.PCMUtils.PCMAPIMgr.<init>(PCMAPIMgr.java:129)


Which ever application loads first runs fine. There seems to be some kind of conflict in how the class loaded is using the dll file and or the jar file.

I have the jars all defined in a shared library and the .dll file is located in the Windows\system32 directory.

Does anybody have a suggestion on how to fix this?

Thanks
Chris
11 years ago
Hi, I'm working on an web application that needs to send multiple pdf files to the the client per a single http request. Does anybody know if this is possible?
thanks
Chris
I figured it out. We actually broke the 64k size limit on java methods. Solution was to break up the page into separate files and include them in the main page.
Chris
11 years ago
Hi,
Has anybody every seen this error from the jsp compiler for large jsps?


code too large for try statement
org.apache.jasper.JasperException: Unable to compile class for JSP

I thought is was the 32k limit problem but we're at 5.1.1.6 so that should have been fixed.

Thanks
Chris
11 years ago
< !-- Limpid IE in quirks mode -->
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br /> "http://www.w3.org/TR/html4/loose.dtd">

How can I get WSAD to automatically place the above information at the top of any new .jsp? I thought I remembered seeing a preference that could be set but I can't find it now.

Thanks
Chris
12 years ago
Found it under C:\WSAD\runtimes\base_v51\bin
12 years ago
I'll keep an eye out for the logs next time it happens.

Kishore, where would the stopserver.bat file be located? I looked in my workspace under the Server directory and found nothing.

Thanks
Chris
12 years ago
For the last couple days, my WSAD 5.1.2 is crashing very frequently. The jvm exit code is 1073807364 if that helps. It's turning into a real pain in the neck due to the additional complication that often it crashes the UI however my test server remains running some how and cannot be shutdown or restarted once I start the UI up again so I have to re-boot the entire freaking PC. Can anybody point me in some direction by which I might be able to figure this thing out?
Thanks
Chris "Ticked Off In Tallahassee" Skinner
12 years ago
Hi,
I was hoping someone could offer some advice on how best to copy a web project. I'm working with WSAD 5.12. Basically I have a weproject I've developed and I need to implement a very similar one with a few changes. I'd like to keep them both in the same workspace however in separate projects. Also, I'll need to keep them under separate branches in svn.
Thanks
Chris
12 years ago
Hi folks,
I've been getting the following error when I start my test server (WAS 5.1) in WSAD. I know I must have changed something about either the applications or the server itself but I don't know what so any suggestions would be appreciated :

*** Starting the server ***
************ Start Display Current Environment ************
WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 3340
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\WSAD\runtimes\base_v51
user.install.root = C:\WSAD\runtimes\base_v51
Java Home = C:\WSAD\runtimes\base_v51\java\jre
ws.ext.dirs = C:\WSAD\runtimes\base_v51/java/lib;C:\WSAD\runtimes\base_v51/classes;C:\WSAD\runtimes\base_v51/classes;C:\WSAD\runtimes\base_v51/lib;C:\WSAD\runtimes\base_v51/lib/ext;C:\WSAD\runtimes\base_v51/web/help;C:\WSAD\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:\devel\libs;C:/WSAD/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2.2/runtime/worf.jar
Classpath = C:\WSAD\runtimes\base_v51/properties;C:\WSAD\runtimes\base_v51/properties;C:\WSAD\runtimes\base_v51/lib/bootstrap.jar;C:\WSAD\runtimes\base_v51/lib/j2ee.jar;C:\WSAD\runtimes\base_v51/lib/lmproxy.jar;C:\WSAD\runtimes\base_v51/lib/urlprotocols.jar;C:/WSAD/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;C:/WSAD/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
Java Library path = C:\WSAD\runtimes\base_v51/bin;C:\WSAD\runtimes\base_v51/java/bin;C:\WSAD\runtimes\base_v51/java/jre/bin;C:\WSAD\eclipse\jre\bin;.;C:\WSAD\eclipse\jre\bin;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\X11;C:\PROGRA~1\MKSTOO~1\mksnt;C:\Perl\bin\;C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\Oracle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\IM;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\;C:\Program Files\Common Files\Adaptec Shared\System;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\java\bin;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\Java\bin;C:\Program Files\IBM\WebSphere MQ\WEMPS\bin;C:\WSAD\runtimes\base_v51\bin;C:\WSAD\runtimes\base_v5\bin;C:\PROGRA~1\XYENTE~1\CONTENTA;C:\PROGRA~1\XYENTE~1\CONTENTA\SYSTEM;C:\PROGRA~1\vision;C:\PROGRA~1\vision\SYSTEM;C:\PROGRA~1\COMMON~1\vision;C:\Program Files\QuickTime\QTSystem
************* End Display Current Environment *************
[10/31/05 8:47:20:338 EST] 3e2f4b90 ManagerAdmin I TRAS0017I: The startup trace state is *=all=disabled.
[10/31/05 8:47:21:604 EST] 3e2f4b90 AdminInitiali A ADMN0015I: AdminService initialized
[10/31/05 8:47:25:573 EST] 3e2f4b90 MBeanDescript W ADMN0001W: Unable to parse MBean descriptor file com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: Unable to parse MBean descriptor file com/ibm/ws/management/descriptor/xml/JVM.xml.
at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:283)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
.
[10/31/05 8:47:25:760 EST] 3e2f4b90 WsServer E WSVR0003E: Server server1 failed to start
com.ibm.ws.exception.ConfigurationError: Problem initializing AdminImpl:
at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:419)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
Caused by: com.ibm.ws.exception.ConfigurationWarning: Problem registering JVM MBean.
at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:289)
... 11 more
Caused by: com.ibm.websphere.management.exception.AdminException: ADMN0005E: Unable to activate MBean: type JVM, collaborator com.ibm.ws.management.collaborator.DefaultRuntimeCollaborator@fd64b9e, configuration id JVM, descriptor null.
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:289)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:283)
... 11 more
Caused by: com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: Unable to parse MBean descriptor file com/ibm/ws/management/descriptor/xml/JVM.xml.
at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
... 13 more
---- Begin backtrace for nested exception
com.ibm.ws.exception.ConfigurationWarning: Problem registering JVM MBean.
at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:289)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
Caused by: com.ibm.websphere.management.exception.AdminException: ADMN0005E: Unable to activate MBean: type JVM, collaborator com.ibm.ws.management.collaborator.DefaultRuntimeCollaborator@fd64b9e, configuration id JVM, descriptor null.
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:289)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:283)
... 11 more
Caused by: com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: Unable to parse MBean descriptor file com/ibm/ws/management/descriptor/xml/JVM.xml.
at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
... 13 more
---- Begin backtrace for nested exception
com.ibm.websphere.management.exception.AdminException: ADMN0005E: Unable to activate MBean: type JVM, collaborator com.ibm.ws.management.collaborator.DefaultRuntimeCollaborator@fd64b9e, configuration id JVM, descriptor null.
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:289)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:283)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
Caused by: com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: Unable to parse MBean descriptor file com/ibm/ws/management/descriptor/xml/JVM.xml.
at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
... 13 more
---- Begin backtrace for nested exception
com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: Unable to parse MBean descriptor file com/ibm/ws/management/descriptor/xml/JVM.xml.
at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:283)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

[10/31/05 8:47:25:791 EST] 3e2f4b90 WsServer E WSVR0009E: Error occurred during startup


Thanks,
Chris
12 years ago
Ah-Haa.....thanks that makes sense.
Chris
12 years ago
Hi,
I just had a strange problem with a struts app I'm working on. I have a field in my form bean :

private String action;

with the appropriate getters and setters.

In my .jsp I am using it like such :

<html:select property="action">
<option></option>
<option>Changed</option>
<option>Closed</option>
<option>Filed</option>
<option>Transfered</option>
</html:select>

Anyway, when I submit the form I get an internet explorer script error saying the object does not support this property or method.

I changed the name of the variable to action1 and I no longer get the error. So I'm curious is "action" actually a reserved word in struts that I'm unaware of? Anybody else ever seen this ?

Thanks
Chris
12 years ago
Hi,
I just had a strange problem with a struts app I'm working on. I have a field in my form bean :

private String Action;

with the appropriate getters and setters.

In my .jsp I am using it like such :

<html:select property="action">
<option></option>
<option>Changed</option>
<option>Closed</option>
<option>Filed</option>
<option>Transfered</option>
</html:select>
12 years ago
Thanks for the info guys, that's what I was afraid of.
12 years ago