File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Deploying Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Deploying Servlets" Watch "Deploying Servlets" New topic
Author

Deploying Servlets

drew_ramakris
Greenhorn

Joined: Sep 20, 2001
Posts: 2
I have my servlets and JSPs running in JRun. I want to be able to deploy them in WebLogic6.0.
The steps I followed are :
1. start wl server.
2. Logon to admin console.
3. Tried to create a new webApplication. There are three fields in there
a. Name : I gave it a name
b. URL: I gave it the war file location c:/tracking
c. Path: I left it blank.
Checkbox "Deployed" which i left checked.
I clicked on Create and got an error.[at end of this message]
I am stuck. What are the steps I need to follow to be able to deploy my servlets in WLS.
Any help is greatly appreciated.
Thanks
--------------------------------
ERROR MSG:

An unexpected error was encountered in processing your request.
Exception
java.lang.NullPointerException
at weblogic.management.console.pages._panels._mbean._webappcomponent._jspService(_webappcomponent.java:212)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Current Date
Wed Sep 26 12:45:36 CDT 2001
Product Version
WebLogic Server Build:6.0 12/13/2000 22:49:45 #94427
WebLogic XML Module:6.0 12/13/2000 23:02:44 #94427

Request Info
Protocol: HTTP/1.1
ServerName: localhost
ServerPort: 7001
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString: null
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: null
ContentType: application/x-www-form-urlencoded
CharacterEncoding: null
Locale: en_US
Method: POST
Session: weblogic.servlet.internal.session.MemorySession@2c2d3c
RequestedSessionId: O7IRPuiuzIm1yl8WR176gifNu5xaWgYppyQ3DhFP2uH2IQ1t9Cfv|-123479602753973866/-1062731364/7001/7002
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: null
RemoteUser: null
RemoteAddr: 127.0.0.1
RemoteHost: 127.0.0.1
Parameters
CreateButton = Create
control_Name = tracking
control_Path =
control_URI = c:\tracking.jar
dirty_Deployed = true
dirty_Name = true
dirty_Path = true
dirty_URI = true
mbean = ejbcourse:Type=Domain,Name=ejbcourse
Attributes
console.original./console/common/error.jsp.ContextPath = /console
console.original./console/common/error.jsp.Method = POST
console.original./console/common/error.jsp.RequestURI = /console/common/error.jsp
console.original./console/common/error.jsp.ServletPath = /common/error.jsp
console.original./console/panels/mbean/WebAppComponent.jsp.ContextPath = /console
console.original./console/panels/mbean/WebAppComponent.jsp.Method = POST
console.original./console/panels/mbean/WebAppComponent.jsp.QueryString = mbean=ejbcourse%3AType%3DDomain%2CName%3Dejbcourse
console.original./console/panels/mbean/WebAppComponent.jsp.RequestURI = /console/panels/mbean/WebAppComponent.jsp
console.original./console/panels/mbean/WebAppComponent.jsp.ServletPath = /panels/mbean/WebAppComponent.jsp
console.preferences.ContextKey = /panels/mbean/WebAppComponent.jsp
javax.servlet.include.context_path = /console
javax.servlet.include.request_uri = /console/common/requestinfo.jsp
javax.servlet.include.servlet_path = /common/requestinfo.jsp
javax.servlet.jsp.jspException = java.lang.NullPointerException
weblogic.management.console.tags.ContentTag = java.lang.Object@5a366c
weblogic.management.console.tags.HeaderTag = java.lang.Object@2b29ed
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
Accept-Encoding = gzip, deflate
Accept-Language = en-us
Connection = Keep-Alive
Content-Length = 160
Content-Type = application/x-www-form-urlencoded
Cookie = JSESSIONID=O7IRPuiuzIm1yl8WR176gifNu5xaWgYppyQ3DhFP2uH2IQ1t9Cfv|-123479602753973866/-1062731364/7001/7002|/console
Host = localhost:7001
Referer = http://localhost:7001/console/panels/mbean/WebAppComponent.jsp?mbean=ejbcourse%3AType%3DDomain%2CName%3Dejbcourse
User-Agent = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
IE: true
Netscape: false
Supported: true
JavscriptHrefs: false
TableCellClick: true
DocumentReloadedOnResize: false
DropdownStretchable: true
CellSpacingBlank: false
EmptyCellBlank: false
ImgOnclickSupported: true
TableBorderFancy: true
PartialToWideTables: false
Server System Properties
awt.toolkit = sun.awt.windows.WToolkit
bea.home = c:\bea
cloudscape.system.home = ./config/ejbcourse
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \
java.awt.fonts =
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = .;c:\bea\wlserver6.0\lib\ejb20.jar;c:\bea\wlserver6.0\lib\weblogic.jar;c:\bea\wlserver6.0\lib\weblogic_sp.jar;c:\bea\wlserver6.0\samples\eval\cloudscape\lib\tools.jar;c:\bea\wlserv er6.0\samples\eval\cloudscape\lib\client.jar;c:\bea\wlserver6.0\samples\eval\cloudscape\lib\cloudscape.jar;c:\bea\jdk130\lib\tools.jar;c:\bea\wlserver6.0\config\ejbcourse\student
java.class.version = 47.0
java.ext.dirs = c:\bea\jdk130\jre\lib\ext
java.home = c:\bea\jdk130\jre
java.io.tmpdir = C:\DOCUME~1\DRAMA~1.TRA\LOCALS~1\Temp\
java.library.path = c:\bea\jdk130\bin;.;C:\WINNT\System32;C:\WINNT;c:\bea\wlserver6.0\bin;c:\bea\jdk130\bin;c:\bea\wlserver6.0\bin;c:\bea\jdk130\bin;c:\bea\wlserver6.0\bin;c:\bea\jdk130\bin;C:\Borland \AppServer\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory
java.naming.factory.url.pkgs = weblogic.jndi.factories
java.protocol.handler.pkgs = weblogic.net|weblogic.management|weblogic.utils|weblogic.utils|weblogic.utils
java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version = 1.3.0-C
java.security.policy = =c:\bea\wlserver6.0\lib\weblogic.policy
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.3
java.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.3.0
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Sun Microsystems Inc.
java.vm.version = 1.3.0-C
javax.rmi.CORBA.PortableRemoteObjectClass = weblogic.iiop.PortableRemoteObjectDelegateImpl
javax.rmi.CORBA.UtilClass = weblogic.iiop.UtilDelegateImpl
javax.xml.parsers.DocumentBuilderFactory = weblogic.xml.jaxp.RegistryDocumentBuilderFactory
javax.xml.parsers.SAXParserFactory = weblogic.xml.jaxp.RegistrySAXParserFactory
jmx.implementation.name = JMX RI
jmx.implementation.vendor = Sun Microsystems
jmx.implementation.version = 1.0
jmx.specification.name = Java Management Extensions
jmx.specification.vendor = Sun Microsystems
jmx.specification.version = 1.0 Final Release
line.separator =
os.arch = x86
os.name = Windows 2000
os.version = 5.0
path.separator = ;
sun.boot.class.path = c:\bea\jdk130\jre\lib\rt.jar;c:\bea\jdk130\jre\lib\i18n.jar;c:\bea\jdk130\jre\lib\sunrsasign.jar;c:\bea\jdk130\jre\classes
sun.boot.library.path = c:\bea\jdk130\jre\bin
sun.cpu.endian = little
sun.cpu.isalist = pentium i486 i386
sun.io.unicode.encoding = UnicodeLittle
user.dir = C:\bea\wlserver6.0
user.home = C:\Documents and Settings\drama.TRAININGONE
user.language = en
user.name = drama
user.region = US
user.timezone = America/Chicago
weblogic.Domain = ejbcourse
weblogic.Name = myserver
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1825
"drew_ramakris"
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 log in with a new name which meets the requirements.
Thanks.
------------------

Mahindrakar
IBM Application Server & Developer Forum Moderator

Consultant - Zensar Technologies ,Pune India.
SCJP2, SCJD2 & SCJEA (Part I)
 
 
subject: Deploying Servlets
 
Threads others viewed
Calling EJB in JSP
BEA Weblogic Server goes down
weblogic 6.0 on win98, error on starting default server
weblogic 6.0 , how to start the server???on win98
Starting Weblogic server fine in Eclipse, but seems like project not being deployed.
developer file tools