 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Paul Guest
|
Posted: Tue Dec 21, 2004 4:51 pm Post subject: JBuilder deleting my context.xml |
|
|
Hi everyone,
I created a JNDI resource for my application and deployed to Tomcat 5.5.4
manually and it worked fine,
but when I tried to run the application from within JBuilder I can't stop it
from reseting my application
context file located in "%catalinahome%/Tomcat5/conf/Catalina/localhost" and
META-INF directory.
The context file that goes on the META-INF directory is never included on
the war file when I rebuild
the application.
It's basically that, JBuilder resets my context.xml everytime I compile and
never copies it to META-INF,
and I have to deploy manually all the time otherwise Tomcat won't "see" my
JDBC/JNDI connection.
Any help is very much appreciated.
Thank you very much.
SAMPLE context file of my appication (%appname%.xml):
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="C:myappmyapp" path="/ipf" reloadable="true"
workDir="C:myappTomcatworkmyapp">
<Resource name="jdbc/myjdbc" auth="Container"
type="javax.sql.DataSource"
driverClassName="org.gjt.mm.mysql.Driver"
url="jdbc:mysql://localhost:3306/IPF" username="java"
password="developer" maxActive="20" maxIdle="10" maxWait="-1" />
</Context>
|
|
| Back to top |
|
 |
Paul Guest
|
Posted: Wed Dec 22, 2004 9:14 pm Post subject: Re: JBuilder deleting my context.xml |
|
|
any thoughts?
Thanks.
"Paul" <zorfael (AT) yahoo (DOT) com> wrote
| Quote: | Hi everyone,
I created a JNDI resource for my application and deployed to Tomcat 5.5.4
manually and it worked fine,
but when I tried to run the application from within JBuilder I can't stop
it
from reseting my application
context file located in "%catalinahome%/Tomcat5/conf/Catalina/localhost"
and
META-INF directory.
The context file that goes on the META-INF directory is never included on
the war file when I rebuild
the application.
It's basically that, JBuilder resets my context.xml everytime I compile
and
never copies it to META-INF,
and I have to deploy manually all the time otherwise Tomcat won't "see" my
JDBC/JNDI connection.
Any help is very much appreciated.
Thank you very much.
SAMPLE context file of my appication (%appname%.xml):
?xml version='1.0' encoding='utf-8'?
Context docBase="C:myappmyapp" path="/ipf" reloadable="true"
workDir="C:myappTomcatworkmyapp"
Resource name="jdbc/myjdbc" auth="Container"
type="javax.sql.DataSource"
driverClassName="org.gjt.mm.mysql.Driver"
url="jdbc:mysql://localhost:3306/IPF" username="java"
password="developer" maxActive="20" maxIdle="10" maxWait="-1" /
/Context
|
|
|
| Back to top |
|
 |
Lori M Olson [TeamB] Guest
|
Posted: Wed Dec 22, 2004 9:54 pm Post subject: Re: JBuilder deleting my context.xml |
|
|
Paul wrote:
| Quote: | any thoughts?
Thanks.
|
1. Most people ask web application questions in the servlets-jsps group
2. Most people aren't even trying to use Tomcat 5.5 yet, because
JBuilder doesn't officially support it yet.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
Paul Guest
|
Posted: Thu Dec 23, 2004 2:51 am Post subject: Re: JBuilder deleting my context.xml |
|
|
Hi,
I'm sorry about that, I just thust thought that would be
a deployment issue (deploy context.xml to run application),
and Tomcat 5.5.4 works fine, I just can't get 5.0 (bundled with JBuilder)
to read my JNDI definitions without erasing them everytime I build the
project.
Anyways, will post on the other group.
Thank you.
"Lori M Olson [TeamB]" <javadragon (AT) techie (DOT) com> wrote
|
|
| Back to top |
|
 |
Lori M Olson [TeamB] Guest
|
Posted: Thu Dec 23, 2004 4:32 pm Post subject: Re: JBuilder deleting my context.xml |
|
|
Paul wrote:
| Quote: | Hi,
I'm sorry about that, I just thust thought that would be
a deployment issue (deploy context.xml to run application),
and Tomcat 5.5.4 works fine, I just can't get 5.0 (bundled with JBuilder)
to read my JNDI definitions without erasing them everytime I build the
project.
Anyways, will post on the other group.
Thank you.
|
No need to apologise. It IS a deployment issue. I was just giving you
my thoughts as to why no one had responded to your original posting :-)
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
Karl Guest
|
Posted: Wed Jan 05, 2005 12:34 pm Post subject: Re: JBuilder deleting my context.xml |
|
|
I face exactly the same problem. Is there any way to tell JBuilder not to
delete the AppContext.xml? For now, my workaround is to work with a
nonembedded tomcat version,
but because of this I can't use the Jbuilder debug functionality any longer.
Tx, K.
"Lori M Olson [TeamB]" <javadragon (AT) techie (DOT) com> schrieb im Newsbeitrag
news:41caf339 (AT) newsgroups (DOT) borland.com...
| Quote: | Paul wrote:
Hi,
I'm sorry about that, I just thust thought that would be
a deployment issue (deploy context.xml to run application),
and Tomcat 5.5.4 works fine, I just can't get 5.0 (bundled with
JBuilder)
to read my JNDI definitions without erasing them everytime I build the
project.
Anyways, will post on the other group.
Thank you.
No need to apologise. It IS a deployment issue. I was just giving you
my thoughts as to why no one had responded to your original posting :-)
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|