Author | Message | ||||||
---|---|---|---|---|---|---|---|
|
|||||||
Offline |
Hi all,
Any hints would be much appreciated. Thanks!
|
||||||
Ross Parrent Support Engineer | Sales Engineering | ATAC-Technicenter Highlands Ranch, CO 80129 | 720-444-8135 one number |
|||||||
|
|||||||
Offline |
This error usually indicate the data source definition is missing in the context xml file. To verify the context file, first check if there is a <appname>.xml file in the Tomcat/catalina/localhost directory. If it exists, that the file Tomcat is looking at for the data source information. If not, the context.xml file in the app's META-INF directory is being used. So you need to verify if the context xml file has the data source name matching the data source you have defined in OD.
For example: <Resource ... name="name="jdbc/<od datasource name" ... </Resource> |
||||||
|
|||||||
Offline |
Thanks Wilson,
What would be the cause of this...is there an Eclipse export parameter that I have failed to set? Otherwise, do I need to add these files manually to this directory? Thanks! |
||||||
Ross Parrent Support Engineer | Sales Engineering | ATAC-Technicenter Highlands Ranch, CO 80129 | 720-444-8135 one number |
|||||||
|
|||||||
Offline |
It is the copyXML parameter in Tomcat. This parameter is defaulted to false for newer Tomcat systems:
https://tomcat.apache.org/tomcat-7.0-doc/config/host.html Regardless, the context.xml file in META-INF should be used instead. The <appname>.xml is just a copy of it. |
||||||
|
|||||||
Offline |
Well, if that's the case, then it's not the problem apparently. Where is the "hosts.xml" file to be found? I think I've looked everywhere.
where the upgrade system showed
, i.e. only a single instance of "dbcp". I tested, but that made no difference.
Referencing the other forum post, here, I'm curious if the system is interpretting "jdbc" as the name of the datasource?
|
||||||
Ross Parrent Support Engineer | Sales Engineering | ATAC-Technicenter Highlands Ranch, CO 80129 | 720-444-8135 one number |
|||||||
|
|||||||
Offline |
If you are moving from TC 6 to 7, you should not have this problem. The difference in using the <Resource> and <ResourceParams> tags are between TC 5 and TC 6, and TC 6 and TC 7 are exactly the same. So I suspect you are trying to move apps running on TC 5.* to TC 7. The proper way to do is importing the apps into the OD environment which is using TC 7 and export the package for deployment from there. OD will translate the context format automatically to run on the TC 7 environment.
|
||||||
|
|||||||
Offline |
I have been re-developing the entire application on OD 7 for TC 7. I'm not really migrating anymore. According to the Tomcat Manager on the legacy server, per the attached screen shot, the version is:
I have a totally clean build - no errors or warnings - of all three modules as linked in my original post.
|
||||||
Ross Parrent Support Engineer | Sales Engineering | ATAC-Technicenter Highlands Ranch, CO 80129 | 720-444-8135 one number |
|||||||
|
|||||||
Offline |
OK. I get that all three modules are built in OD 7 and TC 7, and they are tested in simulated. Correct? Then you exported them for deployment and found the "Name jdbc is not bound in this Context" error. Correct? Can you post the context.xml from the app's META-INF in the Tomcat/WebApps/<appname> directory? Can you post the screenshot of the web browser after loading the validation page http://ip:port/<appname>/jsp/validate-db.jsp from the deployed app?
|
||||||
|
|||||||
Offline |
The context page from the Upgrade system is posted here.
|
||||||
Ross Parrent Support Engineer | Sales Engineering | ATAC-Technicenter Highlands Ranch, CO 80129 | 720-444-8135 one number |
|||||||
|
|||||||
Offline |
There are two things to check out here.
1) Is your applications are referring any host layer (Java Project) If yes then go and check in the code on which properties file your reading dataBase name and context path. 2) If your not referring any java project then your work is straight forward as you will get all the dbop files automatically in your set-Up. Also please make sure that your importing all the necessary jar files.... Hope this helps... |
||||||
|
|||||||
Offline |
You need to test first in the design environment and make sure it works in simulation. That way, you know if something is wrong with the context definition. If there is something wrong there ( i.e. the data source may not be in sync with the context definition), you can correct it by deleting it and updating it using the right-click menu on the project.
Also, your validate page information seems not quite right; the scert jar file is newer than the scertcommon jar. I am also interested in the information on the validate-db.jsp page as I asked earlier. The bottom line is you test your app in the design environment. If everything works fine there, you export the app from there for deployment. |
||||||
|
|||||||
Offline |
Hi Wilson,
Attached is the validate-db.jsp screen shot. Lot's of clues there.
|
||||||
Ross Parrent Support Engineer | Sales Engineering | ATAC-Technicenter Highlands Ranch, CO 80129 | 720-444-8135 one number |
|||||||
|
|||||||
Offline |
I see that the sqljdbc.jar file is in the app's webinf/lib directory. You need to copy it into the Tomcat lib directory since Tomcat connection pool is using it. After you make any change in the library files, make sure you restart Tomcat.
|
||||||
|
|||||||
Offline |
I see that the sqljdbc.jar file is in the app's webinf/lib directory. You need to copy it into the Tomcat lib directory since Tomcat connection pool is using it. After you make any change in the library files, make sure you restart Tomcat.
|
||||||
|
|||||||
Offline |
on the DB validation page, I click the "go" button to connect to the database as defined. I receive back the following error:
|
||||||
Ross Parrent Support Engineer | Sales Engineering | ATAC-Technicenter Highlands Ranch, CO 80129 | 720-444-8135 one number |
|||||||