Skip navigation.
Home
Semantic Software Lab
Concordia University
Montréal, Canada

CSAL distribution problem

Printer-friendly versionPrinter-friendly versionPDF versionPDF 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

rene's picture

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>

rene's picture

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:

  1.  Could not create the Java virtual machine.
  2.      [java] Error occurred during initialization of VM
  3.      [java] Could not reserve enough space for object heap
  4.      [java] Java Result: 1
  5.  
  6. BUILD SUCCESSFUL
  7. Total time: 1 second
  8.  
  9. and this is the output of ant dist for CSAL
  10.  
  11. D:\SemanticAssistants\CSAL>ant dist
  12. Buildfile: D:\SemanticAssistants\CSAL\build.xml
  13.  
  14. init:
  15.  
  16. wsimport:
  17.  [wsimport] Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
  18. [wsimport] Exception in thread "main" java.lang.NullPointerException
  19. [wsimport]     at com.sun.tools.ws.Invoker.findIstack22APIs(Invoker.java:238)
  20. [wsimport]     at com.sun.tools.ws.Invoker.createClassLoader(Invoker.java:183)
  21. [wsimport]     at com.sun.tools.ws.Invoker.invoke(Invoker.java:84)
  22. [wsimport]     at com.sun.tools.ws.WsImport.main(WsImport.java:52)
  23. [wsimport] Command invoked: wsimport "C:\Program Files\Java\jdk1.7.0\jre\bin\java.exe" -Djava.endor
  24. sed.dirs=D:/SemanticAssistants/durmtools/jaxws-ri/lib -classpath D:\SemanticAssistants\durmtools\jax
  25. ws-ri\lib\jaxws-tools.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxws-rt.jar;D:\SemanticAssis
  26. tants\durmtools\jaxws-ri\lib\jaxws-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr181-api.j
  27. ar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr250-api.jar;D:\SemanticAssistants\durmtools\jaxws
  28. -ri\lib\saaj-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\activation.jar;D:\SemanticAssistan
  29. ts\durmtools\jaxws-ri\lib\saaj-impl.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr173_api.jar;
  30. D:\SemanticAssistants\durmtools\jaxws-ri\lib\woodstox.jar;D:\SemanticAssistants\durmtools\jaxws-ri\l
  31. ib\resolver.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxb-api.jar;D:\SemanticAssistants\durm
  32. tools\jaxws-ri\lib\jaxb-impl.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\stax-ex.jar;D:\Semanti
  33. cAssistants\durmtools\jaxws-ri\lib\streambuffer.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\pol
  34. icy.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\gmbal-api-only.jar;D:\SemanticAssistants\durmto
  35. ols\jaxws-ri\lib\management-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxb-xjc.jar com.su
  36. n.tools.ws.WsImport -d D:\SemanticAssistants\CSAL\bin -Xendorsed -keep -s D:\SemanticAssistants\CSAL
  37. \src <a href="http://localhost:8080/SemAssist?wsdl</p>
  38. <p>BUILD" title="http://localhost:8080/SemAssist?wsdl</p>
  39. <p>BUILD">http://localhost:8080/SemAssist?wsdl</p>
  40. <p>BUILD</p></a> FAILED
  41. D:\SemanticAssistants\CSAL\build.xml:49: wsimport failed
  42.  
  43. Total time: 1 second
  44.  
  45.  
  46. Please suggest some solution.
  47. thank you for your kind help

