SGML Error #ResourceNotAvailable: when deploying web service

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

SGML Error #ResourceNotAvailable: when deploying web service

Postby maheshmanoharan » Fri Oct 23, 2009 3:46 pm

Hello,

Has anyone come across the below issue when deploying a web service created in VA Smalltalk in a webservice-container on port 9999 on localhost. The deployment descriptor file that was deployed is placed in the directory specified by the key DefaultResourceQualifier located in the abt.ini file, but still i am getting ResourceNotAvailable error. I have been trying to resolve this issue but so far no luck, has anyone come across this, and successfully gotten rid of it?

aContainer deploy: 'http://localhost:9999/SstWSInsurancePolicyInterface.xml'
==>
"ExceptionalEvent>>#signalWith:
receiver = Exception: An error occurred during web service deployment.
arg1 = SstUnknownError((SGML Error #ResourceNotAvailable: 'Resource could not be accessed."

Thanks,
Mahesh
maheshmanoharan
 
Posts: 2
Joined: Fri Oct 23, 2009 3:37 pm

Re: SGML Error #ResourceNotAvailable: when deploying web service

Postby tc » Fri Oct 23, 2009 5:42 pm

Hello,

'Resource not available' means one of the xml files needed is not accessible. In other words, the link will not resolve properly and the file is not found.

Assuming a web server is running on your machine, at address 'localhost', port 9999, you should be able to enter the URL 'http://localhost:9999/SstWSInsurancePolicyInterface.xml' in a browser and see the XML. If the browser says, 'file not found' then that is the issue and you need to check your setup/configuration.

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC

Re: SGML Error #ResourceNotAvailable: when deploying web service

Postby Rakesh » Sat Oct 24, 2009 8:03 am

Unfortunately, the exception occurs right after starting up the SST server, but during the deployment of the the xml file at the specified URL. The application exits on exception.

This seems to occur on one specific machine. Other installations have not caused any issues till date.

We start up the SST server first and then deploy the xml. Snippet below:

ourHttpServer startup.
aContainer := SstWSContainer createContainerNamed: (SciSocketManager default getHostName)
using: SstWSContainerConfiguration defaultConfiguration.
aContainer startUp.
aServiceCollection := aContainer
deploy: ('http://', (SciSocketManager default getHostName), ':', aPort asString, '/ApplicationServerRequestExecutor.xml')


Relevant stack below:
=====================
ExceptionalEvent>>#signalWith:
receiver = Exception: SGML exception
arg1 = SGML Error #ResourceNotAvailable: 'Resource could not be accessed. PublicId=''http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'' SystemId=''http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'''
SgmlSyntaxError>>#signalException
receiver = SGML Error #ResourceNotAvailable: 'Resource could not be accessed. PublicId=''http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'' SystemId=''http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'''
AbtXmlResourceReader>>#resolveEntity:systemId:baseURI:
receiver = an AbtXmlResourceReader
arg1 = nil
arg2 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
arg3 = nil
temp1 = nil
temp2 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
SstWsdlSaxHandler(AbtXmlMappedContentHandler)>>#resolveEntity:systemId:
receiver = a SstWsdlSaxHandler
arg1 = nil
arg2 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
AbtXmlMappingParser(AbtXmlSaxParser)>>#resolveEntity:systemId:
receiver = an AbtXmlMappingParser
arg1 = nil
arg2 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
[] in AbtXmlMappingParser>>#parseURI:
receiver = an AbtXmlMappingParser
arg1 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
temp1 = nil
EsCompactBlockContextTemplate(Block)>>#valueWithErrorHandler:oldHandler:onReturnDo:
receiver = [] in AbtXmlMappingParser>>#parseURI:
arg1 = [] in Block>>#when:do:exitWith:retryReturn:
arg2 = nil
arg3 = []
EsCompactBlockContextTemplate(Block)>>#when:do:exitWith:retryReturn:
receiver = [] in AbtXmlMappingParser>>#parseURI:
arg1 = an ExceptionalEventCollection
arg2 = [] in AbtXmlDeserializationConfiguration class>>#newWsdlConfiguration
arg3 = [] in Block>>#when:do:
arg4 = an Object
temp1 = [] in Block>>#when:do:exitWith:retryReturn:
temp2 = [] in Block>>#when:do:exitWith:retryReturn:
temp3 = nil
EsCompactBlockContextTemplate(Block)>>#when:do:
receiver = [] in AbtXmlMappingParser>>#parseURI:
arg1 = an ExceptionalEventCollection
arg2 = [] in AbtXmlDeserializationConfiguration class>>#newWsdlConfiguration
temp1 = an Object
temp2 = nil
AbtXmlMappingParser>>#applyErrorHandlerWhile:
receiver = an AbtXmlMappingParser
arg1 = [] in AbtXmlMappingParser>>#parseURI:
temp1 = an AbtXmlDeserializationConfiguration
AbtXmlMappingParser>>#parseURI:
receiver = an AbtXmlMappingParser
arg1 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
temp1 = nil
SstWSVastServicesDeploymentDescriptorStrategy>>#buildDeploymentObjectFrom:
receiver = a SstWSVastServicesDeploymentDescriptorStrategy
arg1 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
SstWSVastServicesDeploymentDescriptorStrategy(SstWSVastDeploymentDescriptorStrategy)>>#deploymentDescriptorFrom:
receiver = a SstWSVastServicesDeploymentDescriptorStrategy
arg1 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
temp1 = nil
SstWSVastServicesDeploymentDescriptorStrategy>>#createDeploymentDescriptor:
receiver = a SstWSVastServicesDeploymentDescriptorStrategy
arg1 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
SstWSVastServicesDeploymentDescriptorStrategy>>#deploy:into:
receiver = a SstWSVastServicesDeploymentDescriptorStrategy
arg1 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
arg2 = a SstWSContainer (MYNAMEDHOST)
temp1 = nil
temp2 = nil
temp3 = nil
temp4 = nil
SstWSDeploymentManager>>#deploy:
receiver = a SstWSDeploymentManager
arg1 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
SstWSContainer>>#deploy:
receiver = a SstWSContainer (MYNAMEDHOST)
arg1 = 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'
OurApplicationServer>>#startupSST:xmlPath:
========================
Rakesh
 
Posts: 5
Joined: Thu Oct 22, 2009 12:20 pm

Re: SGML Error #ResourceNotAvailable: when deploying web service

Postby tc » Sat Oct 24, 2009 11:42 am

Hello,

Unfortunately, the exception occurs right after starting up the SST server

If the error occurs when the server is started then something is wrong. You need to check your configuration.

. . . or is the error occurring during deployment?

http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml

That is the resource not found. You will have to check the host file and see what 'mynamedhost' is set to or should that be 'localhost? As mentioned before, if the server will not run then that resource will never be found. With the server running, you should be able to enter that URL in a browser and see the XML file. If the browser reports a problem then things have not been setup properly.

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC

Re: SGML Error #ResourceNotAvailable: when deploying web service

Postby maheshmanoharan » Mon Oct 26, 2009 7:02 am

The error is occuring during deployment.

SstHttpServerExample runAt: 'http://:9999' in: 'C:\Vast75\xml\'. --> Http server succesfully started.

aServiceCollection := aContainer
deploy: ('http://', (SciSocketManager default getHostName), ':', aPort asString, '/ApplicationServerRequestExecutor.xml') ==> The exception seems to be occuring at this point when deploying the xml.

As Rakesh had mentioned, the problem seems to occur on one specific machine. Other installations have not caused any issues till date.
maheshmanoharan
 
Posts: 2
Joined: Fri Oct 23, 2009 3:37 pm

Re: SGML Error #ResourceNotAvailable: when deploying web service

Postby tc » Tue Oct 27, 2009 1:04 pm

Hello,

The walkback can not find the resource 'http://MYNAMEDHOST:9999/ApplicationServerRequestExecutor.xml'. It seems to me that 'myhostname' should be 'localhost'. However, if 'myhostname' is correct then you need to check the host file on the machine with the problem and make sure there is an entry for it.

The only test that needs to be done is start the ST web server and enter the above url in the address text box of your browser. If the web browser reports a problem and/or you do not see the xml then the host file is not set or the machine has another configuration issue.

If you see the XML in the browser then the next step is to try and deploy the server example.

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest