Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

running a application in a different machine  RSS feed

 
Betsy Camel
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have created a new application using jsp, usebean. The application works fine in my machine, but when i tried to run it from another machine(a standalone) by installing the application. It gives an error saying "the class "tool.sqlconnect" doesnot not exist.this is a jsp bean. ie i have compiled the sqlconnect bean & placed it in the appropriate folder in tomcat.
Can anyone tell me what is the problem & why this arises.

Thanks in advance
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most probably, your server cant see your DB driver.
Try to place your driver .jar file in

your_application/WEB-INF/lib

It would work fine, insha allah. Otherwise, please print the error stack here.
[ October 28, 2005: Message edited by: Adeel Ansari ]
 
Betsy Camel
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting the error only when i try to run the same application in different machine. The error which i am getting is with the bean alone. it says "Use bean not found ".

IS it that a internal problem with the use bean.can anyone resolve it
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not related to internal problem of a bean.

Because you don’t have required bean in class path, at runtime you application is showing error.

Is your jar file that contains all your bean in class path?
 
Betsy Camel
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whats this jar file u r talking about? The compiled class file has been kept in the required package structure! can u plz tell me what this class path u r talking about....
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Betsy Camel, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

thanks,
bear
Forum Bartender
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!