org/dom4j/DocumentException

P

PeterLongstaff

I get the following error when I try and access a web service in apache
from a csharp application:

System.Web.Services.Protocols.SoapException was unhandled
Message="java.lang.NoClassDefFoundError: org/dom4j/DocumentException"
Source="System.Web.Services"
Actor=""
Lang=""
Node=""
Role=""
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
(SoapClientMessage message, WebResponse response, Stream responseStream,
Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
(String methodName, Object[] parameters)
at IRISServiceTesting.IRIS.IRIS.greeting(String name) in D:
\SourceCode\dotnet\Testing\IRISServiceTesting\IRISServiceTesting\Web
References\IRIS\Reference.cs:line 156
at IRISServiceTesting.frmMain.btnUser_Click(Object sender, EventArgs
e) in D:\SourceCode\dotnet\Testing\IRISServiceTesting\IRISServiceTesting
\frmMain.cs:line 35
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage
(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&
msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Unsa
feNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID,
Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop
(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at IRISServiceTesting.Program.Main() in D:\SourceCode\dotnet\Testing
\IRISServiceTesting\IRISServiceTesting\Program.cs:line 14
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

The method takes a string and returns a string.

Can anyone help me with this?

TIA
Peter
 
N

Nicholas Paldino [.NET/C# MVP]

It looks like an error on the server side, that whatever you are calling
is trying to access a calss that can't be found:

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NoClassDefFoundError.html

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

"PeterLongstaff"
I get the following error when I try and access a web service in apache
from a csharp application:

System.Web.Services.Protocols.SoapException was unhandled
Message="java.lang.NoClassDefFoundError: org/dom4j/DocumentException"
Source="System.Web.Services"
Actor=""
Lang=""
Node=""
Role=""
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
(SoapClientMessage message, WebResponse response, Stream responseStream,
Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
(String methodName, Object[] parameters)
at IRISServiceTesting.IRIS.IRIS.greeting(String name) in D:
\SourceCode\dotnet\Testing\IRISServiceTesting\IRISServiceTesting\Web
References\IRIS\Reference.cs:line 156
at IRISServiceTesting.frmMain.btnUser_Click(Object sender, EventArgs
e) in D:\SourceCode\dotnet\Testing\IRISServiceTesting\IRISServiceTesting
\frmMain.cs:line 35
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage
(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&
msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Unsa
feNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID,
Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop
(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at IRISServiceTesting.Program.Main() in D:\SourceCode\dotnet\Testing
\IRISServiceTesting\IRISServiceTesting\Program.cs:line 14
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

The method takes a string and returns a string.

Can anyone help me with this?

TIA
Peter
 
J

Jon Skeet [C# MVP]

<PeterLongstaff <no_psam_peter_dot_longstaff_at_accris-
software_dot_co_dot_uk> said:
I get the following error when I try and access a web service in apache
from a csharp application:

Looks like the server side can't find dom4j.jar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top