Problem Using Upload (OWL FILE)

Hi all,

I have a problem when I try to upload a file to my server.

I’m developing an applicattion that allows to mark equivalences between different attributes of relational databases. To to that, I want to load the DB from files. When I try to upload a “.txt” file I haven’t any problem and all works fine, but when I try to upload a “.owl” file I get this error:

 
15:02:40,839 ERROR [STDERR]
 com.vaadin.ui.Upload$UploadException: Upload failed
15:02:40,839 ERROR [STDERR]
 	at com.vaadin.ui.Upload.receiveUpload(Upload.java:238)
15:02:40,840 ERROR [STDERR]
 	at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleFileUpload(AbstractCommunicationManager.java:466)
15:02:40,843 ERROR [STDERR]
 	at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager.java:243)
15:02:40,843 ERROR [STDERR]
 	at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:472)
15:02:40,843 ERROR [STDERR]
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
15:02:40,843 ERROR [STDERR]
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
15:02:40,843 ERROR [STDERR]
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:02:40,843 ERROR [STDERR]
 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:02:40,843 ERROR [STDERR]
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:02:40,843 ERROR [STDERR]
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:02:40,844 ERROR [STDERR]
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
15:02:40,844 ERROR [STDERR]
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
15:02:40,844 ERROR [STDERR]
 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
15:02:40,844 ERROR [STDERR]
 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
15:02:40,844 ERROR [STDERR]
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
15:02:40,844 ERROR [STDERR]
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:02:40,844 ERROR [STDERR]
 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
15:02:40,844 ERROR [STDERR]
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:02:40,844 ERROR [STDERR]
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
15:02:40,844 ERROR [STDERR]
 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
15:02:40,844 ERROR [STDERR]
 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
15:02:40,844 ERROR [STDERR]
 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
15:02:40,844 ERROR [STDERR]
 	at java.lang.Thread.run(Unknown Source)
15:02:40,844 ERROR [STDERR]
 Caused by: com.vaadin.event.ListenerMethod$MethodException
Cause: java.lang.NoClassDefFoundError: org/semanticweb/owlapi/model/OWLOntologyCreationException
15:02:40,845 ERROR [STDERR]
 	at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:507)
15:02:40,845 ERROR [STDERR]
 	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)
15:02:40,845 ERROR [STDERR]
 	at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1154)
15:02:40,845 ERROR [STDERR]
 	at com.vaadin.ui.Upload.fireUploadSuccess(Upload.java:855)
15:02:40,845 ERROR [STDERR]
 	at com.vaadin.ui.Upload.receiveUpload(Upload.java:217)
15:02:40,845 ERROR [STDERR]
 	... 22 more
15:02:40,845 ERROR [STDERR]
 Caused by: java.lang.NoClassDefFoundError: org/semanticweb/owlapi/model/OWLOntologyCreationException
15:02:40,845 ERROR [STDERR]
 	at loadFiles.ImmediateUpload$4.uploadSucceeded(ImmediateUpload.java:109)
15:02:40,845 ERROR [STDERR]
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:02:40,845 ERROR [STDERR]
 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:02:40,845 ERROR [STDERR]
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:02:40,845 ERROR [STDERR]
 	at java.lang.reflect.Method.invoke(Unknown Source)
15:02:40,845 ERROR [STDERR]
 	at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:487)
15:02:40,845 ERROR [STDERR]
 	... 26 more
15:02:40,845 ERROR [STDERR]
 Caused by: java.lang.ClassNotFoundException: org.semanticweb.owlapi.model.OWLOntologyCreationException
15:02:40,845 ERROR [STDERR]
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
15:02:40,845 ERROR [STDERR]
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
15:02:40,846 ERROR [STDERR]
 	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
15:02:40,846 ERROR [STDERR]
 	... 32 more

I think the problem is


 Caused by: java.lang.NoClassDefFoundError: org/semanticweb/owlapi/model/OWLOntologyCreationException

,but I have included this package in my class.

I’m using OWLAPI, and Api for java to work with Owl files. Anyone knows how to upload an .owl file or is working with this API could helpme?

Thanks you all in advance!