[JBoss Eclipse IDE (users)] - Error Starting JBoss server from JBoss IDE, newbee needs hel
by LJBiker
I am running eclispe version 3.2.1 and JBoss IDE version 2.0.0 Beta 2 which appears to be the only JBOSS IDE for eclipse compatable with Eclipse 3.2.1
Any help would be appreciated.
The error log follow:
eclipse.buildId=M20060629-1905
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
Error
Wed Oct 25 12:22:27 EDT 2006
Error logged from Debug Core:
java.lang.NullPointerException
at org.jboss.ide.eclipse.as.ui.viewproviders.EventLogViewProvider.logChanged(EventLogViewProvider.java:283)
at org.jboss.ide.eclipse.as.core.model.ServerProcessModel.processModelChanged(ServerProcessModel.java:166)
at org.jboss.ide.eclipse.as.core.model.ServerProcessLog$ProcessLogEventRoot.branchChanged(ServerProcessLog.java:167)
at org.jboss.ide.eclipse.as.core.model.ServerProcessModel$ServerConsoleLogger.streamAppended(ServerProcessModel.java:472)
at org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.run(OutputStreamMonitor.java:244)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.notifyAppend(OutputStreamMonitor.java:254)
at org.eclipse.debug.internal.core.OutputStreamMonitor.fireStreamAppended(OutputStreamMonitor.java:110)
at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:145)
at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:128)
at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:194)
at java.lang.Thread.run(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980753#3980753
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980753
19 years, 6 months
[Management, JMX/JBoss] - persist & auto-restart mbean
by cnsxxx09
Hi,
How can I persist my mbean's attributes and also get them to restart when JBoss restarts?
I'm *not* physically creating my MBeans and dropping them into the deploy/ directory.
Instead I'm dynamically creating one-to-many instances of the same MBean, as follows:
MyClass mBean = new myClass();
ObjectName objectName = new ObjectName("myserver.com:job=MyJob,id=" + myUniqueId);
server.registerMBean(mBean, objectName);
I schedule them (via Quartz web app) so I can have many instances in parallel.
I've seen that you need to change parameters in your descriptor files to make MBeans persistent - but as I create them dynamically I don't have descriptors.
Can someone point me to any examples of how to do this?
Similarly, when I restart JBoss (e.g. if my server crashes) my MBeans no longer exist. Is there any way to register them (as above) but telling JBoss to persist their existence?
Many thanks in advance!
Chris
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980751#3980751
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980751
19 years, 6 months
[JBossWS] - Re: jws & visual b. soapsdk3.0, namespaces. JAXRPCException:
by delkant
I'm using jbossws 1.0.2 but i also made some test with 1.0.3, and still have the same problem, but wasn't a jbossws problem, i solve it using the low level soapsdk way, making line by line my own soap archive in visual b.
|
| Option Explicit
| Dim URL
| Const ENC = "http://schemas.xmlsoap.org/soap/encoding/"
| Const XSI = "http://www.w3.org/1999/XMLSchema-instance"
| Const XSD = "http://www.w3.org/1999/XMLSchema"
| Const NS = "http://localhost/eset/py/ServiceWS"
| Dim Method
| Dim Connector
| Dim Serializer
|
| Function init(aParameters, aValues) As String
| Dim URI
| URL = Parametros.SERVER_HOST & "/eset/ServiceWS?wsdl"
| Set Connector = CreateObject("MSSOAP.HttpConnector30")
| Set Serializer = CreateObject("MSSOAP.SoapSerializer30")
|
| Dim Reader
| Set Reader = CreateObject("MSSOAP.SoapReader30")
| URI = NS
| Connector.Property("EndPointURL") = URL
| Connector.Property("SoapAction") = Method
| Call Connector.Connect
| Call Connector.BeginMessage
| Serializer.init Connector.InputStream
| Serializer.StartEnvelope "soapenv", ENC
| Serializer.SoapNamespace "xsi", XSI
| Serializer.SoapNamespace "xsd", XSD
| Serializer.StartBody "soapenv"
| Serializer.startElement Method
| Serializer.SoapAttribute "xmlns", "", NS, ""
|
| Dim iCount
| iCount = 0
| Dim sP
|
| For Each sP In aParameters
| WriteElement sP, aValues(iCount)
| 'MsgBox(sP & ":" & aValues(iCount))
| iCount = iCount + 1
| Next
|
| Serializer.endElement
| Serializer.EndBody
| Serializer.EndEnvelope
| Connector.EndMessage
| Reader.Load Connector.OutputStream
| If Not Reader.Fault Is Nothing Then
| MsgBox Reader.faultstring.Text, vbExclamation
| Else
| 'Response is in Reader.DOM - just parse it
| 'Reader.RPCResult.XML
| init = Reader.RPCResult.Text
| End If
| End Function
|
|
| Sub WriteElement(sName, sValue)
| 'MsgBox(sName & ":" & sValue)
| Serializer.startElement sName
| 'Serializer.SoapAttribute "type", , "xsd:string", "xsi"
| Serializer.SoapAttribute "xmlns", "", "", ""
| Serializer.WriteString sValue
| Serializer.endElement
| End Sub
|
|
|
| Public Function aSpecifMethod(pamam1 As String, param2 As String) As String
| Dim result
| Dim aParameters
| Dim aValues
| '(sName, sValue)
| Method = "aSpecifMethod"
| aParameters = Array("String_1", "String_2")
| aValues = Array(param1, param2)
| aSpecifMethod = init(aParameters, aValues)
|
| End Function
|
|
|
this code works fine on visual basic.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980746#3980746
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980746
19 years, 6 months