Stardog dependencies in a Maven web project

Hello

I’m trying to use d3sparql javascript library(https://github.com/ktym/d3sparql) that through a JSON file, build a RDF graph, I want get the JSON from sparql query to my stardog repository. So, I have used Stardog remote connection with JAVA using SESAME for make the connection and I don’t have any problem, but that was a simple java application, for use the d3sparql library I have to create a Maven dinamic web project, and with these characteristics I can’t run on server my code. The error is:

Could not publish to the server.
java.lang.IndexOutOfBoundsException

I was looking for this error and I found that it produces when there is a problem with the dependencies, that its true because the server starts correctly without the stardog dependencies. My pom file is:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>recursosHumanos</groupId>
  <artifactId>proyectod3</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>proyectod3 Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <repositories>
	<repository>
			<id>stardog-public</id>
			<url>http://maven.stardog.com</url>
		</repository>
	</repositories>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
    
    <!-- Servlet -->
<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.1</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
</dependency>
<!-- STARDOG -->
		<dependency>
			<groupId>com.complexible.stardog</groupId>
			<artifactId>client-snarl</artifactId>
			<version>3.0</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.complexible.stardog</groupId>
			<artifactId>client-http</artifactId>
			<version>3.0</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.complexible.stardog.sesame</groupId>
			<artifactId>stardog-sesame-core</artifactId>
			<version>3.0</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>com.complexible.stardog</groupId>
			<artifactId>server</artifactId>
			<version>3.0</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.complexible.annex</groupId>
			<artifactId>annex</artifactId>
			<version>0.6.4</version>
			<exclusions>
				<exclusion>
					<groupId>com.complexible.stardog</groupId>
					<artifactId>server</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.complexible.stardog</groupId>
					<artifactId>client-http</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.complexible.stardog</groupId>
					<artifactId>client-snarl</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>
	
</project>

My main problem is that the POM.xml file works perfectly in a regular java application, so I don’t know if the problem is the POM.xml or the way that I define my Maven dinamic web project. I’am using as project facet JAVA 1.5 and web module 2.3.

Thanks for you attention

Regards.

Can you include the full stack trace for the error you’re getting? The Stardog version you’re using is a bit old (3.0). You might want to upgrade to the latest (4.2.3) maven dependencies. The latest version of Stardog also requires Java 1.8

This is in the console:

mar 13, 2017 10:50:17 AM org.apache.catalina.core.AprLifecycleListener init
GRAVE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.2.6
mar 13, 2017 10:50:17 AM org.apache.catalina.core.AprLifecycleListener init
GRAVE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.2.6
mar 13, 2017 10:50:17 AM org.apache.catalina.core.AprLifecycleListener init
GRAVE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.2.6
mar 13, 2017 10:50:17 AM org.apache.catalina.core.AprLifecycleListener init
GRAVE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.2.6
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Server version:        Apache Tomcat/8.5.11
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Server built:          Jan 10 2017 21:02:52 UTC
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Server number:         8.5.11.0
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: OS Name:               Windows 7
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: OS Version:            6.1
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Architecture:          amd64
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Java Home:             C:\Program Files\Java\otra
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: JVM Version:           1.8.0_121-b13
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: JVM Vendor:            Oracle Corporation
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: CATALINA_BASE:         C:\Users\dmuchuari\workspaceWEB\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: CATALINA_HOME:         C:\Program Files\Apache Software Foundation\Tomcat 8.5
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Dcatalina.base=C:\Users\dmuchuari\workspaceWEB\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.5
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Dwtp.deploy=C:\Users\dmuchuari\workspaceWEB\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.5\endorsed
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Dfile.encoding=Cp1252
mar 13, 2017 10:50:17 AM org.apache.catalina.core.AprLifecycleListener init
GRAVE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.2.6
mar 13, 2017 10:50:17 AM org.apache.catalina.core.AprLifecycleListener init
GRAVE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.2.6
mar 13, 2017 10:50:17 AM org.apache.coyote.AbstractProtocol init
INFORMACIÓN: Initializing ProtocolHandler ["http-nio-8080"]
mar 13, 2017 10:50:17 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFORMACIÓN: Using a shared selector for servlet write/read
mar 13, 2017 10:50:17 AM org.apache.catalina.core.AprLifecycleListener init
GRAVE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.2.6
mar 13, 2017 10:50:17 AM org.apache.coyote.AbstractProtocol init
INFORMACIÓN: Initializing ProtocolHandler ["ajp-nio-8009"]
mar 13, 2017 10:50:17 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFORMACIÓN: Using a shared selector for servlet write/read
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.Catalina load
INFORMACIÓN: Initialization processed in 577 ms
mar 13, 2017 10:50:17 AM org.apache.catalina.core.StandardService startInternal
INFORMACIÓN: Arrancando servicio Catalina
mar 13, 2017 10:50:17 AM org.apache.catalina.core.StandardEngine startInternal
INFORMACIÓN: Starting Servlet Engine: Apache Tomcat/8.5.11
mar 13, 2017 10:50:17 AM org.apache.coyote.AbstractProtocol start
INFORMACIÓN: Starting ProtocolHandler [http-nio-8080]
mar 13, 2017 10:50:17 AM org.apache.coyote.AbstractProtocol start
INFORMACIÓN: Starting ProtocolHandler [ajp-nio-8009]
mar 13, 2017 10:50:17 AM org.apache.catalina.startup.Catalina start
INFORMACIÓN: Server startup in 277 ms
mar 13, 2017 10:50:18 AM org.apache.catalina.core.AprLifecycleListener init
GRAVE: Se encuentra instalada una versión incompatible 1.1.22 de la biblioteca nativa APR de Apache Tomcat, mientras que Tomcat necesita la versión 1.2.6
mar 13, 2017 10:56:32 AM org.apache.catalina.core.StandardServer await
INFORMACIÓN: Se ha recibido un comando de apagado a través del puerto de apagado. Parando la instancia del Servidor.
mar 13, 2017 10:56:32 AM org.apache.coyote.AbstractProtocol pause
INFORMACIÓN: Pausing ProtocolHandler ["http-nio-8080"]
mar 13, 2017 10:56:32 AM org.apache.coyote.AbstractProtocol pause
INFORMACIÓN: Pausing ProtocolHandler ["ajp-nio-8009"]
mar 13, 2017 10:56:32 AM org.apache.catalina.core.StandardService stopInternal
INFORMACIÓN: Parando servicio Catalina
mar 13, 2017 10:56:32 AM org.apache.coyote.AbstractProtocol stop
INFORMACIÓN: Stopping ProtocolHandler ["http-nio-8080"]
mar 13, 2017 10:56:32 AM org.apache.coyote.AbstractProtocol stop
INFORMACIÓN: Stopping ProtocolHandler ["ajp-nio-8009"]
mar 13, 2017 10:56:32 AM org.apache.coyote.AbstractProtocol destroy
INFORMACIÓN: Destroying ProtocolHandler ["http-nio-8080"]
mar 13, 2017 10:56:32 AM org.apache.coyote.AbstractProtocol destroy
INFORMACIÓN: Destroying ProtocolHandler ["ajp-nio-8009"]

Also, I updated maven dependencies to 4.2.3

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>eurohelp</groupId>
  <artifactId>proyectod3</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>proyectod3 Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <repositories>
	<repository>
			<id>stardog-public</id>
			<url>http://maven.stardog.com</url>
		</repository>
	</repositories>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
    
    <!-- Servlet -->
<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.1</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
</dependency>
<!-- STARDOG -->
		<dependency>
			<groupId>com.complexible.stardog</groupId>
			<artifactId>client-snarl</artifactId>
			<version>4.2.3</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.complexible.stardog</groupId>
			<artifactId>client-http</artifactId>
			<version>4.2.3</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.complexible.stardog.sesame</groupId>
			<artifactId>stardog-sesame-core</artifactId>
			<version>4.2.3</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>com.complexible.stardog</groupId>
			<artifactId>server</artifactId>
			<version>4.2.3</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.complexible.annex</groupId>
			<artifactId>annex</artifactId>
			<version>0.6.4</version>
			<exclusions>
				<exclusion>
					<groupId>com.complexible.stardog</groupId>
					<artifactId>server</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.complexible.stardog</groupId>
					<artifactId>client-http</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.complexible.stardog</groupId>
					<artifactId>client-snarl</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>
	
</project>

Looks like you have a dependency issue with the Tomcat APR. You have 1.1.22 but need 1.2.6

I have changed the server, I’m using Apache Tomcat 8.0 and I installed APR for this version and now apache runs correctly without any error or warning.
But I still getting the error because that I opened this post:

Publishing to Tomcat v8.0 Server at localhost has encountered a problem.
Could not publish to the server.
java.lang.IndexOutOfBoundsException

And the apache log:

mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Server version:        Apache Tomcat/8.0.42
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Server built:          Mar 8 2017 19:58:16 UTC
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Server number:         8.0.42.0
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: OS Name:               Windows 7
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: OS Version:            6.1
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Architecture:          amd64
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Java Home:             C:\Program Files\Java\otra
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: JVM Version:           1.8.0_121-b13
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: JVM Vendor:            Oracle Corporation
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: CATALINA_BASE:         C:\Users\dmuchuari\workspaceWEB\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: CATALINA_HOME:         C:\Program Files\Apache Software Foundation\Tomcat 8.0
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Dcatalina.base=C:\Users\dmuchuari\workspaceWEB\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.0
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Dwtp.deploy=C:\Users\dmuchuari\workspaceWEB\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.0\endorsed
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Djava.library.path=C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMACIÓN: Command line argument: -Dfile.encoding=Cp1252
mar 17, 2017 10:32:56 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFORMACIÓN: Cargada la biblioteca nativa APR de Apache Tomcat 1.2.12 con la versión APR 1.5.2.
mar 17, 2017 10:32:56 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFORMACIÓN: Capacidades APR: IPv6 [true], enviar fichero [true], aceptar filtros [false], aleatorio [true].
mar 17, 2017 10:32:56 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFORMACIÓN: OpenSSL inicializado correctamente (OpenSSL 1.0.2k  26 Jan 2017)
mar 17, 2017 10:32:56 AM org.apache.coyote.AbstractProtocol init
INFORMACIÓN: Initializing ProtocolHandler ["http-apr-8080"]
mar 17, 2017 10:32:56 AM org.apache.coyote.AbstractProtocol init
INFORMACIÓN: Initializing ProtocolHandler ["ajp-apr-8009"]
mar 17, 2017 10:32:56 AM org.apache.catalina.startup.Catalina load
INFORMACIÓN: Initialization processed in 869 ms
mar 17, 2017 10:32:56 AM org.apache.catalina.core.StandardService startInternal
INFORMACIÓN: Arrancando servicio Catalina
mar 17, 2017 10:32:56 AM org.apache.catalina.core.StandardEngine startInternal
INFORMACIÓN: Starting Servlet Engine: Apache Tomcat/8.0.42
mar 17, 2017 10:32:57 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFORMACIÓN: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [141] milliseconds.
mar 17, 2017 10:32:57 AM org.apache.coyote.AbstractProtocol start
INFORMACIÓN: Starting ProtocolHandler ["http-apr-8080"]
mar 17, 2017 10:32:57 AM org.apache.coyote.AbstractProtocol start
INFORMACIÓN: Starting ProtocolHandler ["ajp-apr-8009"]
mar 17, 2017 10:32:57 AM org.apache.catalina.startup.Catalina start
INFORMACIÓN: Server startup in 370 ms
mar 17, 2017 10:33:51 AM org.apache.catalina.core.StandardServer await
INFORMACIÓN: Se ha recibido un comando de apagado a través del puerto de apagado. Parando la instancia del Servidor.
mar 17, 2017 10:33:51 AM org.apache.coyote.AbstractProtocol pause
INFORMACIÓN: Pausing ProtocolHandler ["http-apr-8080"]
mar 17, 2017 10:33:51 AM org.apache.coyote.AbstractProtocol pause
INFORMACIÓN: Pausing ProtocolHandler ["ajp-apr-8009"]
mar 17, 2017 10:33:51 AM org.apache.catalina.core.StandardService stopInternal
INFORMACIÓN: Parando servicio Catalina
mar 17, 2017 10:33:51 AM org.apache.coyote.AbstractProtocol stop
INFORMACIÓN: Stopping ProtocolHandler ["http-apr-8080"]
mar 17, 2017 10:33:51 AM org.apache.coyote.AbstractProtocol stop
INFORMACIÓN: Stopping ProtocolHandler ["ajp-apr-8009"]
mar 17, 2017 10:33:51 AM org.apache.coyote.AbstractProtocol destroy
INFORMACIÓN: Destroying ProtocolHandler ["http-apr-8080"]
mar 17, 2017 10:33:51 AM org.apache.coyote.AbstractProtocol destroy
INFORMACIÓN: Destroying ProtocolHandler ["ajp-apr-8009"]

Hi,

What are you doing to produce that error? I don’t see it in the apache log. Do you have a stack trace for the IndexOutOfBoundsException?

Sorry I found the error log in another folder.

!ENTRY org.eclipse.wst.server.core 4 0 2017-03-17 13:47:34.076
!MESSAGE Could not publish to the server.
!STACK 0
java.lang.IndexOutOfBoundsException
	at java.io.BufferedInputStream.read(Unknown Source)
	at org.eclipse.jdt.internal.compiler.util.Util.getInputStreamAsByteArray(Util.java:500)
	at org.eclipse.jdt.core.ToolFactory.createDefaultClassFileReader(ToolFactory.java:311)
	at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.isEJBArchive(JavaEEArchiveUtilities.java:909)
	at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.refineForJavaEE(JavaEEArchiveUtilities.java:615)
	at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.openArchive(JavaEEArchiveUtilities.java:377)
	at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities.openBinaryArchive(JavaEEArchiveUtilities.java:297)
	at org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper$ArchiveCache.openArchive(JavaEEBinaryComponentHelper.java:612)
	at org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.openArchive(JavaEEBinaryComponentHelper.java:470)
	at org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.getUniqueArchive(JavaEEBinaryComponentHelper.java:422)
	at org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.getArchive(JavaEEBinaryComponentHelper.java:415)
	at org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.getJavaEEQuickPeek(JavaEEBinaryComponentHelper.java:98)
	at org.eclipse.jst.j2ee.project.JavaEEProjectUtilities.getJ2EEComponentType(JavaEEProjectUtilities.java:273)
	at org.eclipse.jst.j2ee.internal.common.exportmodel.JEEHeirarchyExportParticipant.isChildModule(JEEHeirarchyExportParticipant.java:42)
	at org.eclipse.wst.common.componentcore.internal.flat.GlobalHeirarchyParticipant.isChildModule(GlobalHeirarchyParticipant.java:41)
	at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.isChildModule(FlatVirtualComponent.java:367)
	at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.addUsedReferences(FlatVirtualComponent.java:305)
	at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.treeWalk(FlatVirtualComponent.java:235)
	at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.cacheResources(FlatVirtualComponent.java:188)
	at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.fetchResources(FlatVirtualComponent.java:118)
	at org.eclipse.wst.web.internal.deployables.FlatComponentDeployable.members(FlatComponentDeployable.java:227)
	at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.members(J2EEFlexProjDeployable.java:267)
	at org.eclipse.wst.server.core.internal.ModulePublishInfo.getDelta(ModulePublishInfo.java:407)
	at org.eclipse.wst.server.core.internal.ServerPublishInfo.getDelta(ServerPublishInfo.java:366)
	at org.eclipse.wst.server.core.internal.Server.getPublishedResourceDelta(Server.java:1578)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.getPublishedResourceDelta(ServerBehaviourDelegate.java:698)
	at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.getPublishedResourceDelta(TomcatServerBehaviour.java:958)
	at org.eclipse.jst.server.tomcat.core.internal.PublishOperation2.publishDir(PublishOperation2.java:137)
	at org.eclipse.jst.server.tomcat.core.internal.PublishOperation2.execute(PublishOperation2.java:82)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.performTasks(ServerBehaviourDelegate.java:1335)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:954)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
	at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3172)
	at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Have you any idea whatever is causing this?

It looks like you’re having an issue with Eclipse and publishing your project to the server. Try taking a look at this StackOverflow post.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.