Spring integration

Hi,

Environment Details:

  1. Windows XP

  2. Eclipse 3.2.0

  3. Tomcat 5.5

  4. Java build 1.5.0_08-b03

  5. smartclient SDK - SmartClient_60_Evaluation

  6. I tried to execute the “HelloWorld” - Spring integration example that came along with the smartclientSDK. It worked using the enbedded Tomcat!

  7. Next, I created a new Web Application and deployed the same on a stand alone tomcat server. The context root for this new web app is named as “smartclient”. I copied the isomorphic and shared directories to the root. I’m using the same web.xml as in the Smartclient SDK. Same set of libraries as in WEB-INF/lib in SDK. I also followed the steps detailed in Deploying SmartClient chapter in SmartClient Reference.

The HelloWorld - Spring integration example fails to work successfully in this new web application deployed on Tomcat. Following are the details that I see on the server console.

A popup with the following error message:

Transport error - HTTP code:404 for URL:
http://localhost:8080/smartclient/isomorphic/IDACall

Could you please help in resolving this issue? It is critical to take this pilot to a success.

Thanks!
Milan

Server console, trace information follows:

Spring integration

INFO: Starting Servlet Engine: Apache Tomcat/5.5.17

INFO ISCInit - Isomorphic SmartClient Framework - Initializing
INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH
ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/D:/workspace/SmartClient/WebContent/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
INFO ConfigLoader - Attempting to load project.properties from CLASSPATH
INFO ConfigLoader - Unable to locate project.properties in CLASSPATH
INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/D:/workspace/SmartClient/WebContent/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
INFO ConfigLoader - Attempting to load server.properties from CLASSPATH
ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/D:/workspace/SmartClient/WebContent/WEB-INF/classes/server.properties
INFO Logger - Logging system started.
INFO ISCInit - Isomorphic SmartClient Framework (6.0/SDK Development Only 2007-11-07) - Initialization Complete
DEBUG ISCInit - Verifying webroot: D:\workspace\SmartClient\WebContent
INFO ISCInit - Auto-detected webRoot - using: D:\workspace\SmartClient\WebContent
INFO JSSyntaxScannerFilter - Couldn’t load list of FileAssembler URLs - if the filter intercepts those URLs, they will be scanned.
INFO PreCache - Isomorphic PreCache servlet loading
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\DataSource.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\builtinTypes.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\DataSourceField.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\Validator.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\ValueMap.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\InstantDataApp.ds.xml: 78ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\Application.ds.xml: 16ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\IDAPage.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\IDAUserType.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\IDAOperation.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\Canvas.ds.xml: 16ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\MethodDeclaration.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\Img.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\StatefulCanvas.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\Button.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\ListViewer.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\ListGrid.ds.xml: 16ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\DynamicForm.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\FormItem.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\DetailViewer.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\DetailViewerField.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\isomorphicXML.ds.xml: 0ms
INFO PreCache - Isomorphic PreCache complete (484ms)
Jan 30, 2008 12:17:28 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 30, 2008 12:17:28 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 30, 2008 12:17:28 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32 config=null
Jan 30, 2008 12:17:28 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 30, 2008 12:17:28 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3360 ms
INFO RequestContext - URL: ‘/smartclient/screens/helloWorld.jsp’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
DEBUG LoadISCTag - isomorphicURI not specified in tag, defaulting to: ../isomorphic/
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\shared\app\springExamples.app.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\ServerObject.ds.xml: 0ms
DEBUG XML - Parsed XML from D:\workspace\SmartClient\WebContent\isomorphic\system\schema\Method.ds.xml: 16ms
DEBUG RPCDMI - appConfig: isc.Application.create({
rpcBindings:[
{
lookupStyle:“spring”,
bean:“helloWorld”,
visibleMethods:[
{name:“sayHello”}
],
ID:“helloWorld”
}
]
})

