Share

XINS

Tracker: Feature Requests

3 building xins doesn't include Spring packages - ID: 1741660
Last Update: Comment added ( agoubard )

Running the "quick start" example on Mac OS X (10.4, java 1.5, ant 1.6.5)
fails with the following message at the run-myproject step:

run-myproject:
[java] 1500 INFO Starting the Servlet container
on port 8080.
[java] 1503 DEBUG Loading and initializing the
Servlet located in the
/Users/alansill/Desktop/xins-2.0/demo/xins-project/build/webapps/myproject/
myproject.war file.
[java] 3100 DEBUG Changing APIServlet state from
INITIAL to BOOTSTRAPPING_FRAMEWORK.
[java] 3301 ERROR Logging subsystem cannot be
initialized. System administration issue detected. Runtime properties file
("..xins.properties") cannot be opened. Detail: "..xins.properties (No such
file or directory)".
[java] 3300 DEBUG Initializing logging subsystem
with the settings set in the "..xins.properties" file.
[java] log4j:WARN No appenders could be found for logger
(org.xins.server.log.3304).
[java] log4j:WARN Please initialize the log4j system properly.
[java] 3100 DEBUG Changing APIServlet state from
BOOTSTRAPPING_FRAMEWORK to FRAMEWORK_BOOTSTRAP_FAILED.
[java] 3444 ERROR The XINS/Java Server Framework
failed to start.
[java] 3444 DEBUG The XINS/Java Server Framework
failed to start.
[java] javax.servlet.ServletException
[java] at org.xins.server.Engine.<init>(Engine.java:163)
[java] at org.xins.server.APIServlet.init(APIServlet.java:164)
[java] at
org.xins.common.servlet.container.LocalServletHandler.initServlet(LocalServ
letHandler.java:81)
[java] at
org.xins.common.servlet.container.LocalServletHandler.<init>(LocalServletHa
ndler.java:49)
[java] at
org.xins.common.servlet.container.HTTPServletHandler.addWAR(HTTPServletHand
ler.java:240)
[java] at
org.xins.common.servlet.container.HTTPServletHandler.<init>(HTTPServletHand
ler.java:164)
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce
ssorImpl.java:39)
[java] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru
ctorAccessorImpl.java:27)
[java] at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
[java] at
org.xins.common.servlet.container.HTTPServletStarter.<init>(HTTPServletStar
ter.java:106)
[java] at
org.xins.common.servlet.container.HTTPServletStarter.main(HTTPServletStarte
r.java:180)

Additionally when I try to build all of xins from the top directory using
ant, it appears to be missing the springframework libs:

-build-framework:

java-tools:
[javac] Compiling 8 source files to
/Users/alansill/Desktop/xins-2.0/build/classes/java-common
[javac]
/Users/alansill/Desktop/xins-2.0/src/java-common/org/xins/common/spring/Xin
sCapiFactoryBean.java:9: package org.springframework.beans.factory does not
exist
[javac] import org.springframework.beans.factory.FactoryBean;
[javac] ^
[javac]
/Users/alansill/Desktop/xins-2.0/src/java-common/org/xins/common/spring/Xin
sClientInterceptor.java:29: package org.aopalliance.intercept does not
exist
[javac] import org.aopalliance.intercept.MethodInterceptor;
[javac] ^
[...]

All steps before each of these errors succed in each of these cases (the
xins example prroject or the separate ant from top directory step).


Alan Sill ( alansill ) - 2007-06-22 15:25

3

Closed

None

Anthony Goubard

None

Planned for 2.1

Public


Comments ( 2 )




Date: 2007-07-04 15:42
Sender: agoubardProject Admin


Done (download spring.jar if not found in the lib directory). Will be in
2.1-alpha1.


Date: 2007-06-25 08:00
Sender: agoubardProject Admin


The first error is due to the location of the xins.properties is
incorrect.
The framework is looking for ..xins.properties instead of
../xins.properties


The fact that the spring package cannot be built is due to the fact that
the spring.jar is 2MB so it would also double the money.
Note that even if the build failed the Jar files have been created
(without the spring package).
Maybe the script should download the jar or put a warning in case of
building so changing this bug to a RFE



Log in to comment.

Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
status_id Open 2007-07-04 15:42 agoubard
close_date - 2007-07-04 15:42 agoubard
summary run-myproject example fails on Mac OS X 2007-06-26 09:29 agoubard
priority 5 2007-06-26 09:29 agoubard
artifact_group_id None 2007-06-26 09:29 agoubard
data_type 531817 2007-06-25 08:00 agoubard
assigned_to nobody 2007-06-25 08:00 agoubard