CSAL distribution problem
Submitted by Anonymous on Sat, 2010-09-11 08:05
Printer-friendly version
PDF version


The class info.semanticsoftware.semassist.csal.ClientUtils in CSAL is using classs nemely GateRuntimeParameter and SemanticServiceBrokerService which are missing in info.semanticsoftware.semassist.server.* package. How to deal with these missing classes and how can we provide our own implemenation of SemanticServiceBrokerService class if it is to be provided by us.
I'll be grateful if you help me to find the right solution
Thanks
F
»
- Login to post comments
All classes are in the distribution
Could you post the detailed steps and ant build output where you get the errors about missing classes, it seems you missed something when building the distribution. For example, the GateRuntimeParameter class source is in SemanticAssistants/Server/src/info/semanticsoftware/semassist/server/GATERuntimeParameter.java
steps and output
Hello Mate,
GateRuntimeParameter.java is not in SemanticAssistants/Server/src/info/semanticsoftware/semassist/server but it is in SemanticAssistants\Server\src\info\semanticsoftware\semassist\server\util Also with a different name as GATERuntimeParameter.java
Also
SemanticAssistants\CSAL\src\info\semanticsoftware\semassist\csal\ClientUtils.java is using a class SemanticServiceBrokerService which is not found in SemanticAssistants/Server/src/info/semanticsoftware/semassist/server although there is a class namely SemanticServiceBroker.java but i guess it is a different one.
Please help me in that.
This is the output:
D:\OpenOffice\SemanticAssistants\CSAL>ant compile
Buildfile: D:\OpenOffice\SemanticAssistants\CSAL\build.xml
compile:
[javac] D:\OpenOffice\SemanticAssistants\CSAL\build.xml:71: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 7 source files to D:\OpenOffice\SemanticAssistants\CSAL\bin
[javac] D:\OpenOffice\SemanticAssistants\CSAL\src\info\semanticsoftware\semassist\csal\ClientUtils.java:65: cannot find symbol
[javac] symbol : class SemanticServiceBrokerService
[javac] location: class info.semanticsoftware.semassist.csal.ClientUtils
[javac] String host = new SemanticServiceBrokerService().getWSDLDocumentLocation().getHost();
[javac] ^
[javac] D:\OpenOffice\SemanticAssistants\CSAL\src\info\semanticsoftware\semassist\csal\ClientUtils.java:81: cannot find symbol
[javac] symbol : class SemanticServiceBrokerService
[javac] location: class info.semanticsoftware.semassist.csal.ClientUtils
[javac] int port = new SemanticServiceBrokerService().getWSDLDocumentLocation().getPort();
[javac] ^
[javac] D:\OpenOffice\SemanticAssistants\CSAL\src\info\semanticsoftware\semassist\csal\ClientUtils.java:112: cannot find symbol
[javac] symbol : method isBooleanValue()
[javac] location: class info.semanticsoftware.semassist.server.util.GATERuntimeParameter
[javac] return p.isBooleanValue() != null;
[javac] ^
[javac] 3 errors
BUILD FAILED
D:\OpenOffice\SemanticAssistants\CSAL\build.xml:71: Compile failed; see the compiler error output for details.
Total time: 1 second
D:\OpenOffice\SemanticAssistants\CSAL>
try "ant dist"
For compiling the CSAL, try using "ant dist" instead of "ant compile". Note that the server must be running ("ant run" in Server).
This is explained in the "Compilation" section in the documentation (Chapter 2, "Installation").
Best, René
Hi, build target ant dist for
Hi,
build target ant dist for csal failed
Please have a look on my build output.
below is the output of ant run for server
D:\SemanticAssistants\Server>ant run
Buildfile: D:\SemanticAssistants\Server\build.xml
compile:
[javac] D:\SemanticAssistants\Server\build.xml:63: warning: 'includeantruntime' was not set, def
aulting to build.sysclasspath=last; set to false for repeatable builds
wsgen:
[wsgen] command line: wsgen -classpath D:\SemanticAssistants\Server\build;D:\SemanticAssistants\
durmtools\Gate\bin\gate.jar -d D:\SemanticAssistants\Server\build -Xendorsed -keep -s D:\SemanticAss
istants\Server\build -verbose info.semanticsoftware.semassist.server.SemanticServiceBroker
[wsgen] Note: ap round: 1
[wsgen] [ProcessedMethods Class: info.semanticsoftware.semassist.server.SemanticServiceBroker]
[wsgen] [should process method: getAvailableServices hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: getAvailableServices()]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: recommendServices hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: recommendServices(info.semanticsoftware.semassist.server.util.User
Context)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: invokeService hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: invokeService(java.lang.String,info.semanticsoftware.semassist.ser
ver.URIList,java.lang.String[],long,info.semanticsoftware.semassist.server.util.GATERuntimeParameter
[],info.semanticsoftware.semassist.server.util.UserContext)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: getResultFile hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: getResultFile(java.net.URL)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [ProcessedMethods Class: java.lang.Object]
dist:
run:
reduce memory used
It tells you in line 3 what the problem is: "Could not reserve enough space for object heap". The predefined maximum allowable space (1.6GB) is too large for your Windows machine.
To change the memory definition, look for these properties:
and reduce the amount of memory used (e.g., to 1GB).
server ant run
thank you for replying, now its ok with heap memory space.
there is another problem while running server with ant run. i have set the property file semassist.properties as
gate.home=D:\SemanticAssistants\durmtools\Gate\
gate.plugin.dir=D:\SemanticAssistants\durmtools\Gate\plugins\
service.repository=D:\SemanticAssistants\Resources\OwlServiceDescriptions\
gate.user.file=D:\SemanticAssistants\Server\gate-home\user-gate.xml
ontology.repository=D:\SemanticAssistants\Resources\ont-repository\
merge.command=D:\SemanticAssistants\Clients\OpenOffice\Repository\durm\Resources\misc-tools\multidoc-combine\combine-multi-docs-edit.pl -f %OUTPUT_FILE% %INPUT_FILES%
yahoo.id=1234
i am not sure about usage of merge.command and yahoo id,
below is the build output of server, ant run, please take a look and suggest me
D:\SemanticAssistants\Server>ant run
Buildfile: D:\SemanticAssistants\Server\build.xml
compile:
[javac] D:\SemanticAssistants\Server\build.xml:63: warning: 'includeantruntime' was not set, def
aulting to build.sysclasspath=last; set to false for repeatable builds
wsgen:
[wsgen] command line: wsgen -classpath D:\SemanticAssistants\Server\build;D:\SemanticAssistants\
durmtools\Gate\bin\gate.jar -d D:\SemanticAssistants\Server\build -Xendorsed -keep -s D:\SemanticAss
istants\Server\build -verbose info.semanticsoftware.semassist.server.SemanticServiceBroker
[wsgen] Note: ap round: 1
[wsgen] [ProcessedMethods Class: info.semanticsoftware.semassist.server.SemanticServiceBroker]
[wsgen] [should process method: getAvailableServices hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: getAvailableServices()]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: recommendServices hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: recommendServices(info.semanticsoftware.semassist.server.util.User
Context)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: invokeService hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: invokeService(java.lang.String,info.semanticsoftware.semassist.ser
ver.URIList,java.lang.String[],long,info.semanticsoftware.semassist.server.util.GATERuntimeParameter
[],info.semanticsoftware.semassist.server.util.UserContext)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: getResultFile hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: getResultFile(java.net.URL)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [ProcessedMethods Class: java.lang.Object]
dist:
run:
server running but CSAL not working
Hi,
Now i have resolved the encoding problem. but still CSAL build target ant dist failed.
below is build output of SERVER ant run
D:\SemanticAssistants\Server>ant run
Buildfile: D:\SemanticAssistants\Server\build.xml
compile:
[javac] D:\SemanticAssistants\Server\build.xml:63: warning: 'includeantruntime' was not set, def
aulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to D:\SemanticAssistants\Server\build
wsgen:
[wsgen] command line: wsgen -classpath D:\SemanticAssistants\Server\build;D:\SemanticAssistants\
durmtools\Gate\bin\gate.jar -d D:\SemanticAssistants\Server\build -Xendorsed -keep -s D:\SemanticAss
istants\Server\build -verbose info.semanticsoftware.semassist.server.SemanticServiceBroker
[wsgen] Note: ap round: 1
[wsgen] [ProcessedMethods Class: info.semanticsoftware.semassist.server.SemanticServiceBroker]
[wsgen] [should process method: getAvailableServices hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: getAvailableServices()]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: recommendServices hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: recommendServices(info.semanticsoftware.semassist.server.util.User
Context)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: invokeService hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: invokeService(java.lang.String,info.semanticsoftware.semassist.ser
ver.URIList,java.lang.String[],long,info.semanticsoftware.semassist.server.util.GATERuntimeParameter
[],info.semanticsoftware.semassist.server.util.UserContext)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [should process method: getResultFile hasWebMethods: true ]
[wsgen] [endpointReferencesInterface: false]
[wsgen] [declaring class has WebSevice: true]
[wsgen] [returning: true]
[wsgen] [WrapperGen - method: getResultFile(java.net.URL)]
[wsgen] [method.getDeclaringType(): info.semanticsoftware.semassist.server.SemanticServiceBroker
]
[wsgen] [ProcessedMethods Class: java.lang.Object]
dist:
[jar] Building jar: D:\SemanticAssistants\Server\dist\SemassistWS.jar
run:
WSDL accessible?
Hi,
What happens when you open
in a web browser? Do you get the WSDL description?
wsdl description not displayed
I did not get WSDL description. the page cannot display. what could be the possible reason.
thank you
Windows hostname problem
Hi,
Another Windows user had similar problems compiling the CSAL, which were due to the hostname/IP address used. Essentially, you need to replace the "localhost" with the actual IP address of your system in the properties and MasterData.java file.
We've since been making changes to the distribution to make it simpler to build for Windows users, if you like I can email you a pre-release version of the beta3 release where we updated the ant build files and properties (make sure the email set in your account is valid).
Best, René
Hi, Now My WSDL is displaying
Hi,
Now My WSDL is displaying in my browser which is as below. but still CSAL build target ant dist is failed. Please suggest some tips to get it work.
below is the browser contents of WSDL
<?xml version="1.0" encoding="UTF-8" ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
And this is CSAL ant dist output
D:\SemanticAssistants\CSAL>ant dist
Buildfile: D:\SemanticAssistants\CSAL\build.xml
init:
wsimport:
[wsimport] Consider using / so that wsimport won't do unnecessary compilation
[wsimport] Exception in thread "main" java.lang.NullPointerException
[wsimport] at com.sun.tools.ws.Invoker.findIstack22APIs(Invoker.java:238)
[wsimport] at com.sun.tools.ws.Invoker.createClassLoader(Invoker.java:183)
[wsimport] at com.sun.tools.ws.Invoker.invoke(Invoker.java:84)
[wsimport] at com.sun.tools.ws.WsImport.main(WsImport.java:52)
[wsimport] Command invoked: wsimport "C:\Program Files\Java\jdk1.7.0\jre\bin\java.exe" -Djava.endor
sed.dirs=D:/SemanticAssistants/durmtools/jaxws-ri/lib -classpath D:\SemanticAssistants\durmtools\jax
ws-ri\lib\jaxws-tools.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxws-rt.jar;D:\SemanticAssis
tants\durmtools\jaxws-ri\lib\jaxws-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr181-api.j
ar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr250-api.jar;D:\SemanticAssistants\durmtools\jaxws
-ri\lib\saaj-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\activation.jar;D:\SemanticAssistan
ts\durmtools\jaxws-ri\lib\saaj-impl.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr173_api.jar;
D:\SemanticAssistants\durmtools\jaxws-ri\lib\woodstox.jar;D:\SemanticAssistants\durmtools\jaxws-ri\l
ib\resolver.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxb-api.jar;D:\SemanticAssistants\durm
tools\jaxws-ri\lib\jaxb-impl.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\stax-ex.jar;D:\Semanti
cAssistants\durmtools\jaxws-ri\lib\streambuffer.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\pol
icy.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\gmbal-api-only.jar;D:\SemanticAssistants\durmto
ols\jaxws-ri\lib\management-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxb-xjc.jar com.su
n.tools.ws.WsImport -d D:\SemanticAssistants\CSAL\bin -Xendorsed -keep -s D:\SemanticAssistants\CSAL
\src http://10.40.38.180:8080/SemAssist?wsdl
BUILD FAILED
D:\SemanticAssistants\CSAL\build.xml:49: wsimport failed
thank you for your kind help
Beta 3 release
thank you very much for replying me. please send me the beta 3 release.
thank you