Gads

I am really stupid.  Sorry to bother everyone.  There are only two S's in
Message and I put three in com.ioc.sc.MesssageServices.

Skip

-----Original Message-----
From: Mathius Allo [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 17, 2008 5:42 PM
To: [email protected]
Subject: Re: Classpath error


Hi Skip,

Could this be due to the same service name "createBasicMessage" exists
somewhere on the classpath?

Regards,
Mathius Allo

----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, January 18, 2008 4:41:47 AM
Subject: Classpath error

I have an application in the specialpurposes folder.

I am getting this error:

Exception: org.ofbiz.service.GenericServiceException
Message: Cannot find service location (com.ioc.sc.MesssageServices)


When I call this:

dispatcher.runSync("createBasicMessage", context);

Here is the relevant service definition:
    <!-- Message services -->
    <service name="createBasicMessage" engine="java"
            location="com.ioc.sc.MesssageServices"
invoke="createBasicMessage" auth="false">
        <description>Create a Base Message Record</description>
        <attribute name="messageId" type="String" mode="OUT"/>
        <attribute name="msgType" type="String" mode="IN"/>
        <attribute name="subType" type="String" mode="IN" optional="false"/>
        <attribute name="sysName" type="String" mode="IN" optional="true"/>
        <attribute name="ipAddr" type="String" mode="IN" optional="false"/>
        <attribute name="msgText" type="String" mode="IN" optional="false"/>
    </service>

The MesssageServices.class is in the same jar file as the class which calls
runSync() above.  However, for some reason, StandardJavaEngine cannot seem
to find it.

I have this entry in the ofbiz-component.xml file:

    <classpath type="jar" location="dist/*"/>

If I use the Webtools at
"https://localhost:8443/webtools/control/availableServices";, click on
com.ioc.sc.MessageServices in the "Location" column, I can see all three of
the services defined there.

The dist directory contains the jar file that has the class that cannot be
found by StandardJavaEngine.  Most frequently, these files are in
"build/lib".

Is there some requirement in the setup or configuration I am missing for
this to work.  Maybe I need to put this stuff in the hot-deploy
subdirectory?

Any help would be appreciated.

Skip


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.5/1228 - Release Date: 1/16/2008
9:01 AM



____________________________________________________________________________
________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.5/1228 - Release Date: 1/16/2008
9:01 AM

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.5/1228 - Release Date: 1/16/2008
9:01 AM

Reply via email to