[Eclipse+JBoss+MySQL] Datasource

Hello,
how i can use a datasource in JBoss IDE inside eclipse?
i've understood this 3 steps
1) make mysql-ds.xml
<datasources>
<local-tx-datasource>
<jndi-name>MyDS</jndi-name>
<connection-url>jdbc:mysql://localhost/community</connection-url>
<driver-class>org.gjt.mm.mysql.Driver</driver-class>
<user-name>admin</user-name>
<password>admin</password>
</local-tx-datasource>
</datasources>2) insert in web.xml
<resource-ref>
<res-auth>Container</res-auth>
</resource-ref>3) in my webapplication, i do
InitialContext cnt= new InitialContext();
datasource ds= (datasource)cnt.lookup("nome jndi");
Connection conn= ds.getConnection();
...Can you explai me in detail, please?
Regard

Hi
I test this:
1.- CREATE XML FILE DATASOURCE[
create the file mysql-ds-xml
by example:
<datasources>
<local-tx-datasource>
<jndi-name>MySQLJNDI</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/egov</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password></password>
<max-pool-size>50</max-pool-size>
<min-pool-size>20</min-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements>true</track-statements>
</local-tx-datasource>
</datasources>
my db is in MySQL
this file copy to
{JBOSS_HOME}\server\default\deploy
2.- COPY DRIVER TO
copy your driver to
{JBOSS_HOME}\server\default\lib
my driver is
mysql-connector-java-3.0.17-ga-bin.jar
3.- CREATE JSP FILE
by example
<%@page contentType="text/html" import="java.net.*,java.util.*,org.jboss.jmx.adaptor.model.*,
java.io.*,java.sql.*,javax.sql.*,javax.naming.*"%>
<html>
<head>
<title>JBoss->MySQL Test </title>
<link rel="stylesheet" href="style_master.css" type="text/css">
<meta http-equiv="cache-control" content="no-cache">
</head>
<body>
<%
InitialContext ctx = new InitialContext();
DatabaseMetaData dm = null;
DataSource ds = (DataSource)
ctx.lookup("java:/MySQLJNDI");
Connection conn = null;
Statement stmt = null;
try {
conn = ds.getConnection();
dm =conn.getMetaData();
out.println("Connected to-> database version "+dm.getDatabaseProductVersion());
}catch (Exception sqlex) {
out.println(sqlex.getMessage());
}finally{
conn.close();
%>
</body>
</html>
and copy to:
<%@page contentType="text/html" import="java.net.*,java.util.*,org.jboss.jmx.adaptor.model.*,
java.io.*,java.sql.*,javax.sql.*,javax.naming.*"%>
<html>
<head>
<title>JBoss->MySQL Test </title>
<link rel="stylesheet" href="style_master.css" type="text/css">
<meta http-equiv="cache-control" content="no-cache">
</head>
<body>
<%
InitialContext ctx = new InitialContext();
DatabaseMetaData dm = null;
DataSource ds = (DataSource)
ctx.lookup("java:/MySQLJNDI");
Connection conn = null;
Statement stmt = null;
try {
conn = ds.getConnection();
dm =conn.getMetaData();
out.println("Connected to-> database version "+dm.getDatabaseProductVersion());
}catch (Exception sqlex) {
out.println(sqlex.getMessage());
}finally{
conn.close();
%>
</body>
</html>
4.- STARTUP SERVICES
run JBoss
run MySQL
and
type the next URL
http://localhost:8080/jmx-console/test.jsp
OKI DOKY
BYE

Similar Messages

  • Hotspot access violation running Eclipse JBoss IDE 1.6.0 & 2.0.0 on Win XP

    I have the following error when I try to open the Eclipse JBoss IDE versions 1.6.0 and 2.0.0 Beta. I tryed with jdk 1.5.0_06 and 1.5.0_12.
    Please, help me.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c911c20, pid=2640, tid=1672
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing)
    # Problematic frame:
    # C [ntdll.dll+0x11c20]
    --------------- T H R E A D ---------------
    Current thread (0x00354f20): JavaThread "main" [_thread_in_native, id=1672]
    siginfo: ExceptionCode=0xc0000005, writing address 0x00000038
    Registers:
    EAX=0x00000000, EBX=0x00001600, ECX=0x00000001, EDX=0x0000003c
    ESP=0x0006e4e0, EBP=0x0006e4f4, ESI=0x04bc0000, EDI=0x00350000
    EIP=0x7c911c20, EFLAGS=0x00010287
    Top of Stack: (sp=0x0006e4e0)
    0x0006e4e0: 00350000 04bc0000 00350006 00000000
    0x0006e4f0: 2706e51c 0006e528 7c91825d 00001600
    0x0006e500: 10bc0000 00000000 000014eb 00000000
    0x0006e510: 00350000 00000006 00a4eac8 00001600
    0x0006e520: 03d20000 00000000 0006e758 7c911c76
    0x0006e530: 05350000 0000a758 0000a740 0000a74c
    0x0006e540: 0006e820 03130a60 0006e778 7c912270
    0x0006e550: 7c911596 7c9106eb 00000569 0000056a
    Instructions: (pc=0x7c911c20)
    0x7c911c10: 07 40 0f 83 e5 c2 00 00 0f b6 46 07 8b 44 87 58
    0x7c911c20: 89 70 38 8b 45 f8 8d 34 de 3b 70 24 73 13 83 7d
    Stack: [0x00030000,0x00070000), sp=0x0006e4e0, free space=249k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [ntdll.dll+0x11c20]
    C [ntdll.dll+0x1825d]
    C [ntdll.dll+0x11c76]
    C [MSVCRT.dll+0x1c3c9]
    C [MSVCRT.dll+0x1c3e7]
    C [MSVCRT.dll+0x1c42e]
    C [verify.dll+0x4870]
    C [verify.dll+0x19c6]
    C [verify.dll+0x126b]
    C [java.dll+0x3fb7]
    V [jvm.dll+0x11d608]
    V [jvm.dll+0x78a34]
    V [jvm.dll+0x78d54]
    V [jvm.dll+0x78a13]
    V [jvm.dll+0x81f36]
    j org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabItem.<init>(Lorg/eclipse/swt/custom/CTabFolder;II)V+1
    j org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.add(II)Lorg/eclipse/ui/internal/presentations/util/AbstractTabItem;+16
    j org.eclipse.ui.internal.presentations.util.PresentablePartFolder.insert(Lorg/eclipse/ui/presentations/IPresentablePart;I)V+84
    j org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.add(Lorg/eclipse/ui/presentations/IPresentablePart;)V+14
    j org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.addInitial(Lorg/eclipse/ui/presentations/IPresentablePart;)V+2
    j org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.addPart(Lorg/eclipse/ui/presentations/IPresentablePart;Ljava/lang/Object;)V+22
    j org.eclipse.ui.internal.PartStack.showPart(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+96
    j org.eclipse.ui.internal.PartStack.add(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+29
    j org.eclipse.ui.internal.EditorStack.add(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+3
    j org.eclipse.ui.internal.PartStack.add(Lorg/eclipse/ui/internal/LayoutPart;)V+3
    j org.eclipse.ui.internal.EditorStack.add(Lorg/eclipse/ui/internal/LayoutPart;)V+2
    j org.eclipse.ui.internal.EditorSashContainer.addEditor(Lorg/eclipse/ui/internal/EditorPane;Lorg/eclipse/ui/internal/EditorStack;)V+2
    j org.eclipse.ui.internal.EditorAreaHelper.addToLayout(Lorg/eclipse/ui/internal/EditorPane;Lorg/eclipse/ui/internal/EditorStack;)V+11
    j org.eclipse.ui.internal.EditorAreaHelper.addEditor(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+81
    j org.eclipse.ui.internal.EditorManager.createEditorTab(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+6
    j org.eclipse.ui.internal.EditorManager.restoreEditorState(Lorg/eclipse/ui/IMemento;Ljava/util/ArrayList;[Lorg/eclipse/ui/IEditorReference;Lorg/eclipse/core/runtime/MultiStatus;)V+27
    j org.eclipse.ui.internal.EditorManager.restoreState(Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+107
    j org.eclipse.ui.internal.WorkbenchPage.restoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/core/runtime/IStatus;+348
    j org.eclipse.ui.internal.WorkbenchWindow.restoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/core/runtime/IStatus;+1413
    j org.eclipse.ui.internal.Workbench.doRestoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/core/runtime/MultiStatus;)V+161
    j org.eclipse.ui.internal.Workbench.access$14(Lorg/eclipse/ui/internal/Workbench;Lorg/eclipse/ui/IMemento;Lorg/eclipse/core/runtime/MultiStatus;)V+3
    j org.eclipse.ui.internal.Workbench$19.run()V+12
    j org.eclipse.ui.internal.Workbench.runStartupWithProgress(ILjava/lang/Runnable;)V+59
    j org.eclipse.ui.internal.Workbench.restoreState(Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+92
    j org.eclipse.ui.internal.Workbench.access$12(Lorg/eclipse/ui/internal/Workbench;Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+2
    j org.eclipse.ui.internal.Workbench$17.run()V+270
    j org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5
    j org.eclipse.ui.internal.Workbench.restoreState()Lorg/eclipse/core/runtime/IStatus;+101
    j org.eclipse.ui.internal.WorkbenchConfigurer.restoreState()Lorg/eclipse/core/runtime/IStatus;+7
    j org.eclipse.ui.application.WorkbenchAdvisor.openWindows()Z+4
    j org.eclipse.ui.internal.Workbench.init()Z+157
    j org.eclipse.ui.internal.Workbench.runUI()I+143
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j org.eclipse.ui.internal.ide.IDEApplication.run(Ljava/lang/Object;)Ljava/lang/Object;+76
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+219
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+135
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+60
    v ~StubRoutines::call_stub
    V [jvm.dll+0x87599]
    V [jvm.dll+0xdfbb2]
    V [jvm.dll+0x8746a]
    V [jvm.dll+0xf3d59]
    V [jvm.dll+0xa5711]
    C [java.dll+0x6d4f]
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    V [jvm.dll+0x87599]
    V [jvm.dll+0xdfbb2]
    V [jvm.dll+0x8746a]
    V [jvm.dll+0x8e6ac]
    C [javaw.exe+0x14c5]
    C [javaw.exe+0x3151]
    C [kernel32.dll+0x16fd7]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabItem.<init>(Lorg/eclipse/swt/custom/CTabFolder;II)V+1
    j org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.add(II)Lorg/eclipse/ui/internal/presentations/util/AbstractTabItem;+16
    j org.eclipse.ui.internal.presentations.util.PresentablePartFolder.insert(Lorg/eclipse/ui/presentations/IPresentablePart;I)V+84
    j org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.add(Lorg/eclipse/ui/presentations/IPresentablePart;)V+14
    j org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.addInitial(Lorg/eclipse/ui/presentations/IPresentablePart;)V+2
    j org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.addPart(Lorg/eclipse/ui/presentations/IPresentablePart;Ljava/lang/Object;)V+22
    j org.eclipse.ui.internal.PartStack.showPart(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+96
    j org.eclipse.ui.internal.PartStack.add(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+29
    j org.eclipse.ui.internal.EditorStack.add(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+3
    j org.eclipse.ui.internal.PartStack.add(Lorg/eclipse/ui/internal/LayoutPart;)V+3
    j org.eclipse.ui.internal.EditorStack.add(Lorg/eclipse/ui/internal/LayoutPart;)V+2
    j org.eclipse.ui.internal.EditorSashContainer.addEditor(Lorg/eclipse/ui/internal/EditorPane;Lorg/eclipse/ui/internal/EditorStack;)V+2
    j org.eclipse.ui.internal.EditorAreaHelper.addToLayout(Lorg/eclipse/ui/internal/EditorPane;Lorg/eclipse/ui/internal/EditorStack;)V+11
    j org.eclipse.ui.internal.EditorAreaHelper.addEditor(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+81
    j org.eclipse.ui.internal.EditorManager.createEditorTab(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+6
    j org.eclipse.ui.internal.EditorManager.restoreEditorState(Lorg/eclipse/ui/IMemento;Ljava/util/ArrayList;[Lorg/eclipse/ui/IEditorReference;Lorg/eclipse/core/runtime/MultiStatus;)V+27
    j org.eclipse.ui.internal.EditorManager.restoreState(Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+107
    j org.eclipse.ui.internal.WorkbenchPage.restoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/core/runtime/IStatus;+348
    j org.eclipse.ui.internal.WorkbenchWindow.restoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/core/runtime/IStatus;+1413
    j org.eclipse.ui.internal.Workbench.doRestoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/core/runtime/MultiStatus;)V+161
    j org.eclipse.ui.internal.Workbench.access$14(Lorg/eclipse/ui/internal/Workbench;Lorg/eclipse/ui/IMemento;Lorg/eclipse/core/runtime/MultiStatus;)V+3
    j org.eclipse.ui.internal.Workbench$19.run()V+12
    j org.eclipse.ui.internal.Workbench.runStartupWithProgress(ILjava/lang/Runnable;)V+59
    j org.eclipse.ui.internal.Workbench.restoreState(Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+92
    j org.eclipse.ui.internal.Workbench.access$12(Lorg/eclipse/ui/internal/Workbench;Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+2
    j org.eclipse.ui.internal.Workbench$17.run()V+270
    j org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5
    j org.eclipse.ui.internal.Workbench.restoreState()Lorg/eclipse/core/runtime/IStatus;+101
    j org.eclipse.ui.internal.WorkbenchConfigurer.restoreState()Lorg/eclipse/core/runtime/IStatus;+7
    j org.eclipse.ui.application.WorkbenchAdvisor.openWindows()Z+4
    j org.eclipse.ui.internal.Workbench.init()Z+157
    j org.eclipse.ui.internal.Workbench.runUI()I+143
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j org.eclipse.ui.internal.ide.IDEApplication.run(Ljava/lang/Object;)Ljava/lang/Object;+76
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+219
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+135
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+60
    v ~StubRoutines::call_stub
    j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x04b536d0 JavaThread "Startup Progress Printer" [_thread_blocked, id=2836]
    0x040482b0 JavaThread "Worker-0" [_thread_blocked, id=1172]
    0x030f7d18 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=1928]
    0x02e6bc28 JavaThread "State Saver" [_thread_blocked, id=412]
    0x02e7de00 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=2948]
    0x00a11870 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2280]
    0x00a10438 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4036]
    0x009e57f8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3852]
    0x009e2818 JavaThread "Finalizer" daemon [_thread_blocked, id=4072]
    0x0035d8e0 JavaThread "Reference Handler" daemon [_thread_blocked, id=2352]
    =>0x00354f20 JavaThread "main" [_thread_in_native, id=1672]
    Other Threads:
    0x00a0d720 VMThread [id=3360]
    0x00a12bf8 WatcherThread [id=2288]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 2688K, used 2554K [0x06a70000, 0x06d50000, 0x091d0000)
    eden space 2432K, 98% used [0x06a70000, 0x06cc76b8, 0x06cd0000)
    from space 256K, 61% used [0x06cd0000, 0x06cf7170, 0x06d10000)
    to space 256K, 0% used [0x06d10000, 0x06d10000, 0x06d50000)
    tenured generation total 34444K, used 21014K [0x091d0000, 0x0b373000, 0x26a70000)
    the space 34444K, 61% used [0x091d0000, 0x0a655b28, 0x0a655c00, 0x0b373000)
    compacting perm gen total 12544K, used 12506K [0x26a70000, 0x276b0000, 0x2aa70000)
    the space 12544K, 99% used [0x26a70000, 0x276a6be0, 0x276a6c00, 0x276b0000)
    ro space 8192K, 67% used [0x2aa70000, 0x2afd0588, 0x2afd0600, 0x2b270000)
    rw space 12288K, 47% used [0x2b270000, 0x2b81a268, 0x2b81a400, 0x2be70000)
    Dynamic libraries:
    0x00400000 - 0x0040d000      C:\jdk1.5.0_12\bin\javaw.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x6d740000 - 0x6d8dd000      C:\jdk1.5.0_12\jre\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6d300000 - 0x6d308000      C:\jdk1.5.0_12\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d710000 - 0x6d71c000      C:\jdk1.5.0_12\jre\bin\verify.dll
    0x6d380000 - 0x6d39d000      C:\jdk1.5.0_12\jre\bin\java.dll
    0x6d730000 - 0x6d73f000      C:\jdk1.5.0_12\jre\bin\zip.dll
    0x6d540000 - 0x6d553000      C:\jdk1.5.0_12\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x6d560000 - 0x6d569000      C:\jdk1.5.0_12\jre\bin\nio.dll
    0x04d20000 - 0x04d72000      C:\eclipse_JBossIDE2.0.0Beta\configuration\org.eclipse.osgi\bundles\195\1\.cp\swt-win32-3235.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x773d0000 - 0x774d3000      C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\COMCTL32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x763b0000 - 0x763f9000      C:\WINDOWS\system32\comdlg32.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\OLEAUT32.dll
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x771b0000 - 0x7725a000      C:\WINDOWS\system32\WININET.dll
    0x77a80000 - 0x77b14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000      C:\WINDOWS\system32\MSASN1.dll
    0x75a70000 - 0x75a91000      C:\WINDOWS\system32\MSVFW32.dll
    0x5d090000 - 0x5d12a000      C:\WINDOWS\system32\comctl32.dll
    0x74720000 - 0x7476b000      C:\WINDOWS\system32\MSCTF.dll
    0x755c0000 - 0x755ee000      C:\WINDOWS\system32\msctfime.ime
    0x04e50000 - 0x04e58000      C:\eclipse_JBossIDE2.0.0Beta\configuration\org.eclipse.osgi\bundles\30\1\.cp\os\win32\x86\localfile_1_0_0.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\uxtheme.dll
    0x74c80000 - 0x74cac000      C:\WINDOWS\system32\oleacc.dll
    0x76080000 - 0x760e5000      C:\WINDOWS\system32\MSVCP60.dll
    0x05180000 - 0x05193000      C:\eclipse_JBossIDE2.0.0Beta\configuration\org.eclipse.osgi\bundles\195\1\.cp\swt-gdip-win32-3235.dll
    0x4ec50000 - 0x4edf3000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\gdiplus.dll
    0x053b0000 - 0x05675000      C:\WINDOWS\system32\xpsp2res.dll
    VM Arguments:
    jvm_args: -Xmx512m
    java_command: C:\eclipse_JBossIDE2.0.0Beta\startup.jar -os win32 -ws win32 -arch x86 -launcher C:\eclipse_JBossIDE2.0.0Beta\eclipse.exe -name Eclipse -showsplash 600 -exitdata 300_78 -clean -vm C:\jdk1.5.0_12\bin\javaw.exe -vmargs -Xmx512m -jar C:\eclipse_JBossIDE2.0.0Beta\startup.jar
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\jdk1.5.0_12
    PATH=C:\jdk1.5.0_12\bin;C:\Program Files\PHP\;C:\Program Files\IronGrid\IronEyeSql;C:\oracle\ora92\bin\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\maven-2.0.5\bin;C:\Program Files\dtSearch Developer\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\cvsnt;C:\Program Files\MySQL\MySQL Server 4.1\bin;C:\apache-ant-1.6.5\bin
    USERNAME=ijordanov
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 10, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 2088172k(1361776k free), swap 4029752k(3409596k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_12-b04) for windows-x86, built on May 2 2007 02:07:59 by "java_re" with MS VC++ 6.0

    I have the following error when I try to open the Eclipse JBoss IDE versions 1.6.0 and 2.0.0 Beta. I tryed with jdk 1.5.0_06 and 1.5.0_12.
    Please, help me.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c911c20, pid=2640, tid=1672
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing)
    # Problematic frame:
    # C [ntdll.dll+0x11c20]
    --------------- T H R E A D ---------------
    Current thread (0x00354f20): JavaThread "main" [_thread_in_native, id=1672]
    siginfo: ExceptionCode=0xc0000005, writing address 0x00000038
    Registers:
    EAX=0x00000000, EBX=0x00001600, ECX=0x00000001, EDX=0x0000003c
    ESP=0x0006e4e0, EBP=0x0006e4f4, ESI=0x04bc0000, EDI=0x00350000
    EIP=0x7c911c20, EFLAGS=0x00010287
    Top of Stack: (sp=0x0006e4e0)
    0x0006e4e0: 00350000 04bc0000 00350006 00000000
    0x0006e4f0: 2706e51c 0006e528 7c91825d 00001600
    0x0006e500: 10bc0000 00000000 000014eb 00000000
    0x0006e510: 00350000 00000006 00a4eac8 00001600
    0x0006e520: 03d20000 00000000 0006e758 7c911c76
    0x0006e530: 05350000 0000a758 0000a740 0000a74c
    0x0006e540: 0006e820 03130a60 0006e778 7c912270
    0x0006e550: 7c911596 7c9106eb 00000569 0000056a
    Instructions: (pc=0x7c911c20)
    0x7c911c10: 07 40 0f 83 e5 c2 00 00 0f b6 46 07 8b 44 87 58
    0x7c911c20: 89 70 38 8b 45 f8 8d 34 de 3b 70 24 73 13 83 7d
    Stack: [0x00030000,0x00070000), sp=0x0006e4e0, free space=249k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [ntdll.dll+0x11c20]
    C [ntdll.dll+0x1825d]
    C [ntdll.dll+0x11c76]
    C [MSVCRT.dll+0x1c3c9]
    C [MSVCRT.dll+0x1c3e7]
    C [MSVCRT.dll+0x1c42e]
    C [verify.dll+0x4870]
    C [verify.dll+0x19c6]
    C [verify.dll+0x126b]
    C [java.dll+0x3fb7]
    V [jvm.dll+0x11d608]
    V [jvm.dll+0x78a34]
    V [jvm.dll+0x78d54]
    V [jvm.dll+0x78a13]
    V [jvm.dll+0x81f36]
    j org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabItem.<init>(Lorg/eclipse/swt/custom/CTabFolder;II)V+1
    j org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.add(II)Lorg/eclipse/ui/internal/presentations/util/AbstractTabItem;+16
    j org.eclipse.ui.internal.presentations.util.PresentablePartFolder.insert(Lorg/eclipse/ui/presentations/IPresentablePart;I)V+84
    j org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.add(Lorg/eclipse/ui/presentations/IPresentablePart;)V+14
    j org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.addInitial(Lorg/eclipse/ui/presentations/IPresentablePart;)V+2
    j org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.addPart(Lorg/eclipse/ui/presentations/IPresentablePart;Ljava/lang/Object;)V+22
    j org.eclipse.ui.internal.PartStack.showPart(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+96
    j org.eclipse.ui.internal.PartStack.add(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+29
    j org.eclipse.ui.internal.EditorStack.add(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+3
    j org.eclipse.ui.internal.PartStack.add(Lorg/eclipse/ui/internal/LayoutPart;)V+3
    j org.eclipse.ui.internal.EditorStack.add(Lorg/eclipse/ui/internal/LayoutPart;)V+2
    j org.eclipse.ui.internal.EditorSashContainer.addEditor(Lorg/eclipse/ui/internal/EditorPane;Lorg/eclipse/ui/internal/EditorStack;)V+2
    j org.eclipse.ui.internal.EditorAreaHelper.addToLayout(Lorg/eclipse/ui/internal/EditorPane;Lorg/eclipse/ui/internal/EditorStack;)V+11
    j org.eclipse.ui.internal.EditorAreaHelper.addEditor(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+81
    j org.eclipse.ui.internal.EditorManager.createEditorTab(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+6
    j org.eclipse.ui.internal.EditorManager.restoreEditorState(Lorg/eclipse/ui/IMemento;Ljava/util/ArrayList;[Lorg/eclipse/ui/IEditorReference;Lorg/eclipse/core/runtime/MultiStatus;)V+27
    j org.eclipse.ui.internal.EditorManager.restoreState(Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+107
    j org.eclipse.ui.internal.WorkbenchPage.restoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/core/runtime/IStatus;+348
    j org.eclipse.ui.internal.WorkbenchWindow.restoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/core/runtime/IStatus;+1413
    j org.eclipse.ui.internal.Workbench.doRestoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/core/runtime/MultiStatus;)V+161
    j org.eclipse.ui.internal.Workbench.access$14(Lorg/eclipse/ui/internal/Workbench;Lorg/eclipse/ui/IMemento;Lorg/eclipse/core/runtime/MultiStatus;)V+3
    j org.eclipse.ui.internal.Workbench$19.run()V+12
    j org.eclipse.ui.internal.Workbench.runStartupWithProgress(ILjava/lang/Runnable;)V+59
    j org.eclipse.ui.internal.Workbench.restoreState(Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+92
    j org.eclipse.ui.internal.Workbench.access$12(Lorg/eclipse/ui/internal/Workbench;Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+2
    j org.eclipse.ui.internal.Workbench$17.run()V+270
    j org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5
    j org.eclipse.ui.internal.Workbench.restoreState()Lorg/eclipse/core/runtime/IStatus;+101
    j org.eclipse.ui.internal.WorkbenchConfigurer.restoreState()Lorg/eclipse/core/runtime/IStatus;+7
    j org.eclipse.ui.application.WorkbenchAdvisor.openWindows()Z+4
    j org.eclipse.ui.internal.Workbench.init()Z+157
    j org.eclipse.ui.internal.Workbench.runUI()I+143
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j org.eclipse.ui.internal.ide.IDEApplication.run(Ljava/lang/Object;)Ljava/lang/Object;+76
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+219
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+135
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+60
    v ~StubRoutines::call_stub
    V [jvm.dll+0x87599]
    V [jvm.dll+0xdfbb2]
    V [jvm.dll+0x8746a]
    V [jvm.dll+0xf3d59]
    V [jvm.dll+0xa5711]
    C [java.dll+0x6d4f]
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    V [jvm.dll+0x87599]
    V [jvm.dll+0xdfbb2]
    V [jvm.dll+0x8746a]
    V [jvm.dll+0x8e6ac]
    C [javaw.exe+0x14c5]
    C [javaw.exe+0x3151]
    C [kernel32.dll+0x16fd7]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabItem.<init>(Lorg/eclipse/swt/custom/CTabFolder;II)V+1
    j org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.add(II)Lorg/eclipse/ui/internal/presentations/util/AbstractTabItem;+16
    j org.eclipse.ui.internal.presentations.util.PresentablePartFolder.insert(Lorg/eclipse/ui/presentations/IPresentablePart;I)V+84
    j org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.add(Lorg/eclipse/ui/presentations/IPresentablePart;)V+14
    j org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.addInitial(Lorg/eclipse/ui/presentations/IPresentablePart;)V+2
    j org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.addPart(Lorg/eclipse/ui/presentations/IPresentablePart;Ljava/lang/Object;)V+22
    j org.eclipse.ui.internal.PartStack.showPart(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+96
    j org.eclipse.ui.internal.PartStack.add(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+29
    j org.eclipse.ui.internal.EditorStack.add(Lorg/eclipse/ui/internal/LayoutPart;Ljava/lang/Object;)V+3
    j org.eclipse.ui.internal.PartStack.add(Lorg/eclipse/ui/internal/LayoutPart;)V+3
    j org.eclipse.ui.internal.EditorStack.add(Lorg/eclipse/ui/internal/LayoutPart;)V+2
    j org.eclipse.ui.internal.EditorSashContainer.addEditor(Lorg/eclipse/ui/internal/EditorPane;Lorg/eclipse/ui/internal/EditorStack;)V+2
    j org.eclipse.ui.internal.EditorAreaHelper.addToLayout(Lorg/eclipse/ui/internal/EditorPane;Lorg/eclipse/ui/internal/EditorStack;)V+11
    j org.eclipse.ui.internal.EditorAreaHelper.addEditor(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+81
    j org.eclipse.ui.internal.EditorManager.createEditorTab(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+6
    j org.eclipse.ui.internal.EditorManager.restoreEditorState(Lorg/eclipse/ui/IMemento;Ljava/util/ArrayList;[Lorg/eclipse/ui/IEditorReference;Lorg/eclipse/core/runtime/MultiStatus;)V+27
    j org.eclipse.ui.internal.EditorManager.restoreState(Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+107
    j org.eclipse.ui.internal.WorkbenchPage.restoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/core/runtime/IStatus;+348
    j org.eclipse.ui.internal.WorkbenchWindow.restoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/core/runtime/IStatus;+1413
    j org.eclipse.ui.internal.Workbench.doRestoreState(Lorg/eclipse/ui/IMemento;Lorg/eclipse/core/runtime/MultiStatus;)V+161
    j org.eclipse.ui.internal.Workbench.access$14(Lorg/eclipse/ui/internal/Workbench;Lorg/eclipse/ui/IMemento;Lorg/eclipse/core/runtime/MultiStatus;)V+3
    j org.eclipse.ui.internal.Workbench$19.run()V+12
    j org.eclipse.ui.internal.Workbench.runStartupWithProgress(ILjava/lang/Runnable;)V+59
    j org.eclipse.ui.internal.Workbench.restoreState(Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+92
    j org.eclipse.ui.internal.Workbench.access$12(Lorg/eclipse/ui/internal/Workbench;Lorg/eclipse/ui/IMemento;)Lorg/eclipse/core/runtime/IStatus;+2
    j org.eclipse.ui.internal.Workbench$17.run()V+270
    j org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5
    j org.eclipse.ui.internal.Workbench.restoreState()Lorg/eclipse/core/runtime/IStatus;+101
    j org.eclipse.ui.internal.WorkbenchConfigurer.restoreState()Lorg/eclipse/core/runtime/IStatus;+7
    j org.eclipse.ui.application.WorkbenchAdvisor.openWindows()Z+4
    j org.eclipse.ui.internal.Workbench.init()Z+157
    j org.eclipse.ui.internal.Workbench.runUI()I+143
    j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
    j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
    j org.eclipse.ui.internal.ide.IDEApplication.run(Ljava/lang/Object;)Ljava/lang/Object;+76
    j org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+219
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
    j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+135
    j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+60
    v ~StubRoutines::call_stub
    j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
    j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
    j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
    j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
    j org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
    j org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
    j org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
    j org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x04b536d0 JavaThread "Startup Progress Printer" [_thread_blocked, id=2836]
    0x040482b0 JavaThread "Worker-0" [_thread_blocked, id=1172]
    0x030f7d18 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=1928]
    0x02e6bc28 JavaThread "State Saver" [_thread_blocked, id=412]
    0x02e7de00 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=2948]
    0x00a11870 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2280]
    0x00a10438 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4036]
    0x009e57f8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3852]
    0x009e2818 JavaThread "Finalizer" daemon [_thread_blocked, id=4072]
    0x0035d8e0 JavaThread "Reference Handler" daemon [_thread_blocked, id=2352]
    =>0x00354f20 JavaThread "main" [_thread_in_native, id=1672]
    Other Threads:
    0x00a0d720 VMThread [id=3360]
    0x00a12bf8 WatcherThread [id=2288]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 2688K, used 2554K [0x06a70000, 0x06d50000, 0x091d0000)
    eden space 2432K, 98% used [0x06a70000, 0x06cc76b8, 0x06cd0000)
    from space 256K, 61% used [0x06cd0000, 0x06cf7170, 0x06d10000)
    to space 256K, 0% used [0x06d10000, 0x06d10000, 0x06d50000)
    tenured generation total 34444K, used 21014K [0x091d0000, 0x0b373000, 0x26a70000)
    the space 34444K, 61% used [0x091d0000, 0x0a655b28, 0x0a655c00, 0x0b373000)
    compacting perm gen total 12544K, used 12506K [0x26a70000, 0x276b0000, 0x2aa70000)
    the space 12544K, 99% used [0x26a70000, 0x276a6be0, 0x276a6c00, 0x276b0000)
    ro space 8192K, 67% used [0x2aa70000, 0x2afd0588, 0x2afd0600, 0x2b270000)
    rw space 12288K, 47% used [0x2b270000, 0x2b81a268, 0x2b81a400, 0x2be70000)
    Dynamic libraries:
    0x00400000 - 0x0040d000      C:\jdk1.5.0_12\bin\javaw.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x6d740000 - 0x6d8dd000      C:\jdk1.5.0_12\jre\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6d300000 - 0x6d308000      C:\jdk1.5.0_12\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d710000 - 0x6d71c000      C:\jdk1.5.0_12\jre\bin\verify.dll
    0x6d380000 - 0x6d39d000      C:\jdk1.5.0_12\jre\bin\java.dll
    0x6d730000 - 0x6d73f000      C:\jdk1.5.0_12\jre\bin\zip.dll
    0x6d540000 - 0x6d553000      C:\jdk1.5.0_12\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x6d560000 - 0x6d569000      C:\jdk1.5.0_12\jre\bin\nio.dll
    0x04d20000 - 0x04d72000      C:\eclipse_JBossIDE2.0.0Beta\configuration\org.eclipse.osgi\bundles\195\1\.cp\swt-win32-3235.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x773d0000 - 0x774d3000      C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\COMCTL32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x763b0000 - 0x763f9000      C:\WINDOWS\system32\comdlg32.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\OLEAUT32.dll
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x771b0000 - 0x7725a000      C:\WINDOWS\system32\WININET.dll
    0x77a80000 - 0x77b14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000      C:\WINDOWS\system32\MSASN1.dll
    0x75a70000 - 0x75a91000      C:\WINDOWS\system32\MSVFW32.dll
    0x5d090000 - 0x5d12a000      C:\WINDOWS\system32\comctl32.dll
    0x74720000 - 0x7476b000      C:\WINDOWS\system32\MSCTF.dll
    0x755c0000 - 0x755ee000      C:\WINDOWS\system32\msctfime.ime
    0x04e50000 - 0x04e58000      C:\eclipse_JBossIDE2.0.0Beta\configuration\org.eclipse.osgi\bundles\30\1\.cp\os\win32\x86\localfile_1_0_0.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\uxtheme.dll
    0x74c80000 - 0x74cac000      C:\WINDOWS\system32\oleacc.dll
    0x76080000 - 0x760e5000      C:\WINDOWS\system32\MSVCP60.dll
    0x05180000 - 0x05193000      C:\eclipse_JBossIDE2.0.0Beta\configuration\org.eclipse.osgi\bundles\195\1\.cp\swt-gdip-win32-3235.dll
    0x4ec50000 - 0x4edf3000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\gdiplus.dll
    0x053b0000 - 0x05675000      C:\WINDOWS\system32\xpsp2res.dll
    VM Arguments:
    jvm_args: -Xmx512m
    java_command: C:\eclipse_JBossIDE2.0.0Beta\startup.jar -os win32 -ws win32 -arch x86 -launcher C:\eclipse_JBossIDE2.0.0Beta\eclipse.exe -name Eclipse -showsplash 600 -exitdata 300_78 -clean -vm C:\jdk1.5.0_12\bin\javaw.exe -vmargs -Xmx512m -jar C:\eclipse_JBossIDE2.0.0Beta\startup.jar
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\jdk1.5.0_12
    PATH=C:\jdk1.5.0_12\bin;C:\Program Files\PHP\;C:\Program Files\IronGrid\IronEyeSql;C:\oracle\ora92\bin\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\maven-2.0.5\bin;C:\Program Files\dtSearch Developer\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\cvsnt;C:\Program Files\MySQL\MySQL Server 4.1\bin;C:\apache-ant-1.6.5\bin
    USERNAME=ijordanov
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 10, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 2088172k(1361776k free), swap 4029752k(3409596k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_12-b04) for windows-x86, built on May 2 2007 02:07:59 by "java_re" with MS VC++ 6.0

  • Problems creating MySQL Datasource in OC4J

    I was recently tasked with creating a MySQL datasource in my development OC4J container (running through Eclipse, but that's irrelevant). I searched for and found this page: http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html which tells me how to do this.
    I searched for and found the Datasource class jar file: mysql-connector-java-3.0.17-ga-bin.jar, installing it in the ORACLE_HOME/applib directory of my container.
    I then fired up the container, and accessed the ascontrol app to add the Datasource (via Administration/JDBC options), and ran into a few problems:
    After entering the "Create Datasource" menu, I filled in the appropriate values for the JNDI name, class name of the Datasource, URL of the database, username and password. When I went to test the connection, I received an error that the Datasource class could not be created, yet in the error message it showed me where the Datasource class was (in which jar), so obviously the container knew about the jar.
    After much playing around, I determined that the ascontrol app itself was the issue. In the orion-application.xml file for the ascontrol found in ORACLE_HOME/application-deployments/ascontrol, I found the line:
    <remove-inherited name="global.libraries"/>
    in the <imported-shared-libraries> tag. This essentially means, "ignore everything in the applib directory". It seems, as the instructions in the page above state, you actually have to manually edit the data-sources.xml file in your ORACLE_HOME/config directory in order to add this datasource, as the ascontrol app is unable to do so without loading the library from applib.
    Now, I just commented out this line in the ascontrol's xml file temporarily, and was able to use the ascontrol to add the datasource, but this seems wrong. Now, finally, I can ask my questions:
    1. Is this really the preferred method for adding a MySQL datasource to an OC4J container?
    2. If not, what is?
    3. If so, why is the ascontrol crippled in this fashion, and should it be fixed so it isn't anymore?

    Tank -- we recently discovered this situation with ASC ourselves. There's some history there in that by importing the global.libraries in the past, there has been problems with some libs that ASC itself needed being overridden -- evidently some common practice with a framework we supply was to use the applib directory in this manner, which caused issues for ASC. So the solution was to remove global.libraries from ASC.
    OK so how to solve it, there's a number of options.
    1. Remove the remove-inherited libraries tag from the ASC deployment descriptor as you've identified. I actually have the ASC team checking on whether this is something they want to do in a patch release.
    2. Put the mysql driver into its own installed shared-library, then import that into each app that needs it. And add it to ASC as an imported-shared-library. That way the same code-source is available in each location. I'd have to say this is probably the preferred option at this point.
    3. Put the mysql jar file into both the j2ee/home/applib directory AND the web-inf/lib directory of the so both apps have at it. This introduces an abstract dependency, which may cause issues if you update one but not the other at some future point. But it should work.
    cheers
    -steve-

  • Problem running Page with MySQL DataSource

    Hi All,
    Jdev Version 11.1.1.6.0
    I have created a MYSQL Datasource (Datasource got created successfully and tested). The issue is when I am running a jspx page, I am getting below exception.
    java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection
    I have provided the Class path in Weblogic - Servers - DefaultServer- Server Start tab like C:\Users\jars\Downloads\mysql-connector-java-5.1.25\mysql-connector-java-5.1.25
    But still I am getting this exception. I didn't got any issue when I created a MYSQL connection, and provided Driver Class path.
    Any pointer, what I am missing here.
    Thanks
    AP

    Hi Suresh,
    Thanks for the post. Well there are 2 thing which I require to understand.
    1. We can create MYSQL connection using Jdev and set the classpath which is provided in post. It worked fine.
    2. We can create datasource of MYSQL connection and use it in our Model Project. Here I am struck and giving this exception when running.
    Since it Enterprise Application, creating Datasource is generic way to connecting. I am facing issue after creating datasource. I tried above approaches, but getting exception.
    Can you help me in understand, what is going wrong in step 2.
    Thanks, AP

  • Problem configure mysql datasource

    Hi, I am trying to use mysql datasource for my application. I had configured MYSQL_DRIVER and then
    i had configured gtasappdb datasource with
       driver-class-name = com.mysql.jdbc.Driver
       url               = jdbc:mysql://localhost:3306/appdb
       alias             = appdbdatasource
    And then i tried to deploy a EJB application which uses the above 'appdbdatasource'. When the application starts
    it says cannot find 'gtasappdb' connectionfactory.
    So can anyone tell me what should be done to use mysql for my application, please

    Hello mahesh,
    There are two ways.
    1. You should add a resource reference to the ds alias in the deployment descriptor of the application component.Once you have defined the reference,use the following snippet to access the data source
    DataSource ds = (DataSource) context.lookup("java:comp/env/<res-ref-name>").
    2. If you have not defined the reference in your application, use the JNDI reference "jdbc/alias".
    Hope this helps,
    Prasad

  • Mysql datasource and WebDynpro

    Hello all!
    I'm new at WD and NW features and I'm trying to figure out the best way to access an external Mysql database with webdynpro.
    I already configured an external mysql datasource at NW CE and it's working fine.
    My doubt is about how I'm going to access this datasource in NWDS? Do I need to create a new Dictionary? How does it work? How do I link this datasource with my WebDynpro project?
    And about the persistence? Must I use JPA, EJB? How do I do it?
    Is there any article about this?

    Hi,
    there are already a lot of examples in the forum of how to connect MySql db with the portal.
    Here is a simple solution:
    If you have already created a datasource:
    try {
                   InitialContext initialContext = new InitialContext();
                   DataSource dataSource = (DataSource)initialContext.lookup("jdbc/YOUR_DB_ALIAS");
                   connection= dataSource.getConnection();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    And you must change YOUR_DB_ALIAS with the real alias name. That is all if you have already created a datasource.
    About what to use: you can use whatever you want. This is just a simple example of how to get your db connection. After that you can do whatever you want with it.
    You can write your one db engine if you want:
                            PreparedStatement stmt = connection.prepareStatement("insert into simple_table simple_values(?)");
                   stmt.setString(1, "Hello world");
                   stmt.execute();
    Or you can use JPA, JDO, EJB, etc... It depends only on your decision. All of them will work.

  • Eclipse + Jboss + Lomboz  And Sap Jco

    Hello Friends,
    I am using the Eclipse, Jboss with Lomboz plateform to develop the J2EE application using Sap JCO,
    But when in my servlet i try to establish the connection with SAP R3 it gives me following error!
    HTTP ERROR: 500 com/sap/mw/jco/JCO.
    Note: I have put sapjco.jar to project buildpath and also to the WEB-INF\Lib dir,
    Dont know what is wronge!
    its kind of frustrating for me cause when i try to use some other third party jars (e.g struts) then it works fine,!
    Please help me, if some one has used this env, or please suggest the WORKABLE env, for such kind of development!
    One another thing, with my plain java file, I can connect to the SAP System, and things works pretty well, it just gives me problem in web context(Servlet),
    Many thanks for sharing your comments!
    Marek

    Hallo Kalle,
    Here is the code which I am using,
    JCO.Pool pool = JCO.getClientPoolManager().getPool(POOL_NAME);
    if (pool == null) {
    Properties props = new Properties();
    in = new FileInputStream("C:/Programe/eclipse/workspace/TestProject/de/fhnon/pool/logon.properties");
    props.load(in);
    JCO.addClientPool(POOL_NAME, 5, props);
      mConnection = JCO.getClient(POOL_NAME);
    catch (Exception ex) {
    ex.printStackTrace(out);
    And I am getting this error!
    HTTP ERROR: 500 com/sap/mw/jco/JCO$Pool
    Even I am passing Printwriter in stackTrace, but it wont give me any futher exception!
    PS: and above code segment works just fine with normal java application, it gives me exception in only Web Context!
    Pleas help!!
    Marek
    Message was edited by: Marek Jöricke

  • Eclipse jboss jsp oracle xe connect error

    hi
    i am using eclipse ganymede 342 and my second configuration is:
    jboss as 420 ga
    oracle 10g xe
    windows xp
    jdk15
    when i run my jsp file that contains instructions to connect to oracle 10g xe and query my database i got this error:
    org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 9
    6: <body>
    7: <%
    8: try{
    9: Class.forName("oracle.jdbc.driver.OracleDriver" );
    10: //Class.forName("oracle.jdbc.OracleDriver" );
    11: String url = "jdbc:oracle:thin:@//127.0.0.1:8080:xe";
    12: Connection con = DriverManager.getConnection(url,"system","system" );
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:518)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    javax.servlet.ServletException: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:98)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
         java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         java.lang.Class.forName0(Native Method)
         java.lang.Class.forName(Class.java:164)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:63)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    why?
    thanks for your help.

    hi orafad,
    i try current style db:
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@//localhost/xe","system","system");
    but i get this error:
    exception
    org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 17
    17: Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@//localhost/xe","system","system");
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:518)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    javax.servlet.ServletException: java.lang.NoSuchMethodError: oracle.i18n.text.OraBoot.getCharsetMaxCharLen(Ljava/lang/String;)Ljava/lang/String;
    and then i tried this one:
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:8085:xe","system","system");
    and got this error:
    Error: Erreur d'E/S: The Network Adapter could not establish the connection
    so i think my url connection is good and may be the problem is elsewhere
    thanks for your listening
    ========================
    hi udo,
    i checked the lsnrctl status and this is the result:
    Microsoft Windows XP [version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\xp>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-OCT. -2011 14:02:49
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connexion Ó (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUT du PROCESSUS D'ECOUTE
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Date de dÚpart 06-OCT. -2011 23:04:12
    DurÚe d'activitÚ 0 jours 14 heures 58 min. 36 sec
    Niveau de trace off
    SÚcuritÚ ON: Local OS Authentication
    SNMP OFF
    Service par dÚfaut XE
    Fichier de paramÞtres du processus d'Úcoute C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Fichier journal du processus d'Úcoute C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    RÚcapitulatif d'Úcoute des points d'extrÚmitÚ...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=compaq)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8085))(Presentation=HTTP)(Session=RAW))
    RÚcapitulatif services...
    Le service "CLRExtProc" comporte 1 instance(s).
    L'instance "CLRExtProc", statut UNKNOWN, comporte 1 gestionnaire(s) pour ce service...
    Le service "PLSExtProc" comporte 1 instance(s).
    L'instance "PLSExtProc", statut UNKNOWN, comporte 1 gestionnaire(s) pour ce service...
    Le service "XEXDB" comporte 1 instance(s).
    L'instance "xe", statut READY, comporte 1 gestionnaire(s) pour ce service...
    Le service "XE_XPT" comporte 1 instance(s).
    L'instance "xe", statut READY, comporte 1 gestionnaire(s) pour ce service...
    Le service "xe" comporte 1 instance(s).
    L'instance "xe", statut READY, comporte 1 gestionnaire(s) pour ce service...
    La commande a rÚussi
    however, i want to say that i manually changed the http port for oracle (now port 8085) to avoid conflict with jbossAS which use port 8080 by default
    all changes goes correct
    so i change my url connexion like this:
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@//localhost:1521:xe","system","system");
    and got the same error
    question: it is not a problem to run eclipse jboss oracle express edition in a virtual machine?
    or may be an error inside my jsp page:
    <%@ page language="java" import="java.sql.*" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Employes</title>
    </head>
    <body>
    <%
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@//localhost:8085:xe","system","system");
    System.out.println("Connected sucessfully.<br /><br />\n");
    System.out.println("Return all the employees name.<br />\n");
    String sql = "SELECT ENAME FROM EMP";
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    while (rs.next()) {
         out.println(" ename=" + rs.getString("ename") + "<br />\n");
    stmt.close();
    stmt = null;
    conn.close();
    conn = null;
    out.println("<br />Disconnected sucessfully.<br /><br />\n");
    catch (Exception ex) {
    out.println(" Error: " + ex.getLocalizedMessage() + "<br><br>\n");
    %>
    </body>
    </html>
    thanks for your listening
    ==================================
    NB:
    i work into virtual machine oracle virtualbox with windows xp and my configuration is:
    eclipse
    jboss
    oracle express edition
    jdk

  • MySQL DataSource configuration with JBOSS

    Hi,
    I am using Eclipse with Lomboz and JBOSS as Application Server. I created a CMP Entity Bean and setup my MySQL Database Server including its JDBC Driver. I also configured several files like login-config.xml, standardjbosscmp-jdbc.xml, standardjaws.xml, mysql-service.xml, and
    I got the following error messages when I tried deploying the bean.
    Please help me in resolving this problem so I can continue my study using these tools.
    15:45:09,547 INFO [Server] JBoss (MX MicroKernel) [3.0.7 (CVSTag=JBoss_3_0_7 Date=200304081816)] Started in 0m:47s:418ms
    15:46:34,970 INFO [MainDeployer] Starting deployment of package: file:/C:/JBoss/JBoss/server/default/deploy/mybeans.jar
    15:46:36,392 INFO [EjbModule] Creating
    15:46:36,502 INFO [EjbModule] Deploying TestSession
    15:46:36,652 INFO [EjbModule] Created
    15:46:36,662 INFO [EjbModule] Starting
    15:46:37,033 INFO [EjbModule] Started
    15:46:37,033 INFO [MainDeployer] Deployed package: file:/C:/JBoss/JBoss/server/default/deploy/mybeans.jar
    15:47:33,604 INFO [MainDeployer] Starting deployment of package: file:/C:/JBoss/JBoss/server/default/deploy/myentitybean.jar
    15:47:34,335 INFO [EjbModule] Creating
    15:47:34,395 INFO [EjbModule] Deploying Address
    15:47:35,177 INFO [EjbModule] Created
    15:47:35,177 INFO [EjbModule] Starting
    15:47:41,135 ERROR [MainDeployer] could not start deployment: file:/C:/JBoss/JBoss/server/default/deploy/myentitybean.jar
    java.lang.NoClassDefFoundError: org/jboss/proxy/compiler/Proxies$ProxyTarget
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
         at org.jboss.proxy.compiler.Runtime.makeProxyType(Runtime.java:68)
         at org.jboss.proxy.compiler.ProxyCompiler.<init>(ProxyCompiler.java:76)
         at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:580)
         at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:77)
         at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
         at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.<init>(JDBCCreateBeanClassInstanceCommand.java:52)
         at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:97)
         at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:436)
         at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:369)
         at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
         at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
         at org.jboss.ejb.Container.invoke(Container.java:782)
         at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
         at $Proxy4.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:413)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
         at $Proxy26.start(Unknown Source)
         at org.jboss.ejb.EjbModule.startService(EjbModule.java:404)
         at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
         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:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
         at $Proxy4.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:413)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
         at $Proxy10.start(Unknown Source)
         at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:395)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
         at $Proxy3.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:217)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:230)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:207)
    15:47:41,175 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@b1c4d3ce{ url=file:/C:/JBoss/JBoss/server/default/deploy/myentitybean.jar, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: Could not create deployment: file:/C:/JBoss/JBoss/server/default/deploy/myentitybean.jar; - nested throwable: (java.lang.NoClassDefFoundError: org/jboss/proxy/compiler/Proxies$ProxyTarget)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:835)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
         at $Proxy3.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:217)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:230)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:207)
    Caused by: java.lang.NoClassDefFoundError: org/jboss/proxy/compiler/Proxies$ProxyTarget
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
         at org.jboss.proxy.compiler.Runtime.makeProxyType(Runtime.java:68)
         at org.jboss.proxy.compiler.ProxyCompiler.<init>(ProxyCompiler.java:76)
         at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:580)
         at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:77)
         at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
         at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.<init>(JDBCCreateBeanClassInstanceCommand.java:52)
         at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:97)
         at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:436)
         at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:369)
         at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
         at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
         at org.jboss.ejb.Container.invoke(Container.java:782)
         at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
         at $Proxy4.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:413)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
         at $Proxy26.start(Unknown Source)
         at org.jboss.ejb.EjbModule.startService(EjbModule.java:404)
         at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
         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:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
         at $Proxy4.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:413)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
         at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
         at $Proxy10.start(Unknown Source)
         at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:395)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
         ... 15 more
    //==================end of Error message ========================?
    This is how I configured mysql-service.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- ===================================================================== -->
    <!-- -->
    <!-- JBoss Server Configuration -->
    <!-- -->
    <!-- ===================================================================== -->
    <server>
    <!-- ==================================================================== -->
    <!-- New ConnectionManager setup for mysql using 2.0.11 driver -->
    <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
    <!-- ==================================================================== -->
    <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager"
         name="jboss.jca:service=LocalTxCM,name=MySqlDS">
    <!-- //ABD: 05.22.2003 => Commented.
         Include a login module configuration named MySqlDbRealm.
    Update your login-conf.xml, here is an example for a
    ConfiguredIdentityLoginModule:
    <application-policy name = "MySqlDbRealm">
    <authentication>
    <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
    <module-option name = "principal">root</module-option>
    <module-option name = "userName">root</module-option>
    <module-option name = "password"></module-option>
    <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MySqlDS</module-option>
    </login-module>
    </authentication>
    </application-policy>
    -->
    <!-- //ABD: Commented.
    NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the
    module-option name = "managedConnectionFactoryName"
    must match the object name of the ConnectionManager you are configuring here.
    -->
    <!-- ABD: Uncommented. uncomment out this line if you are using the MySqlDbRealm above -->
    <attribute name="SecurityDomainJndiName">MySqlDbRealm</attribute>
    <depends optional-attribute-name="ManagedConnectionFactoryName">
    <!--embedded mbean-->
    <mbean code="org.jboss.resource.connectionmanager.RARDeployment"
         name="jboss.jca:service=LocalTxDS,name=MySqlDS">
    <attribute name="JndiName">MySqlDS</attribute>
    <attribute name="ManagedConnectionFactoryProperties">
    <properties>
    <config-property name="ConnectionURL" type="java.lang.String">jdbc:mysql://localhost:3306/test</config-property>
    <config-property name="DriverClass" type="java.lang.String">com.mysql.jdbc.Driver</config-property>
    <!--set these only if you want only default logins, not through JAAS -->
    <config-property name="UserName" type="java.lang.String">root</config-property>
    <config-property name="Password" type="java.lang.String"></config-property>
    </properties>
    </attribute>
    <!--Below here are advanced properties -->
    <!--hack-->
    <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>
    </mbean>
    </depends>
    <depends optional-attribute-name="ManagedConnectionPool">
    <!--embedded mbean-->
    <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
    name="jboss.jca:service=LocalTxPool,name=MySqlDS">
    <attribute name="MinSize">0</attribute>
    <attribute name="MaxSize">50</attribute>
    <attribute name="BlockingTimeoutMillis">5000</attribute>
    <attribute name="IdleTimeoutMinutes">15</attribute>
    <!--criteria indicates if Subject (from security domain) or app supplied
    parameters (such as from getConnection(user, pw)) are used to distinguish
    connections in the pool. Choices are
    ByContainerAndApplication (use both),
    ByContainer (use Subject),
    ByApplication (use app supplied params only),
    ByNothing (all connections are equivalent, usually if adapter supports
    reauthentication)-->
    <attribute name="Criteria">ByContainer</attribute>
    </mbean>
    </depends>
    <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
    <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
    <attribute name="TransactionManager">java:/TransactionManager</attribute>
    <!--make the rar deploy! hack till better deployment-->
    <depends>jboss.jca:service=RARDeployer</depends>
    </mbean>
    </server>

    Did you compile your bean with the same JDK which is used for JBoss ?

  • Lookup a MySQL Datasource with a EntityBean EJB with jboss

    Hy all,
    For a few days, i have problems to instance a datasource from my Entitybean
    EJB
    jboss release is 3.2.2 , MySQL 3.23.38
    i use mysql-connector-java-3.0.9-stable-bin.jar for jdbc connectivity
    Here is the source of my datasource mysql-ds.xml
    <datasources>
    <local-tx-datasource>
    <jndi-name>MySQLmydbDS</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/mydb</connection-url>
    <driver-class>org.gjt.mm.mysql.Driver</driver-class>
    <user-name>mylogin</user-name>
    <password>mypass</password>
    </local-tx-datasource>
    </datasources>
    The datasource is deployed in jboss cause i see the ligne as followed in the
    administration console
    http://localhost:8080/jmx-console
    a.. name=MySQLmydbDS,service=LocalTxCM
    a.. name=MySQLmydbDS,service=ManagedConnectionFactory
    a.. name=MySQLmydbDS,service=ManagedConnectionPool
    My EJB deploy without problems when i put the jar in the deploy directory
    Here is the part of the source of my EJB causing Exception
    public void setEntityContext(EntityContext context) {
    this.context = context;
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/ClientDB");
    /* ----> ERROR */
    connexionBD = ds.getConnection();
    catch (Exception e) {
    throw new EJBException("Connexion � la base de donn�es impossible : "
    + e.getMessage());
    Here my ejb-jar.xml
    <ejb-jar>
    <description>Descripteur de d�ploiement pour l'EJB client</description>
    <display-name>EJB Client</display-name>
    <enterprise-beans>
    <entity>
    <description>EJB Client ( BMP )</description>
    <ejb-name>Client</ejb-name>
    <home>com.foobar.ejbs.ClientHome</home>
    <remote>com.foobar.ejbs.Client</remote>
    <ejb-class>com.foobar.ejbs.ClientBean</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <resource-ref>
    <res-ref-name>jdbc/ClientDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>Client</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    And finally the jboss.xml
    <jboss>
    <enterprise-beans>
    <entity>
    <ejb-name>Client</ejb-name>
    <jndi-name>ejb/Client</jndi-name>
    <resource-ref>
    <res-ref-name>jdbc/ClientDB</res-ref-name>
    <jndi-name>MySQLmydbDS</jndi-name>
    </resource-ref>
    </entity>
    </enterprise-beans>
    </jboss>
    The error message when i execute my client :
    java.rmi.ServerException : RemoteException occured in server Thread; nested
    exception is :
    java.rmi.ServerException: EJBException:; nested exception is :
    javax.ejb.EJBException: Connexion � la base de donn�e impossible : Could not
    dereference object
    Thanks in advance if you've already seen this problem.
    Antoine

    I uses MSSQLERVER 2000,<res-ref-name>jdbc/MSSQLDS</res-ref-name>
    <jndi-name>java:/java:/MSSQLDS</jndi-name>
    but DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/MSSQLDS")cann't be execute throwing execption:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.ServerException: RuntimeException; nested exception is:
         java.lang.NullPointerException
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
         at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
         at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
         at $Proxy1.loginUser(Unknown Source)
         at au.com.tusc.client.SessionBMPClient.testBean(SessionBMPClient.java:55)
         at au.com.tusc.client.SessionBMPClient.main(SessionBMPClient.java:77)
    Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
         java.lang.NullPointerException
         at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:361)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:700)
         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:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
         at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
         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:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NullPointerException
         at au.com.tusc.dao.StoreAccessDAOImpl.loginUser(StoreAccessDAOImpl.java:82)
         at au.com.tusc.session.StoreAccessSession.loginUser(StoreAccessSession.java:60)
         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:324)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
         ... 21 more
    you said:"Also, when you get a change I believe it recommended that the name and password are placed in the login-config.xml ".
    How where to set up name and password in the login-config.xml .
    additionally,i uses jboss3.2.3,on the jmx-console management,i cann't find "jboss;service=Hypersonic SQL",why?

  • JBOSS jndi Datasource: jdbc not bound

    Im adding an jndi Datasource to JBOSS 4.0.2.
    1. i copied jdbc driver to JBOSS_HOME/server/default/lib.
    2. i copied following ds.xml to JBOSS_HOME/server/default/deploy (its based ony the mysql-ds.xml from the samples)
    <?xml version="1.0" encoding="UTF-8"?>
    <datasources>
      <local-tx-datasource>
        <jndi-name>jndi-name</jndi-name>
        <connection-url>jdbc:mysql://localhost:3306/databasename</connection-url>
        <driver-class>org.gjt.mm.mysql.Driver</driver-class>
        <user-name>username</user-name>
        <password>password</password>
        <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
        <!-- sql to call when connection is created
        <new-connection-sql>some arbitrary sql</new-connection-sql>
          -->
        <!-- sql to call on an existing pooled connection when it is obtained from pool
        <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
          -->
        <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
        <metadata>
           <type-mapping>mySQL</type-mapping>
        </metadata>
      </local-tx-datasource>
    </datasources>I look this up using java:jndi-name. Works perfect.
    For compatibility with other containers, i want to move my jndi-datasource to java:comp/env/jdbc/jndi-name
    So i change my ds-description:
    <?xml version="1.0" encoding="UTF-8"?>
    <datasources>
      <local-tx-datasource>
        <jndi-name>comp/env/jdbc/jndi-name</jndi-name>
        <connection-url>jdbc:mysql://localhost:3306/databasename</connection-url>
        <driver-class>org.gjt.mm.mysql.Driver</driver-class>
        <user-name>username</user-name>
        <password>password</password>
        <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
        <!-- sql to call when connection is created
        <new-connection-sql>some arbitrary sql</new-connection-sql>
          -->
        <!-- sql to call on an existing pooled connection when it is obtained from pool
        <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
          -->
        <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
        <metadata>
           <type-mapping>mySQL</type-mapping>
        </metadata>
      </local-tx-datasource>
    </datasources>Looking this up with java:comp/env/jdbc/jndi-name leads to Could not find datasource: java:comp/env/jdbc/jndi-name
    javax.naming.NameNotFoundException: jdbc not bound
    Some lines above jboss prints:
    [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=comp/env/jdbc/jndi-name,service=DataSourceBinding to JNDI name 'java:comp/env/jdbc/jndi-name
    Please can somebody explain what the problem is about binding a datasource somewhere else than directly to "java:"

    In web.xml making the following entry:
    <web-app>
    <description>MySQL Test App</description>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/test</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    Next, add a file jboss-web.xml under WEB-INF/ folder of the web-application. This file should contain entry as:
    <jboss-web>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/test</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <jndi-name>java:/jdbc/test</jndi-name>
    <res-auth>Container</res-auth>
    </resource-ref>
    </jboss-web>
    Next, in JBOSS_HOME/server/default/deploy folder make a xx-ds.xml file or else, a similiar file can be found in that same folder with the name hsqldb-ds.xml. Make following entries in that xml file:
    <datasources>
    <local-tx-datasource>
    <jndi-name>/jdbc/test</jndi-name>
    <type-mapping>MySQL</type-mapping>
    <connection-url>jdbc:mysql://localhost:3306/shopping_cart</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>root</user-name>
    <password>root123</password>
    <min-pool-size>1</min-pool-size>
    <max-pool-size>5</max-pool-size>
    </local-tx-datasource>
    This should bind the jndi name.
    In our client application, we need to look up as:
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:/jdbc/test");
    Connection conn = ds.getConnection();
    This works perfectly.

  • CF8 with JBoss JNDI datasource

    After installing and configuring a CF8 for J2EE running on
    JBoss 4.2.2.GA with Java 6, I have created a JNDI datasource for
    Oracle 10g in the oracle-ds.xml file. I have configured a CF8
    datasource that uses the JNDI resource.
    Any query that is NOT using cfqueryparam works quite well.
    As soon as cfqueryparam is used, I get an "Error casting an
    object of type org.jboss.resource.adapter.jdbc.WrappedConnection
    cannot be cast to coldfusion.server.j2ee.sql.JRunConnectionHandle
    to an incompatible type.".
    The configuration and the exception is pretty much the same
    as described in
    Problem
    description.
    This is clearly a CF8 bug and I was wondering if there is any
    known workaround for it.

    In web.xml making the following entry:
    <web-app>
    <description>MySQL Test App</description>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/test</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    Next, add a file jboss-web.xml under WEB-INF/ folder of the web-application. This file should contain entry as:
    <jboss-web>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/test</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <jndi-name>java:/jdbc/test</jndi-name>
    <res-auth>Container</res-auth>
    </resource-ref>
    </jboss-web>
    Next, in JBOSS_HOME/server/default/deploy folder make a xx-ds.xml file or else, a similiar file can be found in that same folder with the name hsqldb-ds.xml. Make following entries in that xml file:
    <datasources>
    <local-tx-datasource>
    <jndi-name>/jdbc/test</jndi-name>
    <type-mapping>MySQL</type-mapping>
    <connection-url>jdbc:mysql://localhost:3306/shopping_cart</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>root</user-name>
    <password>root123</password>
    <min-pool-size>1</min-pool-size>
    <max-pool-size>5</max-pool-size>
    </local-tx-datasource>
    This should bind the jndi name.
    In our client application, we need to look up as:
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:/jdbc/test");
    Connection conn = ds.getConnection();
    This works perfectly.

  • [Eclipse&JBoss] JBoss doesn't start

    Hi there.
    I encountered a problem in starting JBoss with Eclipse. The strange thing is that I have the same configuration on my laptop and it works. On this second computer it doesn't work and I can't understand why.
    Here my configuration:
    - Eclipse Galileo
    - JDK 1.6
    - JBoss 5.0.0 for jdk6
    I inserted JBoss as a server in Eclipse and then I launched my Enterprise Application in there. The server starts correctly, in more or less 20 seconds. Then I find in the console something like:
    +22:32:07,937 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 23s:111ms+
    It could make me think that JBoss actually started, because there aren't errors. But Eclipse doesn't recognise it, and the bar in the right corner says "Starting JBoss..." since it goes in timeout.
    I found a post in this forum that says to change the timeout, or to replace JBoss with a new copy, or to do the same thing with Eclipse. I have done all these things, pushing the timeout to 1000 seconds, deleting the JBoss folder and replacing it, and deleting the Eclipse folder (but not the workspace). Still getting the same error. And I can't understand why.
    It's weird because I would expect to find an error in the console, but it's error free...
    Could anyone help me? I would be very very grateful!!
    Thank you for your attention.
    Eleanore
    Edited by: Eleanore on May 31, 2010 2:06 PM

    you may want to install jboss-tools.
    [http://www.jboss.org/tools|http://www.jboss.org/tools]
    Among a pile of other helper plugins, it has JbossAS tools. Using the server runtime setup from JBoss Tools, I've never had any problems with any version of JBoss.
    btw: Jboss 5.0 was fairly broken; I would consider upgrading to JBoss 5.1-jdk6 which is far more stable.

  • Setup MySQL datasource for Sun ONE Studio

    Hello all,
    I've tried to post this message on the Sun ONE studio forum, however, there were compilation errors with JSP pages. As I needed the answer urgently, I decided to get some help here.
    I've successfully made connection to MySQL database during the CMP development. However, when I tried to run it, it said the JNDI Datasource can't be blank and provide username & password if necessary. I went back and gave it a name as jdbc/MySQL, and also provided the username & password. I then reran the app, and I got the following error
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Unable to get JDBC DataSource for CMP ....
    I've mounted the mysql.jar and hacked some other things to no success. Please help.
    Thanks & regards,
    Thinh

    Hi,
    Try validating your data source using
    http://developer.iplanet.com/tech/tools/dbping_overview.jsp
    Get back in case of any issues

  • Problem with Database Initialization when using Configuration Manager (ubuntu-jboss-mysql)

    Hello,
    When I try to initialize the database using Configuration Manager, the following error occurs:
    ALC-TTN-002-001: JDBC datasource lookup failed for resource reference [java:comp/env/jdbc/
    IdpDs]. The most likely cause is that a datasource having a JNDI
    name of [IDP_DS] does not exist or is misconfigured. Check the application
    server's configuration.
    I DO have an IDP_DS datasource configured in jboss. I carefully followed the Jboss configuration instructions, so I don't really understand which is the issue here.
    Anyone encountered a similar problem? Any help?
    Many thanks in advance,
    Artur

    Data source files have to end with ds.xml and should be copied to the /deploy folder of your JBoss configuration (all) for them to be picked up by JBoss.
    If the file was edited in Windows, make sure it does not contain DOS characters. Ubuntu Linux is not a supported LiveCycle OS platform currently. Only Red Hat Enterprise and SUSE Enterprise are.

Maybe you are looking for

  • Can't watch videos or see apps that use flash, or silverlight

    I just got this iPod Touch today, why can't i watch or see anything that uses flash, or silverlight Is there anyway to watch or see flash, and silverlight using iPod Touch? Thanks!

  • Alert Configuration Link error

    We have done the ALERT configuration.After which we get a link as shown below through e-mail.. http://hostname:port/rwb_mdt/index.jsp?rwb=true&objectName=name=is.01.uctvt701,type=XIServerEngine&messageid=24F2553025E611DD829B0016357312D2 The problem i

  • OracleOraHome90Agent

    i want to start Enterprise Manager Configuration Assistant, before that i want to start OracleOraHome90Agent Service. when i start this service, i received the error message :could not start the OracleOraHome90Agent service on local computer. The ser

  • Download file of size 3GB failing with error

    Hi all, I have created an asp.net web application and created azure storage account and saved a block blob of size 3GB. Now I want to download this file of size 3GB but getting error that "Connection was closed". There is no problem on network in my

  • Para comprar el iphone 4S

    Para comprar el iphone 4S: sin plan cuanto cuesta