INFO JSSyntaxScannerFilter - /smartclient/screens/helloWorld.jsp: scanning <script> tags in html output
INFO Compression - /smartclient/screens/helloWorld.jsp: 3945 -> 1551 bytes
DEBUG ServletTools - setting cookie ‘isc_cState’ to: ‘ready’
INFO RequestContext - URL: ‘/smartclient/isomorphic/system/modules/ISC_Core.js’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO Compression - /smartclient/isomorphic/system/modules/ISC_Core.js: 418238 -> 111730 bytes
INFO RequestContext - URL: ‘/smartclient/isomorphic/system/modules/ISC_Foundation.js’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO Compression - /smartclient/isomorphic/system/modules/ISC_Foundation.js: 148772 -> 37822 bytes
INFO RequestContext - URL: ‘/smartclient/isomorphic/system/modules/ISC_Containers.js’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO Compression - /smartclient/isomorphic/system/modules/ISC_Containers.js: 59865 -> 16246 bytes
INFO RequestContext - URL: ‘/smartclient/isomorphic/system/modules/ISC_Grids.js’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO Compression - /smartclient/isomorphic/system/modules/ISC_Grids.js: 299308 -> 79532 bytes
INFO RequestContext - URL: ‘/smartclient/isomorphic/system/modules/ISC_Forms.js’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO Compression - /smartclient/isomorphic/system/modules/ISC_Forms.js: 309854 -> 78228 bytes
INFO RequestContext - URL: ‘/smartclient/isomorphic/system/modules/ISC_DataBinding.js’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO Compression - /smartclient/isomorphic/system/modules/ISC_DataBinding.js: 204024 -> 55183 bytes
INFO RequestContext - URL: ‘/smartclient/isomorphic/skins/standard/load_skin.js’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO Compression - /smartclient/isomorphic/skins/standard/load_skin.js: 3022 -> 1383 bytes
INFO RequestContext - URL: ‘/smartclient/isomorphic/skins/standard/skin_styles.css’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO Compression - /smartclient/isomorphic/skins/standard/skin_styles.css: 46865 -> 5192 bytes
INFO RequestContext - URL: ‘/smartclient/isomorphic/IDACall’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO RequestContext - URL: ‘/smartclient/isomorphic/skins/standard/images/blank.gif’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO RequestContext - URL: ‘/smartclient/isomorphic/skins/standard/images/Dialog/warn.png’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
INFO RequestContext - URL: ‘/smartclient/isomorphic/skins/standard/images/Window/close.gif’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS

Hello MilanV,

Although you say you are using the web.xml from the SmartClient SDK, this error message strongly indicates that you are missing at least the definition of the IDACall servlet from web.xml:

    <!-- The IDACall servlet handles all Built-in DataSource operations -->
    <servlet>
        <servlet-name>IDACall</servlet-name>
        <servlet-class>com.isomorphic.servlet.IDACall</servlet-class>
    </servlet>

Can you give more details:

  1. where exactly are you seeing this error? In the Spring example itself or in the Developer Console?

  2. what do you see in the server logs?

  3. which other examples are working on not working?

  4. did you copy every single file from WEB-INF/lib or omit some you didn’t think you needed?

Spring integration

  1. where exactly are you seeing this error? In the Spring example itself or in the Developer Console?
    Following error shows up as a pop-up in IE

Transport error - HTTP code:404 for URL:
http://localhost:8080/smartclient/isomorphic/IDACall

  1. what do you see in the server logs?
    I sent the detailed server logs in my earlier message.

  2. which other examples are working on not working?
    I just tried the spring integration.

  3. did you copy every single file from WEB-INF/lib or omit some you didn’t think you needed?
    Yes.

My web.xml looks like: exact same as in SDK
It has the following entry:

&lt;servlet&gt;
    &lt;servlet-name&gt;IDACall&lt;/servlet-name&gt;
    &lt;servlet-class&gt;com.isomorphic.servlet.IDACall&lt;/servlet-class&gt;
&lt;/servlet&gt;

Spring integration

  1. where exactly are you seeing this error? In the Spring example itself or in the Developer Console?

To be more precise, the following error message appears in an alert pop-up

Tile of the popup/alert window: Note
Transport error - HTTP code:404 for URL:
http://localhost:8080/smartclient/isomorphic/IDACall

It shows up when i click the Say Hello! button in the spring example - http://localhost:8080/smartclient/screens/helloWorld.jsp

Spring integration

Problem Solved!
I had appended /smartclient/ in the url pattern and hence the issue:

&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;IDACall&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/smartclient/isomorphic/IDACall.aspx/*&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;

It worked wwhen i changed it back to:

&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;IDACall&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/isomorphic/IDACall.aspx/*&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;

Good to hear, thanks for letting us know.