Well, I got an .EAR file created with JDev 10.1.3 to deploy on my 10.1.2 OAS yesterday, but today with a new project I get the above error.
This is an issue with the configuration files being J2EE 1.5-compliant when they need to be J2EE 1.4-compliant.
I have tried searching the directory for the xmlns.xsi attribute, and found a few files with it. Then I reliazed I hadn't changed the J2EE library for the deployment project. I changed it, regenerated the .EAR file, but I'm still getting the error. I also followed the instructions in table 34-3 of the ADF Developers Guide for Forms/4GL Developers, but still getting the error. Tried deleting the OC4J container on the OAS 10.1.2 server in case it was trying to deploy the old .EAR from a temp file, but that didn't work either.
I also created a new deployement profile with a different name, generated an .EAR file with that name, and am still getting the error. A search of the directory for the xmlns.xsi. tag shows it doesn't exist! Why then is OAS complaining? Where is it finding this tag? What the heck is going on?
I'm sure I've missed one simple step, and when I find it I'll post the whole process here step-by-step so I don't have to keep figuring it out each time I want to deploy from JDev 10.1.3 to OAS 10.1.2.
This is why there are dents in the walls surrounding my cubicle - dents shaped like my forehead.
Update: Okay, got it to work. I kept it as simple as possible, creating J2EE 1.4-compliant configuration files for the project, turning off the automatic data-sources.xml creation option in JDev's preferences, and created an .EAR file from the project itself instead of creating a seperate project just for deployment.
So, as promised, here's the steps I'm using to develop and deploy a project from JDev 10.1.3 to OAS 10.1.2:
- Turned off default data-sources.xml generation in JDev's Tools -> Preferences dialog.
- After creating the application and adding a project, changing the project properties libraries options to use J2EE 1.4 (more on how to do this on ADF Developers' Guide section 22-11).
- Created the following J2EE 1.4-compliant configuration files in the project properties dialog (more info in the ADF Developers' Guide for Forms/4GL Developers table 34-3):
- application.xml
- web.xml
- orion-application.xml
I didn't create data-sources.xml or oc4J-connections.xml configuration files because my apps are very simple - a http servlet and html page. I will probably have to add them when I move on to my JSP which will have to query a 10g database.
Time for lunch - woohoo!
Labels: configuration, J2EE, JDeveloper