I'm now using Weblogic 6.0 SP 2 for development. I did a test application, containing EJBs, and a JSP. Package the applications to an EAR file. Then I deploy the test application using hot-deploy - just drop the EAR into the domain\application folder. When I call the JSP page, I get an error saying that the package I'm importing is not found. What is wrong?? The test application works on Weblogic 5.1 My WAR file contains only the JSP and XML descriptor. Do I need to include classes inside??? Don't think that is correct. Please advise.
We need to know a little more about the structure and contents of your .ear file. I assume your .ear file contains a .war file, and the application.xml deployment descriptor for your .war file. And your .war file contains the correct directory structure (.jsp files and /WEB-INF directory, and your web.xml file is contained inside your /WEB-INF directory). Also, check that you calling your .jsp file from the same URI named in your web.xml file.
posted 19 years ago
Ha...just found out I made a mistake in the application.xml The JAR file was specified wrongly Anyway, the re-deployment was not too intuitive as I needed to shutdown server. Change the JAR reference inside the config.xml for the application block. Replace the EAR file. Restart server. Is there any other way to redeploy?? The undeployment is also very weird. It does not really undeployed, just mark the application and not load it. Maybe good in some ways, not too sure.