Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Java-SCA-1.6
-
None
-
Win XP, Application Server Weblogic 10.3
Description
Hi
I was deployed SCA in my weblogic application server successfully. l got Tuscany started information from the serve log like this
("-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_p
ageLabel=AppDeploymentsControlPage.>
Nov 15, 2010 5:06:34 PM org.apache.tuscany.sca.host.webapp.WebAppServletHost initContextPath
INFO: ContextPath: /SCA
Nov 15, 2010 5:06:34 PM org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: null
Nov 15, 2010 5:06:45 PM org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: file:/C:/oracle/Middleware/user_projects/domains/CRM_domain/servers/AdminServer/tmp/_WL_user/CRM/g7girn/war/
Nov 15, 2010 5:06:46 PM org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: null
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------")
But can't call my services . There is Servelt Mapping information and component binding information.
could please give me valuable advice .
My war file details are given below
---------------------------------------------
WEB-INF
=============================================================================
classes Folder - (Contain component class & service class )
lib folder - (Tuscany1.6 jar files)
geronimo-web.xml file
------------------------------------------------------------------------------------------------------------------
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0"
xmlns:d="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2">
<d:environment>
<d:moduleId>
<d:groupId>org.apache.tuscany.sca</d:groupId>
<d:artifactId>SCA</d:artifactId>
<d:version>1.6</d:version>
<d:type>war</d:type>
</d:moduleId>
</d:environment>
</web-app>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
weblogic.xml
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.1/weblogic-web-app.xsd">
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</wls:weblogic-web-app>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
web.xml
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
<description>Empty web.xml file for Web Application</description>
<display-name>Apache Tuscany Calculator Web Service Sample</display-name>
<filter>
<filter-name>tuscany</filter-name>
<filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>tuscany</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list id="WelcomeFileList">
<welcome-file>Welcome.jsp</welcome-file>
</welcome-file-list>
</web-app>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
===============================================================================================================================
Composite file are class folder (i've 2 composite files are there Util.composites and domain.composite )
==================================================================================
domain.composite
-----------------------------------------
<composite local="true" name="domain" targetNamespace="http://tuscany.apache.org/xmlns/sca/1.0" xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:ns1="http://www.osoa.org/xmlns/sca/1.0">
<ns1:include name="ns2:util" xmlns:ns2="http://www.suntecgroup.com/com/sis/crm/sca/composite/util/util"/>
</composite>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Util.composite
---------------------------
<?xml version="1.0" encoding="UTF-8"?>
<sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0" name="util" targetNamespace="http://www.suntecgroup.com/com/sis/crm/sca/composite/util/util">
<sca:component name="DBStatefulServices">
<sca:implementation.java class="com.sis.crm.sca.impl.util.DBStatefulServicesImpl"/>
<sca:service name="DBStatefulServices">
<sca:interface.java interface="com.sis.crm.sca.api.util.DBStatefulServices"/>
</sca:service>
<sca:reference name="sessionManagementRef" target="SessionManagement/SessionManagement"/>
</sca:component>
<sca:component name="DBStatelessServices">
<sca:implementation.java class="com.sis.crm.sca.impl.util.DBStatelessServicesImpl"/>
<sca:service name="DBStatelessServices">
<sca:interface.java interface="com.sis.crm.sca.api.util.DBStatelessServices"/>
</sca:service>
<sca:reference name="sessionManagementRef" target="SessionManagement/SessionManagement"/>
</sca:component>
<sca:component name="BPMServiceLocator">
<sca:implementation.java class="com.sis.crm.sca.impl.util.BPMServiceLocatorImpl"/>
<sca:service name="BPMServiceLocator">
<sca:interface.java interface="com.sis.crm.sca.api.util.BPMServiceLocator"/>
</sca:service>
</sca:component>
<sca:component name="SessionManagement">
<sca:implementation.java class="com.sis.crm.sca.impl.util.SessionManagementImpl"/>
<sca:service name="SessionManagement">
<sca:interface.java interface="com.sis.crm.sca.api.util.SessionManagement"/>
<tuscany:binding.jsonrpc uri="http://localhost:8082/SessionManagement"/>
<sca:binding.ws uri="http://localhost:8081/SessionManagement"/>
</sca:service>
<sca:reference name="dbStatelessRef" target="DBStatelessServices/DBStatelessServices"/>
</sca:component>
</sca:composite>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks & regards
Varghese
SunTec