Sumit,
my first guess would be to do the following: find out what the root of the
exception is. You have a number format exception, which is being caused by
Integer.parseInt() not getting an integer. I assume there is a null value in
the database, you'd need to discover why that's being returned or if it's
really in the db.
Liam Morley
-----Original Message-----
From: Sumit Ranjan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 4:12 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: two webapps ...one database !
hi there !
i have a question not entirely different from what u r discussing....
i am new to cocoon , so forgive if i ask something elementary.
i am using tomcat 3.2.2 as my servlet container , on which there are two
webapps running--jetspeed and cocoon. both of these webapps use hsql as
their default database and function well when used alone. however when i try
to access one from another( say , a cocoon form from a jetspeed portlet ! )
this throws an exception...like...
Error creating the resource
Could not add record
details
from
source org.apache.cocoon.ProcessingException
description org.apache.cocoon.ProcessingException: Could not add
record:java.lang.NumberFormatException:
http://localhost:8080/cocoon/forms/2111
extra info
java.lang.NumberFormatException: http://localhost:8080/cocoon/forms/2111
java.lang.NumberFormatException: http://localhost:8080/cocoon/forms/2111
at java.lang.Integer.parseInt(Integer.java:405)
at java.lang.Integer.<init>(Integer.java:540)
at
org.apache.cocoon.acting.AbstractDatabaseAction.setColumn(AbstractDatabaseAc
tion.java:579)
at
org.apache.cocoon.acting.AbstractDatabaseAction.setColumn(AbstractDatabaseAc
tion.java:352)
at
org.apache.cocoon.acting.AbstractDatabaseAction.setColumn(AbstractDatabaseAc
tion.java:338)
at
org.apache.cocoon.acting.AbstractDatabaseAction.setColumn(AbstractDatabaseAc
tion
my question is :
1) is it due to two different hsql databases who by no means are
connected...and if it is so , how to connect theses two hsql databases....or
rather how to have one HSQL database serving the two webapps ?
2) i had read somewhere that for this a possible solution is to run HSQL in
server mode.
can anybody please elaborate on this....i mean what does this mean and
how to accomplish this ?
hope its not too much i am asking...
thanking in advance,
sumit ranjan
----- Original Message -----
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 10:54 PM
Subject: RE: [C2] Webapp directory for development...
> > -----Original Message-----
> > From: Per Kreipke [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 24, 2001 12:10 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [C2] Webapp directory for development...
> >
> >
> > I hate to do this, but I'm still confused. Can anyone help?
> >
> > 7/25/01:
> >
> > Berin,
> >
> > > > Should I simply extract the C2 WAR into a new directory, let Tomcat
know
> > > > about it and work there until the app is done, then build it
> > > into a new WAR
> > > > and deploy it?
> > >
> > >
> > > This is the prefered development method. WAR files are for
deployment.
> >
> > Thanks! That makes sense to me. Follow up questions, if I may.
> >
> > 1. I could start with the entire contents of the WAR. But I'm wondering
if
> > the minimum set is:
> >
> > - sitemap.xmap (and only the necessary portions of it)
> > - cocoon.xconf (leave as is)
> > - WEB-INF/web.xml (no changes)
> > - WEB-INF/lib (leave as is or modify according do documentation on
required
> > libs)
> > - WEB-INF/db (drop if HSQL isn't needed)
>
> YES.
>
> >
> > I don't see that anything else is needed to start a new Cocoon based
webapp.
> > It might be nice to have an Ant build target that builds a new directory
> > (similar to the WAR target) but simpler.
> >
> >
> > 2. Can I create two webapp directories off of one copy of the Cocoon2
> > servlet?
>
> NO. One webapp - one cocoon instance.
>
> > Related question: if I have two copies of all the JARs in the
> > WEB-INF/lib directory, are separate instances of each used (and is that
a
> > waste of memory)?
>
> You may try and put all libs in global (to servlet engine) classpath.
> It may work and may not - depending on serlvet engine and configuration,
etc.
>
> Vadim
>
> >
> > Thanks, Per.
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> >
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>