• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

weblogic jsp/servlet deployment

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to weblogic and I have installed weblogic 8.1 in my machine.

I have configured a new domain by name TSdomain.

Its directory structure is :
C:\bea\user_projects\domains\TSdomain\

I have placed a folder by name defaultWebApp under C:\bea\user_projects\domains\TSdomain\applications

defaultWebApp
->index.jsp
WEB-INF
--> classes(HelloWorld.class)
--> weblogic.xml
--> web.xml

Now when I am trying http://localhost:7001/index.jsp
page is not displaying.

please clarify these questions.

1) I havent modified any of the files setEnv.cmd, config.xml or startweblogiccmd.

2) I havent set the class path.
Do I need to set the class path.

I worked in tomcat and not able to figure out thsi thing.

weblogic.xml
------------

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE weblogic-web-app
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>
pageCheckSeconds
</param-name>
<param-value>
1
</param-value>
</jsp-param>
<jsp-param>
<param-name>
verbose
</param-name>
<param-value>
true
</param-value>
</jsp-param>
</jsp-descriptor>

<virtual-directory-mapping>
<local-path>@SAMPLES_HOME/server/</local-path>
<url-pattern>/examples/*</url-pattern>
</virtual-directory-mapping>

</weblogic-web-app>

Please help me in this regard.

Thanks
Krishna Mohan
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
U need to do the following

1) start the server
2) set the required class paths(this is must)
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

after the server is started go to admin console http://localhost:7001/console
provide username and password and then under deployments>>web applications find defaultWebApp web application check it and click deploy. After that, if you get a sucessful deply, you should be able to access the application using the url: http://localhost:7001/defaultWebApp/index.jsp. And you don't need that stuff on your weblogic xml, you may let it empty (only the root tag) for a start.
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic