Hi Kevin,

I had even tried with jdk1.4.1.

Notting the issues of the error I tried setting a absolute path as "dbroot" attribute of "root-collection in " /WEB-INF/system.xml. But the result was same.

As far as Jetty is concerned, it supports Web Applications as WAR files.

For your reference I am sending you few lines from its site:

"If the WAR file contains jars or zips, these are extracted to temporary locations.

If the WAR file contains JSPs which are compiled against classes also in the WAR file, then compilation fails as the java compiler cannot handle URL classpaths (eg jar:file:/my.war!/WEB-INF/classes). In this situation, the user should unpack the war file manually or during deployment. "

Hope you will throw some light on this by consulting the folks on the Jetty list.


Avik Chatterjee Aunwesha Knowledge Technologies Pvt. Ltd. Calcutta

From: "Kevin Ross" <[EMAIL PROTECTED]>
To: "'Avik Chatterjee'" <[EMAIL PROTECTED]>
Subject: RE: Xindice1.1 as webapps context in Jetty
Date: Fri, 9 May 2003 09:13:48 -0600

First, let me say that I've encountered several issues with the
jdk1.4.0.  Before proceeding further, I would upgrade your jdk to 1.4.1
or the latest.  This may help with the war issue(I'm not currently a
Jetty user, so I can't tell you if the server requires an active
deployment vs. dropping in a war file).

The log seems to also have some very helpful information.  Have you
corrected the issue noted?

<<snip>>
The database configuration points to a relative path, but there was no
xindice.home property set. Furthermore, the war was not unpacked by the
application server so Xindice was unable to find a database location
Please check /WEB-INF/system.xml and set an absolute path as the
"dbroot" attribute of "root-collection" or specify a suitable
xindice.db.home system property.
<</snip>>

I hope this is a good starter.  For more on the war unpacking problem
(after trying with a new jdk), I would consult the folks on the Jetty
list.

-Kevin Ross

-----Original Message-----
From: Avik Chatterjee [mailto:[EMAIL PROTECTED]
Sent: Friday, May 09, 2003 12:51 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Xindice1.1 as webapps context in Jetty



Hi Kevin,

My JVM version is Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed
mode).

My first problem is that, after placing the war file in the webapps and
running the server(Jetty), it is unable to extract Xindice.

After manually extracting the xindice in the folder xindice-1.1b1 and
running database is successfully started but still a error is arrising
in
the console. while trying to create collection it is giving an error in
register Database. Probably the db is not initialised.

The error message is as follows:

11:59:01.767 EVENT  Checking Resource aliases
11:59:02.288 EVENT  Starting Jetty/4.1
11:59:02.298 EVENT  Started HttpContext[/]
11:59:05.272 EVENT  Started WebApplicationContext[/xindice-1.1b1,Apache
Xindice]

May 9, 2003 11:59:10 AM org.apache.xindice.server.XindiceServlet init
WARNING: The database root directory has been set to
C:\WINNT\Profiles\Administr
ator\Desktop\arijit\PersnlLernITy\webapps\xindice-1.1b1\WEB-INF\./db/.
Keep
in m
ind that if a war upgrade will take place the database will be lost.
May 9, 2003 11:59:10 AM org.apache.xindice.core.Database setConfig
INFO: Database points to
C:\WINNT\Profiles\Administrator\Desktop\arijit\PersnlLe
rnITy\webapps\xindice-1.1b1\WEB-INF\.\db
May 9, 2003 11:59:12 AM org.apache.xindice.server.XindiceServlet init
INFO: Database successfully started
11:59:15.747 EVENT  Started WebApplicationContext[/xindice-1.1b1,Apache
Xindice]
--------------------------------------------------
classpath printed here

-----------------------------------
May 9, 2003 11:59:17 AM org.apache.xindice.server.XindiceServlet init
SEVERE: The database configuration points to a relative path, but there
was
no x
indice.home property set. Furthermore, the war was not unpacked by the
applicati
on server so Xindice was unable to find a database location Please check

