File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how run jsp from Jbuilder using Weblogic?

 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how run jsp from Jbuilder using Weblogic? I just want to run a very simple JSP, but I do not know how to make it worked. please help.
 
Amy Nelson
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure how you'd run the jsp from jbuilder on weblogic, but you could register a web application on weblogic and stick the jsp file under that directory - it should run fine. I have JBuilder 5 and WL 6.1..and basically run a Web App on WL6.1 with my jsp files from JBuilder and they run great.
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell me the detail.
 
John Fontana
Ranch Hand
Posts: 235
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can select your server in the Project Properties. It will use Tomcat by default. What version of Weblogic? I cannot use it with Weblogic 7, only 6.1 and prior. If you cannot select Weblogic there, then you must use Enterprise Setup for JBuilder to find it.
JBuilder is about to release version 7, so it will probably support WL7.
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I set up web server to weblogic6.1. After I created a simple Jsp web applcation, I tried to deploy it to the weblogic and got error. I wonder if there is any worng with my setting or there is any other way to run jsp from weblogic.
Please help
[ May 22, 2002: Message edited by: Robin Zhang ]
 
John Fontana
Ranch Hand
Posts: 235
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Robin Zhang:
I set up web server to weblogic6.1. After I created a simple Jsp web applcation, I tried to deploy it to the weblogic and got error. I wonder if there is any worng with my setting or there is any other way to run jsp from weblogic.
Please help
[ May 22, 2002: Message edited by: Robin Zhang ]

Can you provide more details on the error you are getting? You should be able to preview the JSP in JBuilder by running the application from within the IDE.
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a simple web app. It has only one jsp file and one javabean class. I was trying to run in Jbuilder6 using weblogic6.1. , it failed. The problem seems like I could not deploy my wepapp to the weblogic correctly. After one whole day's
trying,I could not figure out the problem.
I tried to change "enterprise setup" and "project properties",but do not know why? following is the message from Jbuilder.
Please advise.
Thank you very much