rene's picture

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:

  1.     <property name="runtime.maxmem"       value="1638m" />
  2.     <property name="runtime.heap.initial" value="128m" />
  3.     <property name="runtime.heap.max"     value="1638m" />

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:

  1.  Listening for transport dt_socket at address: 8888
  2.      [java] Exception in thread "main" java.lang.IllegalArgumentException: Malformed \uxxxx encoding
  3. .
  4.      [java]     at java.util.Properties.loadConvert(Properties.java:570)
  5.      [java]     at java.util.Properties.load0(Properties.java:393)
  6.      [java]     at java.util.Properties.load(Properties.java:343)
  7.      [java]     at info.semanticsoftware.semassist.server.util.MasterData.load(MasterData.java:234)
  8.      [java]     at info.semanticsoftware.semassist.server.util.MasterData.checkFile(MasterData.java:
  9. 120)
  10.      [java]     at info.semanticsoftware.semassist.server.util.MasterData.getServiceRepository(Maste
  11. rData.java:84)
  12.      [java]     at info.semanticsoftware.semassist.server.SemanticServiceBroker.readServiceMetadata(
  13. SemanticServiceBroker.java:702)
  14.      [java]     at info.semanticsoftware.semassist.server.SemanticServiceBroker.<init>(SemanticServi
  15. ceBroker.java:81)
  16.      [java]     at info.semanticsoftware.semassist.server.Bootstrap.main(Bootstrap.java:40)
  17.      [java] Java Result: 1
  18.  
  19. BUILD SUCCESSFUL
  20. Total time: 2 seconds
  21.  
  22. thank you very much

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:

  1.  Listening for transport dt_socket at address: 8888
  2.      [java] D:\SemanticAssistants\semassist.properties[Sep 13, 2010]
  3.      [java]
  4.      [java] ---------------- Reading service description file (for Java object) annie.owl  ---------
  5. ----
  6.      [java]
  7.      [java]
  8.      [java] WARNING: [Local Folder Repository] The specified file must be a directory. (D:\SemanticA
  9. ssistants\Server\plugins\edu.stanford.smi.protegex.owl) -- LocalFolderRepository.update()
  10.      [java] Loading triples for: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/annie.
  11. owl
  12.      [java]     Completed triple loading after 250 ms
  13.      [java] Importing <a href="http://localhost/SemanticAssistants.owl" title="http://localhost/SemanticAssistants.owl">http://localhost/SemanticAssistants.owl</a> from location: D:\SemanticAssistants\R
  14. esources\ont-repository\SemanticAssistants.owl
  15.      [java] Sep 13, 2010 11:55:37 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  16. mportedAssertions
  17.      [java] INFO: Importing <a href="http://localhost/SemanticAssistants.owl" title="http://localhost/SemanticAssistants.owl">http://localhost/SemanticAssistants.owl</a> from location: D:\SemanticAssist
  18. ants\Resources\ont-repository\SemanticAssistants.owl
  19.      [java] Loading triples for: <a href="http://localhost/SemanticAssistants.owl<br />
  20. " title="http://localhost/SemanticAssistants.owl<br />
  21. ">http://localhost/SemanticAssistants.owl<br />
  22. </a>     [java]     Completed triple loading after 31 ms
  23.      [java] Importing <a href="http://localhost/ConceptUpper.owl" title="http://localhost/ConceptUpper.owl">http://localhost/ConceptUpper.owl</a> from location: D:\SemanticAssistants\Resourc
  24. es\ont-repository\ConceptUpper.owl
  25.      [java] Sep 13, 2010 11:55:37 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  26. mportedAssertions
  27.      [java] INFO: Importing <a href="http://localhost/ConceptUpper.owl" title="http://localhost/ConceptUpper.owl">http://localhost/ConceptUpper.owl</a> from location: D:\SemanticAssistants\R
  28. esources\ont-repository\ConceptUpper.owl
  29.      [java] Loading triples for: <a href="http://localhost/ConceptUpper.owl<br />
  30. " title="http://localhost/ConceptUpper.owl<br />
  31. ">http://localhost/ConceptUpper.owl<br />
  32. </a>     [java]     Completed triple loading after 16 ms
  33.      [java] Postprocess: Process entities with incorrect Java type (6 entities) ... 0 ms
  34.      [java] Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
  35.      [java] Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
  36.      [java] Postprocess: Instances with multiple types (36 instances) ... 15 ms
  37.      [java] Postprocess: Add inferred superclasses ... 0 ms
  38.      [java] Postprocess: Process orphan classes (35 classes) ... 0 ms
  39.      [java] Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
  40.      [java] Postprocess: Abstract classes... 0 ms
  41.      [java] Postprocess: Domain and range of properties... 0 ms
  42.      [java] Postprocess: Possibly typed entities (0 resources) ... 0 ms
  43.      [java] Updating underlying frames model in 0 ms
  44.      [java] Sep 13, 2010 11:55:37 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser doFi
  45. nalPostProcessing
  46.      [java] INFO: Updating underlying frames model in 0 ms
  47.      [java] [Sep 13, 2010]
  48.      [java]
  49.      [java] ---------------- Reading service description file (for Java object) yahoo.owl  ---------
  50. ----
  51.      [java]
  52.      [java]
  53.      [java] WARNING: [Local Folder Repository] The specified file must be a directory. (D:\SemanticA
  54. ssistants\Server\plugins\edu.stanford.smi.protegex.owl) -- LocalFolderRepository.update()
  55.      [java] Loading triples for: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahoo.
  56. owl
  57.      [java]     Completed triple loading after 0 ms
  58.      [java] Importing <a href="http://localhost/SemanticAssistants.owl" title="http://localhost/SemanticAssistants.owl">http://localhost/SemanticAssistants.owl</a> from location: D:\SemanticAssistants\R
  59. esources\ont-repository\SemanticAssistants.owl
  60.      [java] Sep 13, 2010 11:55:37 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  61. mportedAssertions
  62.      [java] INFO: Importing <a href="http://localhost/SemanticAssistants.owl" title="http://localhost/SemanticAssistants.owl">http://localhost/SemanticAssistants.owl</a> from location: D:\SemanticAssist
  63. ants\Resources\ont-repository\SemanticAssistants.owl
  64.      [java] Loading triples for: <a href="http://localhost/SemanticAssistants.owl<br />
  65. " title="http://localhost/SemanticAssistants.owl<br />
  66. ">http://localhost/SemanticAssistants.owl<br />
  67. </a>     [java]     Completed triple loading after 16 ms
  68.      [java] Importing <a href="http://localhost/ConceptUpper.owl" title="http://localhost/ConceptUpper.owl">http://localhost/ConceptUpper.owl</a> from location: D:\SemanticAssistants\Resourc
  69. es\ont-repository\ConceptUpper.owl
  70.      [java] Sep 13, 2010 11:55:37 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  71. mportedAssertions
  72.      [java] INFO: Importing <a href="http://localhost/ConceptUpper.owl" title="http://localhost/ConceptUpper.owl">http://localhost/ConceptUpper.owl</a> from location: D:\SemanticAssistants\R
  73. esources\ont-repository\ConceptUpper.owl
  74.      [java] Loading triples for: <a href="http://localhost/ConceptUpper.owl<br />
  75. " title="http://localhost/ConceptUpper.owl<br />
  76. ">http://localhost/ConceptUpper.owl<br />
  77. </a>     [java]     Completed triple loading after 31 ms
  78.      [java] Postprocess: Process entities with incorrect Java type (9 entities) ... 0 ms
  79.      [java] Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
  80.      [java] Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
  81.      [java] Postprocess: Instances with multiple types (36 instances) ... 0 ms
  82.      [java] Postprocess: Add inferred superclasses ... 0 ms
  83.      [java] Postprocess: Process orphan classes (35 classes) ... 0 ms
  84.      [java] Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
  85.      [java] Postprocess: Abstract classes... 0 ms
  86.      [java] Postprocess: Domain and range of properties... 0 ms
  87.      [java] Postprocess: Possibly typed entities (0 resources) ... 0 ms
  88.      [java] Updating underlying frames model in 0 ms
  89.      [java] Sep 13, 2010 11:55:37 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser doFi
  90. nalPostProcessing
  91.      [java] INFO: Updating underlying frames model in 0 ms
  92.      [java] [Sep 13, 2010] GATERuntimeParameter::parseStringAndSetValue: parameter type "" not recog
  93. nized or not supported. Value not set.
  94.      [java] [Sep 13, 2010] ---------------- Setting parameter for result corpus: corpus
  95.      [java] [Sep 13, 2010]
  96.      [java]
  97.      [java] ---------------- Reading service description file (for Java object) yahooExtractor.owl
  98. -------------
  99.      [java]
  100.      [java]
  101.      [java] WARNING: [Local Folder Repository] The specified file must be a directory. (D:\SemanticA
  102. ssistants\Server\plugins\edu.stanford.smi.protegex.owl) -- LocalFolderRepository.update()
  103.      [java] Loading triples for: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahooE
  104. xtractor.owl
  105.      [java]     Completed triple loading after 0 ms
  106.      [java] Importing <a href="http://localhost/SemanticAssistants.owl" title="http://localhost/SemanticAssistants.owl">http://localhost/SemanticAssistants.owl</a> from location: D:\SemanticAssistants\R
  107. esources\ont-repository\SemanticAssistants.owl
  108.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  109. mportedAssertions
  110.      [java] INFO: Importing <a href="http://localhost/SemanticAssistants.owl" title="http://localhost/SemanticAssistants.owl">http://localhost/SemanticAssistants.owl</a> from location: D:\SemanticAssist
  111. ants\Resources\ont-repository\SemanticAssistants.owl
  112.      [java] Loading triples for: <a href="http://localhost/SemanticAssistants.owl<br />
  113. " title="http://localhost/SemanticAssistants.owl<br />
  114. ">http://localhost/SemanticAssistants.owl<br />
  115. </a>     [java]     Completed triple loading after 15 ms
  116.      [java] Importing <a href="http://localhost/ConceptUpper.owl" title="http://localhost/ConceptUpper.owl">http://localhost/ConceptUpper.owl</a> from location: D:\SemanticAssistants\Resourc
  117. es\ont-repository\ConceptUpper.owl
  118.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  119. mportedAssertions
  120.      [java] INFO: Importing <a href="http://localhost/ConceptUpper.owl" title="http://localhost/ConceptUpper.owl">http://localhost/ConceptUpper.owl</a> from location: D:\SemanticAssistants\R
  121. esources\ont-repository\ConceptUpper.owl
  122.      [java] Loading triples for: <a href="http://localhost/ConceptUpper.owl<br />
  123. " title="http://localhost/ConceptUpper.owl<br />
  124. ">http://localhost/ConceptUpper.owl<br />
  125. </a>     [java]     Completed triple loading after 16 ms
  126.      [java] Postprocess: Process entities with incorrect Java type (3 entities) ... 0 ms
  127.      [java] Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
  128.      [java] Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
  129.      [java] Postprocess: Instances with multiple types (36 instances) ... 0 ms
  130.      [java] Postprocess: Add inferred superclasses ... 0 ms
  131.      [java] Postprocess: Process orphan classes (35 classes) ... 0 ms
  132.      [java] Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
  133.      [java] Postprocess: Abstract classes... 0 ms
  134.      [java] Postprocess: Domain and range of properties... 0 ms
  135.      [java] Postprocess: Possibly typed entities (0 resources) ... 0 ms
  136.      [java] Updating underlying frames model in 0 ms
  137.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser doFi
  138. nalPostProcessing
  139.      [java] INFO: Updating underlying frames model in 0 ms
  140.      [java]
  141.      [java]
  142.      [java] ---------- Reading service description (for model) for annie.owl  -------------
  143.      [java]
  144.      [java]
  145.      [java]
  146.      [java]
  147.      [java] ---------- Reading service description (for model) for yahoo.owl  -------------
  148.      [java]
  149.      [java]
  150.      [java]
  151.      [java]
  152.      [java] ---------- Reading service description (for model) for yahooExtractor.owl  -------------
  153.  
  154.      [java]
  155.      [java]
  156.      [java] WARNING: [Local Folder Repository] The specified file must be a directory. (D:\SemanticA
  157. ssistants\Server\plugins\edu.stanford.smi.protegex.owl) -- LocalFolderRepository.update()
  158.      [java] Loading triples for: file:/D:/SemanticAssistants/Resources/ont-repository/SemanticAssist
  159. ants.owl
  160.      [java]     Completed triple loading after 0 ms
  161.      [java] Importing <a href="http://localhost/ConceptUpper.owl" title="http://localhost/ConceptUpper.owl">http://localhost/ConceptUpper.owl</a> from location: D:\SemanticAssistants\Resourc
  162. es\ont-repository\ConceptUpper.owl
  163.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  164. mportedAssertions
  165.      [java] INFO: Importing <a href="http://localhost/ConceptUpper.owl" title="http://localhost/ConceptUpper.owl">http://localhost/ConceptUpper.owl</a> from location: D:\SemanticAssistants\R
  166. esources\ont-repository\ConceptUpper.owl
  167.      [java] Loading triples for: <a href="http://localhost/ConceptUpper.owl<br />
  168. " title="http://localhost/ConceptUpper.owl<br />
  169. ">http://localhost/ConceptUpper.owl<br />
  170. </a>     [java]     Completed triple loading after 16 ms
  171.      [java] Postprocess: Process entities with incorrect Java type (0 entities) ... 0 ms
  172.      [java] Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
  173.      [java] Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
  174.      [java] Postprocess: Instances with multiple types (35 instances) ... 0 ms
  175.      [java] Postprocess: Add inferred superclasses ... 0 ms
  176.      [java] Postprocess: Process orphan classes (35 classes) ... 0 ms
  177.      [java] Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
  178.      [java] Postprocess: Abstract classes... 0 ms
  179.      [java] Postprocess: Domain and range of properties... 16 ms
  180.      [java] Postprocess: Possibly typed entities (0 resources) ... 0 ms
  181.      [java] Updating underlying frames model in 0 ms
  182.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser doFi
  183. nalPostProcessing
  184.      [java] INFO: Updating underlying frames model in 0 ms
  185.      [java] Importing file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/annie.owl from lo
  186. cation: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/annie.owl [actual ontology at t
  187. his location: http://localhost/PersonLocationExtractor.owl]
  188.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  189. mportedAssertions
  190.      [java] INFO: Importing file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/annie.owl f
  191. rom location: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/annie.owl [actual ontolog
  192. y at this location: http://localhost/PersonLocationExtractor.owl]
  193.      [java] Loading triples for: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/annie.
  194. owl
  195.      [java]     Completed triple loading after 0 ms
  196.      [java] Importing file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahoo.owl from lo
  197. cation: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahoo.owl [actual ontology at t
  198. his location: http://localhost/Yahoo.owl]
  199.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  200. mportedAssertions
  201.      [java] INFO: Importing file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahoo.owl f
  202. rom location: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahoo.owl [actual ontolog
  203. y at this location: http://localhost/Yahoo.owl]
  204.      [java] Loading triples for: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahoo.
  205. owl
  206.      [java]     Completed triple loading after 0 ms
  207.      [java] Importing file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahooExtractor.ow
  208. l from location: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahooExtractor.owl [ac
  209. tual ontology at this location: http://localhost/YahooExtractor.owl]
  210.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel loadI
  211. mportedAssertions
  212.      [java] INFO: Importing file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahooExtrac
  213. tor.owl from location: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahooExtractor.o
  214. wl [actual ontology at this location: http://localhost/YahooExtractor.owl]
  215.      [java] Loading triples for: file:/D:/SemanticAssistants/Resources/OwlServiceDescriptions/yahooE
  216. xtractor.owl
  217.      [java]     Completed triple loading after 0 ms
  218.      [java] Postprocess: Process entities with incorrect Java type (0 entities) ... 0 ms
  219.      [java] Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
  220.      [java] Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
  221.      [java] Postprocess: Instances with multiple types (38 instances) ... 0 ms
  222.      [java] Postprocess: Add inferred superclasses ... 0 ms
  223.      [java] Postprocess: Process orphan classes (35 classes) ... 0 ms
  224.      [java] Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
  225.      [java] Postprocess: Abstract classes... 0 ms
  226.      [java] Postprocess: Domain and range of properties... 0 ms
  227.      [java] Postprocess: Possibly typed entities (0 resources) ... 0 ms
  228.      [java] Updating underlying frames model in 0 ms
  229.      [java] Sep 13, 2010 11:55:38 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser doFi
  230. nalPostProcessing
  231.      [java] INFO: Updating underlying frames model in 0 ms
  232.      [java]  INFO [main] (Gate.java:302) - Using D:\SemanticAssistants\durmtools\Gate as GATE home
  233.      [java]  INFO [main] (Gate.java:326) - Using D:\SemanticAssistants\durmtools\Gate\plugins as ins
  234. talled plug-ins directory.
  235.      [java]  INFO [main] (Gate.java:349) - Using D:\SemanticAssistants\durmtools\Gate\gate.xml as si
  236. te configuration file.
  237.      [java]  INFO [main] (Gate.java:361) - Using D:\SemanticAssistants\Server\gate-home\user-gate.xm
  238. l as user configuration file
  239.      [java]  INFO [main] (Gate.java:374) - Using C:\Documents and Settings\shadab akhtar.SHADAB-AKHT
  240. AR\gate.session as user session file
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247. this is output of CSAL ant dist
  248.  
  249. D:\SemanticAssistants\CSAL>ant dist
  250. Buildfile: D:\SemanticAssistants\CSAL\build.xml
  251.  
  252. init:
  253.  
  254. wsimport:
  255.  [wsimport] Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
  256. [wsimport] Exception in thread "main" java.lang.NullPointerException
  257. [wsimport]     at com.sun.tools.ws.Invoker.findIstack22APIs(Invoker.java:238)
  258. [wsimport]     at com.sun.tools.ws.Invoker.createClassLoader(Invoker.java:183)
  259. [wsimport]     at com.sun.tools.ws.Invoker.invoke(Invoker.java:84)
  260. [wsimport]     at com.sun.tools.ws.WsImport.main(WsImport.java:52)
  261. [wsimport] Command invoked: wsimport "C:\Program Files\Java\jdk1.7.0\jre\bin\java.exe" -Djava.endor
  262. sed.dirs=D:/SemanticAssistants/durmtools/jaxws-ri/lib -classpath D:\SemanticAssistants\durmtools\jax
  263. ws-ri\lib\jaxws-tools.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxws-rt.jar;D:\SemanticAssis
  264. tants\durmtools\jaxws-ri\lib\jaxws-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr181-api.j
  265. ar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr250-api.jar;D:\SemanticAssistants\durmtools\jaxws
  266. -ri\lib\saaj-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\activation.jar;D:\SemanticAssistan
  267. ts\durmtools\jaxws-ri\lib\saaj-impl.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jsr173_api.jar;
  268. D:\SemanticAssistants\durmtools\jaxws-ri\lib\woodstox.jar;D:\SemanticAssistants\durmtools\jaxws-ri\l
  269. ib\resolver.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxb-api.jar;D:\SemanticAssistants\durm
  270. tools\jaxws-ri\lib\jaxb-impl.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\stax-ex.jar;D:\Semanti
  271. cAssistants\durmtools\jaxws-ri\lib\streambuffer.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\pol
  272. icy.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\gmbal-api-only.jar;D:\SemanticAssistants\durmto
  273. ols\jaxws-ri\lib\management-api.jar;D:\SemanticAssistants\durmtools\jaxws-ri\lib\jaxb-xjc.jar com.su
  274. n.tools.ws.WsImport -d D:\SemanticAssistants\CSAL\bin -Xendorsed -keep -s D:\SemanticAssistants\CSAL
  275. \src <a href="http://localhost:8080/SemAssist?wsdl</p>
  276. <p>BUILD" title="http://localhost:8080/SemAssist?wsdl</p>
  277. <p>BUILD">http://localhost:8080/SemAssist?wsdl</p>
  278. <p>BUILD</p></a> FAILED
  279. D:\SemanticAssistants\CSAL\build.xml:49: wsimport failed
  280.  
  281. Total time: 1 second
  282. D:\SemanticAssistants\CSAL>
  283.  
  284. please help
  285. thank you

rene's picture

WSDL accessible?

Hi,

What happens when you open

  1. http://localhost:8080/SemAssist?wsdl

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

rene's picture

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