/WEB-IN
F/system.xml and set an absolute path as the "dbroot" attribute of
"root-collect
ion" or specify a suitable xindice.db.home system property.
11:59:18.651 WARN!! No Realm: Example Form-Based Authentication Area
11:59:18.681 EVENT  Started
WebApplicationContext[/scorm,file:/C:/WINNT/Profiles
/Administrator/Desktop/arijit/PersnlLernITy/webapps/scorm/]
11:59:18.701 EVENT  ContextListener: contextInitialized()
11:59:18.701 EVENT  SessionListener: contextInitialized()
11:59:19.392 EVENT  ContextListener:
attributeAdded('javax.servlet.context.tempd
ir',
'C:\WINNT\Profiles\ADMINI~1\LOCALS~1\Temp\Jetty__12346_localhost_scorm')
jdbc:hsqldb:test
sa

./temp
./webapps/scorm/Content/
./webapps/scorm/servlets
LMSCMIServlet Initialized
11:59:21.295 EVENT  Extract
file:/C:/WINNT/Profiles/Administrator/Desktop/arijit
/PersnlLernITy/webapps/index.html to
C:\WINNT\Profiles\ADMINI~1\LOCALS~1\Temp\Je
tty__12346_localhost_index_html\webapp
11:59:21.495 EVENT  Started
WebApplicationContext[/index.html,file:/C:/WINNT/Pro
files/Administrator/Desktop/arijit/PersnlLernITy/webapps/index.html]
11:59:21.706 EVENT  Started SocketListener on 0.0.0.0:12346
org.mortbay.util.MultiException[javax.servlet.ServletException: Error
while
hand
ling the configuration, javax.servlet.ServletException: Could not load
database
configuration]
        at org.mortbay.http.HttpServer.start(HttpServer.java:654)
        at browser.frmBrowser.setupjetty(frmBrowser.java:86)
        at browser.frmBrowser.<init>(frmBrowser.java:53)
        at browser.browserLT.<init>(browserLT.java:11)
        at browser.browserLT.main(browserLT.java:46)
javax.servlet.ServletException: Error while handling the configuration
        at
org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:185
)
        at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:225)

        at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHa
ndler.java:443)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(We
bApplicationHandler.java:163)
        at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationC
ontext.java:492)
        at org.mortbay.http.HttpServer.start(HttpServer.java:677)
        at browser.frmBrowser.setupjetty(frmBrowser.java:86)
        at browser.frmBrowser.<init>(frmBrowser.java:53)
        at browser.browserLT.<init>(browserLT.java:11)
        at browser.browserLT.main(browserLT.java:46)
javax.servlet.ServletException: Could not load database configuration
        at
org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:122
)
        at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:225)

        at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHa
ndler.java:443)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(We
bApplicationHandler.java:163)
        at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationC
ontext.java:492)
        at org.mortbay.http.HttpServer.start(HttpServer.java:677)
        at browser.frmBrowser.setupjetty(frmBrowser.java:86)
        at browser.frmBrowser.<init>(frmBrowser.java:53)
        at browser.browserLT.<init>(browserLT.java:11)
        at browser.browserLT.main(browserLT.java:46)




>From: "Kevin Ross" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: RE: Xindice1.1 as webapps context in Jetty Date: Thu, 8 May 2003 >10:35:12 -0600 > >Hello Avik, > >You may have better luck getting an answer if you describe the symptoms >first. We cannot help you with the vague information provided. > >Are there any stack traces in the logs? On the console? What JVM >version? > >-Kevin Ross > >-----Original Message----- >From: Avik Chatterjee [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 08, 2003 6:49 AM >To: [EMAIL PROTECTED] >Subject: Xindice1.1 as webapps context in Jetty > >Hi Guys, > >I have succeded in running Xindice1.1 as webapps context in Tomcat but I >am >unable to do so in Jetty. >My version of Jetty is 4.1.2 > >Any Help in this regard is welcome. However thanks in advance. > >Avik Chatterjee >Aunwesha Knowledge Technologies Pvt. Ltd. >Calcutta

_________________________________________________________________
Win a PC. Every 15 days! http://server1.msn.co.in/sp03/hclbeanstalktour/index.asp Just take this quiz.




Reply via email to