---------------------------------------------------------------------
"D:\JBuilder6\jdk1.3.1\bin\javaw -classpath ";C:\bea\wlserver6.1
\lib\weblogic_sp.jar;C:\bea\wlserver6.1
\lib\weblogic.jar;D:\corejava\jspturtorial\classes;C:\bea\wlserver6.1
\lib\weblogic_sp.jar;C:\bea\wlserver6.1\lib\weblogic.jar;D:\JBuilder6
\jdk1.3.1\demo\jfc\Java2D\Java2Demo.jar;D:\JBuilder6\jdk1.3.1
\jre\lib\i18n.jar;D:\JBuilder6\jdk1.3.1\jre\lib\jaws.jar;D:\JBuilder6
\jdk1.3.1\jre\lib\rt.jar;D:\JBuilder6\jdk1.3.1
\jre\lib\sunrsasign.jar;D:\JBuilder6\jdk1.3.1\lib\dt.jar;D:\JBuilder6
\jdk1.3.1\lib\htmlconverter.jar;D:\JBuilder6\jdk1.3.1
\lib\tools.jar;D:\j2sdkee1.3\lib\j2ee.jar;D:\j2sdkee1.3
\lib\ejb10deployment.jar;D:\j2sdkee1.3\lib\j2ee-ri-
svc.jar;D:\j2sdkee1.3\lib\jhall.jar;D:\corejava\jps1.1.2
\src\lib\ant\lib\xml.jar;" weblogic.deploy -component
jspwebapp:myserver update administrator jspwebapp
D:/corejava/jspturtorial/jspwebapp.war
java.lang.OutOfMemoryError
<<no stack trace available>>
Exception in thread "main"
-------------------------------------------------------------------
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following is error messages: //** <Notice> <Management> <Loading configuration file .\config\mydomain\config.xml ...> <Apr 9, 2002 8:17:46 AM EST> <Notice> <WebLogicServer> <Starting WebLogic Admin Server "myserver" for domain "mydomain"> <Apr 9, 2002 8:18:31 AM EST> <Error> <J2EE> <Error deploying application TestWeb: Could not load TestWeb> <Apr 9, 2002 8:18:31 AM EST> <Error> <Management> <ApplicationManager starting Config caught throwable java.lang.reflect.UndeclaredThrowableException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:469) at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234) at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407) at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376) at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:163) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy31.addWebDeployment(Unknown Source) at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279) at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233) at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy30.updateDeployments(Unknown Source) at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2761) at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:370) at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:160) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy40.start(Unknown Source) at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480) at weblogic.management.Admin.startApplicationManager(Admin.java:1180) at weblogic.management.Admin.finish(Admin.java:590) at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203) at weblogic.Server.main(Server.java:35) --------------- nested within: ------------------ weblogic.j2ee.DeploymentException: Could not load TestWeb - with nested exception: [java.lang.StringIndexOutOfBoundsException: String index out of range: -1] at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:163) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy31.addWebDeployment(Unknown Source) at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279) at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233) at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy30.updateDeployments(Unknown Source) at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2761) at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:370) at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:160) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy40.start(Unknown Source) at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480) at weblogic.management.Admin.startApplicationManager(Admin.java:1180) at weblogic.management.Admin.finish(Admin.java:590) at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203) at weblogic.Server.main(Server.java:35) > <Apr 9, 2002 8:18:31 AM EST> <Notice> <Management> <Application Poller not started for production server.> <Apr 9, 2002 8:18:32 AM EST> <Notice> <WebLogicServer> <ListenThread listening on port 7001> <Apr 9, 2002 8:18:32 AM EST> <Notice> <WebLogicServer> <SSLListenThread listening on port 7002> <Apr 9, 2002 8:18:33 AM EST> <Notice> <Management> <Starting discovery of Managed Server... This feature is on by default, you may turn this off by passing -Dweblogic.management.discover=false> <Apr 9, 2002 8:18:33 AM EST> <Notice> <WebLogicServer> <Started WebLogic Admin Server "myserver" for domain "mydomain" running in Production Mode> " **// Thanks.
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running WebLogic Server 6.1. I was able to start it, and run my jsp's placed in the DefaultWebApp Directory. However, I then used JBuilder Enterpise Version 6 to Make/Rebuild my project. The MAKE was successful. But I then tried to re-start my WebLogic server, and I get the following error message -> "Error deploying application DefaultWebApp: Could not load DefaultWebApp"...and I am not able to run my jsp's anymore. Does anyone know what does JBuilder do behind the scenes when Making a project, to cause this??? Would really appreciate all the help, thanks, -- Jay
 
Amy Nelson
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The suggestion I was thinking was ... creating your own Web Application. But, if you run the jsp file under the defaultApp - you should be able to run your jsp on the weblogic server (i have never used jbuilder with weblogic before.. locally i test my code and then i move it to the weblogic server and test it). You should be able to get to your jsp by using something similar to this: http://<weblogichttp://[weblogicserver name]:7001/DefaultWebApp/[jsp filename]. Let me know if that works.
good luck.
[ May 30, 2002: Message edited by: Moon ]
 
Amy Nelson
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Moon:
The suggestion I was thinking was ... creating your own Web Application. But, if you run the jsp file under the defaultApp - you should be able to run your jsp on the weblogic server (i have never used jbuilder with weblogic before.. locally i test my code and then i move it to the weblogic server and test it). You should be able to get to your jsp by using something similar to this: *weblogicserver name*:7001/DefaultWebApp/*jsp filename*. Let me know if that works.
good luck.
[ May 30, 2002: Message edited by: Moon ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Moon",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
 
Vidya Sagar Pallikonda
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too got the same error. do you have any solustion for this.I am using the struts frame work.
here is my complete error.
[Reams and reams of error message removed. Please pare your error down to the pertinent details. bear]
[ October 22, 2003: Message edited by: Bear Bibeault ]
 
suresh mulagala
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have the same problem...I have an application that works fine with weblogic 5.1 where I had deployed my servlets...now the problem is that I want to remove the html from the servlet and use JSP. I dont know where to start...how to configure the weblogic 5.1 and is there anything that i need to download and install?
I know a better solution is apache or smilar, but i already have part of the application configured completely on weblogic 5.1, its too critical to move it from there...i need to append the jsp to the already existing application...please help....
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this has become weblogic-specific, I'm going to move this along to the weblogic forum.
bear
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic