Is weblogic 8.1.1 capapble of having a default web app on virtual hosts?
I have a number of virtual host being served on the same weblogic 8.1.1
server. For example, say www.abc.com , www.def.com and www.ghi.com and they
each have their own directory underneath the applications directory ABC,
DEF, GHI. When the user types out http://www.abc.com or def.com or even
www.ghi.com, I would like weblogic to automatically goto the appropriate web
app I want to associated with each virtual host.
Is this possible? So far, I've seen it can't.
I put in the <context-root>/</context-root> in the weblogic.xml file, but
the server only lets you have one context root. So the first web app to
load gets the context root, so www.def.com can get the DEF application, but
the rest of them have to have some context, in other words www.abc.com/ABC
or even www.abc/GHI will work, but I don't want that! This was easily
configurable in 7.0SP1+2. Where and how do I do this in 8.1.1?
If you've tried this and got it to work, please post any files you might
have that are useful? I'm not sure where to goto next. Thanks.
I think I found out what my problem is. There appears to be no restrictions
in the server for the virtual host name being the same name as the
application name. When there is, WLS seems to lose control of where to goto
in the config.xml file. I just prefixed my virtual host names with 'vh' and
all is good!
"Flip" <!no_spam![email protected]> wrote in message
news:[email protected]..
I have a number of virtual host being served on the same weblogic 8.1.1
server. For example, say www.abc.com , www.def.com and www.ghi.com andthey
each have their own directory underneath the applications directory ABC,
DEF, GHI. When the user types out http://www.abc.com or def.com or even
www.ghi.com, I would like weblogic to automatically goto the appropriateweb
app I want to associated with each virtual host.
Is this possible? So far, I've seen it can't.
I put in the <context-root>/</context-root> in the weblogic.xml file, but
the server only lets you have one context root. So the first web app to
load gets the context root, so www.def.com can get the DEF application,but
the rest of them have to have some context, in other words www.abc.com/ABC
or even www.abc/GHI will work, but I don't want that! This was easily
configurable in 7.0SP1+2. Where and how do I do this in 8.1.1?
If you've tried this and got it to work, please post any files you might
have that are useful? I'm not sure where to goto next. Thanks.
Similar Messages
-
Problem on web app using root context in weblogic 7.0.2
I got problem on servlet which running on root context "/" in weblogic 7.0.2. I have remove the default web app (which use the root context) before the web app. The web application was deployed without any error. However, when the servlet run to the line calling HttpSession.setAttribute, the following exception occurs. The weblogic server is running on Solaris 8. anyone can help?
java.lang.IllegalStateException: Internal Servlet Session Process Error Found!
at weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1045)
at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:477)
at com.chase.infra.appcontrol.servlet.LoginServlet.doPostHK(Unknown Source)
at com.chase.infra.appcontrol.servlet.LoginServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5451)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
The weblogic.xml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd" >
<weblogic-web-app>
<context-root>/</context-root>
</weblogic-web-app>Hie,
We are facing the same problem; i.e. we are getting the same error message when we are trying to run our struts application on Weblogic 7.0.5 using JDK 1.3.1. This problem occured particularly when we tried to do a load testing using approx 20 concurrent users (a lesser load was supported though). Can you please let us know how this problem was sorted out on your end?
thanks,
Debanjan -
Virtual Host on WebLogic Server 5.1
I need to configure my weblogic server 5.1 on windows 2000 server to make a virtual
host address.
How I can do it ????
Thanks a lot for any help.
ByeHi Andy,
I think a good approach for you would be to use a proxy server --
browser -> proxy that supports virtual hosting -> WebLogic
Use a proxy which supports virtual hosting, and which can have a separate
certificate bound to each virtual host.
That way you can do SSL between the browser and the proxy, and you can
have the proxy do cleartext to WebLogic.
This situation gets around WebLogic's limitation of allowing only one
certificate per instance of the server.
You could also use 5.1 as the proxy in the following manner:
Run 3 instances of Weblogic, each as a proxy server, each bound to a
different IP address and DNS name, having its own certificate --
one instance for aaa.com, another for bbb.com, and a third for ccc.com
Then have each of these three instances of WebLogic proxy to your "app
server" instance of WebLogic on the backend.
Hope this makes sense.
Joe Jerry
Andy Walker wrote:
Hello,
I am tasked with implementing a virtual hosting situation that must
use SSL. It goes like this: https://www.aaa.com, https://www.bbb.com
and https://www.ccc.com all having separate IPs. These URLs must
forward the request to the same WebLogic Server instance. The problem
is each URL must have its own certificate while WLS 5.1 only uses one
certificate per instance.
I was thinking about using a proxy server such that all three Web
servers that would host the URLs would be sent to a proxy server which
would redirect to the WLS 5.1 instance.
My questions are, would this be feasible using WLS 5.1 as the Web
Server and again WLS as the App Server? How secure is this
arrangement? Is it preferable to use another vendor's software as the
WebServer(IPlanet, Apache) -
Apache Virtual Hosts & Weblogic JSP
Hi,
We're currently using Apache (1.3.9, with Raven 1.4.3) and
JRun (2.something) to run a bunch of websites which use
Static HTML, Servlets, and JSP. I'm trying to replace JRun
with Weblogic 5.1.0, SP5, and I've gotten stuck on the JSP
configuration.
We have a bunch of JSP pages that are shared by all our
sites. We do this by putting an Alias in the Apache config
saying "/shared" is an alias for "/usr/shared", and then using
the URL "/shared/jsp/global.jsp" to hit the JSP page. Because
Weblogic doesn't use Apache as it's HTTP server for JSP, I
couldn't use the same technique: you can define all the Apache Aliases
you want, but Weblogic keeps looking under its own
DocumentRoot for the JSP files. I worked around this
by making "/usr/shared" the Weblogic DocumentRoot, so
it can now find the common JSP pages.
Unfortunately, some of our websites have local JSP pages,
too. For example, suppose a website has a URL "/www.site1.com/"
(we use VirtualHosts for all our sites) and its files are located in
the directory "/usr/sites/Site1" (i.e., the DocumentRoot for the
VirtualHost
"www.site1.com" is "/usr/sites/Site1"). Further, suppose there's
a JSP file "/usr/sites/Site1/Local.jsp". In our existing
Apache/JRun setup, this is fine: JRun asks Apache where to
get "/www.site1.com/Local.jsp" and Apache checks the DocumentRoot
for that VirtualHost and tells JRun to look in
"/usr/sites/Site1/Local.jsp"
This doesn't work with Weblogic, because it doesn't ask Apache
how to find the JSP file. Instead, it just looks under the Weblogic
DocumentRoot. Sadly, however, I had to set the Weblogic
DocumentRoot to be "/usr/shared", in order to get at the common
JSP files. This means Weblogic can't get the global and
the local JSP pages at the same time.
So, anyone have an idea what to do here? It seems that Weblogic's
HTTP Server doesn't have VirtualHost's and Aliases and such,
like the traditional HTTP servers? Or am I just not finding them?
Bob Robillard
[email protected]John Greene wrote:
Bob Robillard wrote:
Hmm...okay, but even if I got rid of the "/shared" stuff, wouldn't
all the websites still have to be under a single Weblogic DocumentRoot
directory? Like, you couldn't have one under /usr/musicsites/site1
and another under /usr/Paysites/GeneralAudiences/site2 (let me
just put a little :-> on my example there.)Single docroot, yes. In this case docroot would have to be /usr ;)So wouldn't the URLs for the sites have to be
www.host.com/musicsites/site1
www.host.com/Paysites/GeneralAudiences/site2
then? Does Weblogic's missing VirtualHost thing mean I can't call 'em
www.site1.com/
www.site2.com/
like I do now? The two sites don't really have anything to do
with each other (other than that they both use the same Weblogic
Server instance), so I don't really want to make their URL's look
like they're both "Subsites" of some common parent.
On the /shared issue:
Or is the idea that you run a separate Weblogic server for every
site?No, no... one Weblogic Server, but multiple "webapp"s. The thing is,
if you're used to the non-webapp paradigm (pre-servlet-2.2),That's me. :->
you might
have to change your thinking a little. Each "site" should be its own,
self-contained
entity (so that it's portable from container to container).Okay, I've looked at the 2.2 Servlet Spec to learn some about Web Apps.
I can see how to deploy each site with .war and such, in order to make each
site StandAlone, and yet get the benefit of having a shared set of JSP
pages,
that are the same on all sites. Look like I need to get my mind right on
this. :->
Thanks again!
Bob Robillard
[email protected] -
SSL with virtual hosting in Weblogic Server 5.1(WLS5.1)
Hello,
I am tasked with implementing a virtual hosting situation that must
use SSL. It goes like this: https://www.aaa.com, https://www.bbb.com
and https://www.ccc.com all having separate IPs. These URLs must
forward the request to the same WebLogic Server instance. The problem
is each URL must have its own certificate while WLS 5.1 only uses one
certificate per instance.
I was thinking about using a proxy server such that all three Web
servers that would host the URLs would be sent to a proxy server which
would redirect to the WLS 5.1 instance.
My questions are, would this be feasible using WLS 5.1 as the Web
Server and again WLS as the App Server? How secure is this
arrangement? Is it preferable to use another vendor's software as the
WebServer(IPlanet, Apache)Hi Andy,
I think a good approach for you would be to use a proxy server --
browser -> proxy that supports virtual hosting -> WebLogic
Use a proxy which supports virtual hosting, and which can have a separate
certificate bound to each virtual host.
That way you can do SSL between the browser and the proxy, and you can
have the proxy do cleartext to WebLogic.
This situation gets around WebLogic's limitation of allowing only one
certificate per instance of the server.
You could also use 5.1 as the proxy in the following manner:
Run 3 instances of Weblogic, each as a proxy server, each bound to a
different IP address and DNS name, having its own certificate --
one instance for aaa.com, another for bbb.com, and a third for ccc.com
Then have each of these three instances of WebLogic proxy to your "app
server" instance of WebLogic on the backend.
Hope this makes sense.
Joe Jerry
Andy Walker wrote:
Hello,
I am tasked with implementing a virtual hosting situation that must
use SSL. It goes like this: https://www.aaa.com, https://www.bbb.com
and https://www.ccc.com all having separate IPs. These URLs must
forward the request to the same WebLogic Server instance. The problem
is each URL must have its own certificate while WLS 5.1 only uses one
certificate per instance.
I was thinking about using a proxy server such that all three Web
servers that would host the URLs would be sent to a proxy server which
would redirect to the WLS 5.1 instance.
My questions are, would this be feasible using WLS 5.1 as the Web
Server and again WLS as the App Server? How secure is this
arrangement? Is it preferable to use another vendor's software as the
WebServer(IPlanet, Apache) -
Apache Virtual Hosts and Weblogic 5.1SP6
Running:
WebLogic Server 5.1.0 w/ Service Pack 6
Solaris 7
Hello, I've been reading through the newsgroups and saw alot of information on
setting up apache and weblogic to handle virtual hosts, but am still having problems
getting it to work.
I have 2 domains that will be served up by one instance of Apache using NameBased
virtual hosts and I would like to have our one instance of WebLogic 5.1SP6 handle
them as well.
Excerpt from my httpd.conf file:
NameVirtualHost 216.xx.x.xx:80
<VirtualHost vcstgws011:80>
ServerName vcstgws011.domain1.com
Port 80
DocumentRoot /opt/vci-10.8/webapps/www
DirectoryIndex index.jsp
<Directory "/opt/vci-10.8/webapps/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost vcstgws011:80>
ServerName www.domain2.com
Port 80
DocumentRoot /opt/vci-10.8/webapps/www/dsl
DirectoryIndex index.jsp
<Directory "/opt/vci-10.8/webapps/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Under my default server configuration I have the WebLogic stuff:
<IfDefine WL>
WebLogicCluster vcstgas011.domain1.com:7001
Debug on
DebugConfigInfo on
ConnectTimeoutSecs 60
HungServerRecoverSecs 300
Debug on
DebugConfigInfo on
<Files *.jsp>
SetHandler weblogic-handler
</Files>
<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>
<Location /servlet>
SetHandler weblogic-handler
</Location>
<Location /Admin*>
SetHandler weblogic-handler
</Location>
<Location /j_security_check>
SetHandler weblogic-handler
</Location>
</IfDefine>
And here's an excerpt from my weblogic.properties file:
# HTTPD
weblogic.httpd.enable=true
# DocumentRoot configuration
weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
weblogic.httpd.indexDirectories=true
Any help would be appreciated.
Thanks,
MarkAnyone have success with Name-Based virtual hosts using same instance of WebLogic?
"Mark Mangano" <[email protected]> wrote:
>
Running:
WebLogic Server 5.1.0 w/ Service Pack 6
Solaris 7
Hello, I've been reading through the newsgroups and saw alot of information
on
setting up apache and weblogic to handle virtual hosts, but am still
having problems
getting it to work.
I have 2 domains that will be served up by one instance of Apache using
NameBased
virtual hosts and I would like to have our one instance of WebLogic 5.1SP6
handle
them as well.
Excerpt from my httpd.conf file:
NameVirtualHost 216.xx.x.xx:80
<VirtualHost vcstgws011:80>
ServerName vcstgws011.domain1.com
Port 80
DocumentRoot /opt/vci-10.8/webapps/www
DirectoryIndex index.jsp
<Directory "/opt/vci-10.8/webapps/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost vcstgws011:80>
ServerName www.domain2.com
Port 80
DocumentRoot /opt/vci-10.8/webapps/www/dsl
DirectoryIndex index.jsp
<Directory "/opt/vci-10.8/webapps/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Under my default server configuration I have the WebLogic stuff:
<IfDefine WL>
WebLogicCluster vcstgas011.domain1.com:7001
Debug on
DebugConfigInfo on
ConnectTimeoutSecs 60
HungServerRecoverSecs 300
Debug on
DebugConfigInfo on
<Files *.jsp>
SetHandler weblogic-handler
</Files>
<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>
<Location /servlet>
SetHandler weblogic-handler
</Location>
<Location /Admin*>
SetHandler weblogic-handler
</Location>
<Location /j_security_check>
SetHandler weblogic-handler
</Location>
</IfDefine>
And here's an excerpt from my weblogic.properties file:
# HTTPD
weblogic.httpd.enable=true
# DocumentRoot configuration
weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
weblogic.httpd.indexDirectories=true
Any help would be appreciated.
Thanks,
Mark -
Unable to deploy web app on local weblogic server
I'm using 11g JDeveloper 11.1.1.1.0 and I got the below errors when I tried to deploy a web app to the default weblogic server. Do you have any idea?
[03:19:04 PM] ---- Deployment started. ----
[03:19:04 PM] Target platform is (Weblogic 10.3).
[03:19:05 PM] Retrieving existing application information
[03:19:05 PM] Running dependency analysis...
[03:19:05 PM] Building...
[03:19:05 PM] Deploying profile...
[03:19:09 PM] Wrote Web Application Module to C:\11gJDev_Workspace\Scheduler\BPELScheduler\deploy\webapp.war
[03:19:10 PM] Deploying Application...
[03:19:33 PM] [Deployer:149193]Operation 'deploy' on application 'webapp' has failed on 'DefaultServer'
[03:19:33 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application webapp on DefaultServer.: .
[03:19:33 PM] Weblogic Server Exception: weblogic.application.ModuleException:
[03:19:33 PM] Caused by: weblogic.wsee.ws.WsException: When processing WebService module 'webapp.war'. Can't find wsdl /wsdls/wsat.wsdl
[03:19:33 PM] See server logs or server console for more details.
[03:19:33 PM] weblogic.application.ModuleException:
[03:19:33 PM] #### Deployment incomplete. ####
[03:19:33 PM] Deployment FailedThanks. I find the issue. Should only deploy ViewController project to war and don't deploy Model project at all. Let Application level deployment take care of it.
Beside, I have a question, I currently deploy inside JDeveloper. In my standalone WLS, I deploy some of my shared library. Is there any way to specify the shared library name (goes into weblogic-application.xml) when I deploying inside JDeveloper? Or I have to deploy to ear file first, unzip, update weblogic-applciation.xml and zip up the ear file and deploy the ear file to standalone WLS by hand? -
How to debug web app with weblogic?
I wrote a web app that includes jsp files and some javabeans, then I put the jsp files to directory
mydomain\applications\DefaultWebApp
then I complied javabeans and put those classes to
mydomain\applications\DefaultWebApp\WEB-INF\classes
Then I start the weblogic,it runs very well.
I modified some javabean, complie them and put classes override the old classes,
but the web app can not find the new classes.
Any one know How to debug web app(with javabeans) in weblogic?
thanks!how to config the hot deploy?
thxSorry, for this delay in responding. I had set notify me with email option in Watch This topic; but I never did get any email notification.
I use wls6.1; I think the process may be very similar to this in wls8.x. In wls6.1 (sp5), this is done via the -
Dweblogic.ProductionModeEnabled=False or
Dweblogic.ProductionModeEnabled=True
in the startup cmd/sh script. Out of the box, wls6.1 is set to Dweblogic.ProductionModeEnabled=False which automatically enables hot deploys. -
Hi
I am very new to updating my iPod touch and this is the first time I've used the iCloud. However, I am having problems accessing any apps on my iCloud such as photos, reminders etc. I've set it up on my iPod touch successfully and I can sign in on my PC. However, when I try to access any of the apps it says there was a problem. It doesn't tell me how to fix it or what the problem is.
Is anyone able to help?It is working now. I no longer get the message about the item not being available in the US and I can access the store.
-
Issue while accessing deployed web-app on Weblogic 10.3.5
We have deployed a web app on Weblogic server 10.3.5 as a WAR file. The deployment looks fine and application is in "Active" state. However when we try to access the application it fails to detect the Struts tags and gives following error -
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /view/login/login.jsp
login.jsp:4:1: Type mismatch: cannot convert from Tag to JspTag
*<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm*
*l1-transitional.dtd">*
*^---------------------------------------------------------------------------------------------------*
*<title><s:property value="customerLoginContentVO.pageTitle" /> Dashboard</title>*
------^
I looks like it doesn't get the Struts libraries. We have included the Struts libraries in WEB-INF/lib of the web app and set prefer-web-inf-classes to true in weblogic.xml. Why is it that it is able to find the jars to deploy but not to access the application.
One alternate method suggested is to have package the war into a ear and provide the mapping for struts libraries as prefer-application-packages in weblogic-application.xml. But we think creating a ear just for library load in not a right approach & we are definitely missing something.
Any help on this issue will be appreciated.
Thanks,
Jiten SWLS 10.3.5 (and some versions before that too, one of the 10.3.x releases changed this) should also support prefer-application-packages. It doesn't appear as though the documentation has been updated to reflect that.
Needs updating:
http://download.oracle.com/docs/cd/E21764_01/web.1111/e13712/weblogic_xml.htm#i1075205
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html#wp1098468
I'll file a documentation bug.
In the meantime, you can see that it is there in the XSD:
http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd
which is linked to from here:
http://download.oracle.com/docs/cd/E21764_01/web.1111/e13706/overview.htm#g1088563
Here is an example of what a weblogic.xml might look like.
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
<wls:weblogic-version>10.3.5</wls:weblogic-version>
<wls:context-root>FilterWeb</wls:context-root>
<wls:container-descriptor>
<wls:prefer-application-packages>
<wls:package-name>my.foo.package</wls:package-name>
</wls:prefer-application-packages>
</wls:container-descriptor>
</wls:weblogic-web-app> -
I'm having problems with my app, plants vs. zombies 2. It'll open and stay open for a few seconds then shut down. Help please.
Check to see if there are Updates available... If already up to date...
Try This...
Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
Wait for the Apple logo to Appear...
Usually takes about 15 - 20 Seconds... ( But can take Longer...)
Release the Buttons... -
Hi, I am having trouble updating my apps, I have tried one at time and all together but they just keep on whirring away and nothing happens! any ideas woud be appreciated.
Suggest you update all these apps on iTune (computer) and sync them to your iPad.
-
Error 404--Not Found while accessing web app through Weblogic 6.1
Hi everybody,
I am new to Weblogic and recently installed Weblogic6.1
on my machine and I am trying to access my application using weblogic
and it gives
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
I have uploaded the WAR file of my application using the Admin
console. The WAR file is place under
\bea\wlserver6.1\config\mydomain\applications\screen.war.
What am I doing wrong ?
Thanks is advance.
PS: I am also including my web.xml file
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<session-config>
<session-timeout>-1</session-timeout>
</session-config>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>resources.nmr.ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- PDF servlet configuration -->
<servlet>
<servlet-name>pdf</servlet-name>
<servlet-class>com.abbott.gprd.servlets.PdfServlet</servlet-class>
</servlet>
<!-- PDF servlet Mapping -->
<servlet-mapping>
<servlet-name>pdf</servlet-name>
<url-pattern>/pdf</url-pattern>
</servlet-mapping>
<!-- MIME Mapping -->
<mime-mapping>
<extension>mol</extension>
<mime-type>chemical/x-mdl-molfile</mime-type>
</mime-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Application Tag Library Descriptor -->
<taglib>
<taglib-uri>/WEB-INF/app.tld</taglib-uri>
<taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/nmr.tld</taglib-uri>
<taglib-location>/WEB-INF/nmr.tld</taglib-location>
</taglib>
</web-app>
hmm
it all looks ok to me
what happens if you try to access an image or something in your war (ie
something not java related)
also - i have seen on some machines that localhost doesnt work but 127.0.0.1
does work
your app should be trying to access index.jsp which should be in the root
directory of your war
does index.jsp exist and is it in the root directory of your war?
lastly - i noticed you have a startup servlet. Put a system.out in the init
method of the servlet. If the servlet is being deployed OK then you should
see some output in the console
"Ravi" <[email protected]> wrote in message
news:[email protected]...
> I am specifying the same http://localhost:7001/screen and it still
> gives the same error.
>
> Following is part of my cofig.xml where myapp is specified.
>
> <CustomRealm
>
ConfigurationData="user.filter=(&(cn=%u)(objectclass=person));user.dn=ou
=people,
> o=example.com;server.principal=cn=admin,
>
o=example.com;membership.filter=(&(member=%M)(objectclass=groupofuniquen
ames));group.filter=(&(cn=%g)(objectclass=groupofuniquenames));server.ho
st=ldapserver.example.com;server.ssl=true;group.dn=ou=groups,
> o=example.com"
> Name="defaultLDAPRealmForNovellDirectoryServices"
> Notes="This is provided as an example. Before enabling this
> Realm, you must edit the configuration parameters as appropriate for
> your environment."
> Password="{3DES}/4XkW5rmVvBHzFtI9SRK/g=="
> RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
> <Server ListenPort="7001" Name="myserver" NativeIOEnabled="true"
> TransactionLogFilePrefix="config/mydomain/logs/">
> <Log FileName="config/mydomain/logs/weblogic.log"
> Name="myserver"/>
> <SSL Enabled="true" ListenPort="7002" Name="myserver"
> ServerCertificateChainFileName="config/mydomain/ca.pem"
> ServerCertificateFileName="config/mydomain/democert.pem"
> ServerKeyFileName="config/mydomain/demokey.pem"/>
> <WebServer DefaultWebApp="DefaultWebApp"
> LogFileName="./config/mydomain/logs/access.log"
> LoggingEnabled="true" Name="myserver"/>
> <ServerDebug Name="myserver"/>
> <ExecuteQueue Name="default"/>
> <KernelDebug Name="myserver"/>
> <ServerStart Name="myserver"/>
> </Server>
> <Application Deployed="true" Name="screen"
> Path=".\config\mydomain\applications">
> <WebAppComponent Name="screen" Targets="myserver"
> URI="screen.war"/>
> </Application>
> <SNMPAgent Name="mydomain"/>
> <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
> <ApplicationManager Name="mydomain"/>
> <JTA Name="mydomain"/>
>
> Thanks in advance.
> Ravi.
>
>
> "Matt Krevs" <[email protected]> wrote in message
news:<[email protected]>...
> > what url are you specifying?
> >
> > i would guess that http://localhost/screen-web would work. Hard to say
> > without also seeing your config.xml
> >
> > The critical item in config.xml is the value of URI in the
webappcomponent
> > element for your application
> >
> > eg if it was
> >
> > <WebAppComponent Name="myapp-web" Targets="myerver" URI="myapp-web"/>
> >
> > then the url you would call is http://localhost/myapp-web
> >
> > "Ravi" <[email protected]> wrote in message
> > news:[email protected]...
> > > Hi everybody,
> > > I am new to Weblogic and recently installed Weblogic6.1
> > > on my machine and I am trying to access my application using weblogic
> > > and it gives
> > >
> > > Error 404--Not Found
> > > From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
> > > 10.4.5 404 Not Found
> > >
> > > I have uploaded the WAR file of my application using the Admin
> > > console. The WAR file is place under
> > > \bea\wlserver6.1\config\mydomain\applications\screen.war.
> > >
> > > What am I doing wrong ?
> > >
> > > Thanks is advance.
> > >
> > > PS: I am also including my web.xml file
> > >
> > > <?xml version="1.0" encoding="ISO-8859-1"?>
> > >
> > > <!DOCTYPE web-app
> > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> > >
> > > <web-app>
> > >
> > > <session-config>
> > > <session-timeout>-1</session-timeout>
> > > </session-config>
> > >
> > > <!-- Action Servlet Configuration -->
> > > <servlet>
> > > <servlet-name>action</servlet-name>
> > >
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > > <init-param>
> > > <param-name>application</param-name>
> > > <param-value>resources.nmr.ApplicationResources</param-value>
> > > </init-param>
> > > <init-param>
> > > <param-name>config</param-name>
> > > <param-value>/WEB-INF/struts-config.xml</param-value>
> > > </init-param>
> > > <init-param>
> > > <param-name>debug</param-name>
> > > <param-value>2</param-value>
> > > </init-param>
> > > <init-param>
> > > <param-name>detail</param-name>
> > > <param-value>2</param-value>
> > > </init-param>
> > > <init-param>
> > > <param-name>validate</param-name>
> > > <param-value>true</param-value>
> > > </init-param>
> > > <load-on-startup>2</load-on-startup>
> > >
> > > </servlet>
> > >
> > > <!-- Action Servlet Mapping -->
> > > <servlet-mapping>
> > > <servlet-name>action</servlet-name>
> > > <url-pattern>*.do</url-pattern>
> > > </servlet-mapping>
> > >
> > > <!-- PDF servlet configuration -->
> > > <servlet>
> > > <servlet-name>pdf</servlet-name>
> > >
<servlet-class>com.abbott.gprd.servlets.PdfServlet</servlet-class>
> > > </servlet>
> > >
> > >
> > > <!-- PDF servlet Mapping -->
> > > <servlet-mapping>
> > > <servlet-name>pdf</servlet-name>
> > > <url-pattern>/pdf</url-pattern>
> > > </servlet-mapping>
> > >
> > > <!-- MIME Mapping -->
> > > <mime-mapping>
> > > <extension>mol</extension>
> > > <mime-type>chemical/x-mdl-molfile</mime-type>
> > > </mime-mapping>
> > >
> > >
> > > <!-- The Welcome File List -->
> > > <welcome-file-list>
> > > <welcome-file>index.jsp</welcome-file>
> > > </welcome-file-list>
> > >
> > > <!-- Application Tag Library Descriptor -->
> > > <taglib>
> > > <taglib-uri>/WEB-INF/app.tld</taglib-uri>
> > > <taglib-location>/WEB-INF/app.tld</taglib-location>
> > > </taglib>
> > >
> > > <!-- Struts Tag Library Descriptors -->
> > > <taglib>
> > > <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> > > <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> > > </taglib>
> > >
> > > <taglib>
> > > <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> > > <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> > > </taglib>
> > >
> > > <taglib>
> > > <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
> > > <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
> > > </taglib>
> > >
> > > <taglib>
> > > <taglib-uri>/WEB-INF/nmr.tld</taglib-uri>
> > > <taglib-location>/WEB-INF/nmr.tld</taglib-location>
> > > </taglib>
> > >
> > > </web-app>
-
Following the book in chapter 2 I think Ivé followed everything correctly, but have encluded all the things I've edited below.
I was using wamp with no problems but after trying to set up a virtual host and now using xampp im abit lost its probabsomething stupid but I can find the prob.
(This post is abit long and dragged out so I used some colour to try ease the reading..)
When I try to view a dynamic page in live view or in firefox I get the following error:
**when using:
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
result:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
thegoodlife
2009/10/13 12:47:48 PM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
*when using:
<VirtualHost *:80>
DocumentRoot c:/htdocs
ServerName localhost
</VirtualHost>
result:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
thegoodlife
2009/10/13 12:32:58 PM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
This is what I've done, blue indicating where I have or was meant to edit, red being the relivant context. (hope it helps )
1. Created a new folder called htdocs (C:\htdocs)
2. Changed the pathname to:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "C:/htdocs"
and
# This should be changed to whatever you set DocumentRoot to.
<Directory "C:/htdocs">
3. Created vhosts folder; with a sub-folder called thegoodlife (C:\vhosts)
4. entered new vhost:
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 dwcs4
127.0.0.1 thegoodlife
127.0.0.1 bin.errorprotector.com ## added by CiD
5.It says uncomment the command by removing the #, (Supplemental configuation.), but this is the origional file; already uncommented?
# Real-time info on requests and configuration
Include "conf/extra/httpd-info.conf"
# Virtual hosts
Include "conf/extra/httpd-vhosts.conf"
# Distributed authoring and versioning (WebDAV)
Include "conf/extra/httpd-dav.conf"
6.Set the permissions and changed the code as instructed, unsing (c:/xampp/htdocs) as advised.
# You may use the command line option '-S' to verify your virtual host
# configuration.
<Directory C:/vhosts>
Order Deny,Allow
Allow from all
</Directory>
# Use name-based virtual hosting.
##NameVirtualHost *:80
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/dwcs4
ServerName dwcs4
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/thegoodlife
ServerName thegoodlife
</VirtualHost>
Then creating the site definition:
local root forlder: C:\htdocs\thegoodlife\
testing server folder: C:\vhosts\thegoodlife\
URL prefix: http://thegoodlife/
hope i've covered all area's where I could have gone wrongJust one more thing - the description of what i did while first Kernel appeared:
Happened 2 days ago. Wasn't turning it off for like a day, only sleep mode by closing it. Worked fine all day, wasn't doing anything, except for checking mail 2-3 times and having windows 7 virtual machine opened but doing nothing, everything was going fine. Then closed it without turning off.
Opened 3-4 hours later, everything was working fine for 30 minutes of checking mail, then Kernel appeared. After that pretty much everything i did is described in part 1-5.
Note: all the time MBP was connected to internet via wifi, so updates to both MBP and virtual machine of all programs were possible.
I only shared downloads and desktop folders, so windows couldn't have access to system folder of Mac Os.
Hope this might help...Thanks again. -
I am having trouble syncing one app I downloaded to my ipad, and transferred to my iMac, but it won't sync with my iphone 4s. Can someone help?
Is the app compatible with the iphone it may only be for iPad only.
Maybe you are looking for
-
No logical system group can be determined for administrative unit &1
Dear GTS gurus, In Risk Management module when we execute the report "Analyze LTVD Request Relevance of Products" (/SAPSLL/PRE_VD_OPT_ANL_PROD) we sometimes get the error message: No logical system group can be determined for administrative unit ****
-
Is there a Windows Print Screen command for Mac?
I need a screen shot for a presentation. Is there a "print screen" command for Mac OS, analogous to Windows?
-
Any FM avaliable for reading domain value range
Hi experts, Is there any FM avaliable to read values from value range of a domain. I need to fetch short descriptions for corresponding fixed values in value range. Please help. Thanks in advance, Neelima
-
Hi, I have installed a JAVA Stack with the EC EHP1 where I installed the SLD. I setup ECC 6.0 to send information to the SLD but I am not able to update the data. When you perform a query in the Technical System of the column "Last Update" does not u
-
Color Laserjet 2600n monochrome printing
OK, I am too broke to spring 90 bucks for a magenta cartridge when I only want to print black and white documents. Is there some way to tell the printer that it is OK to ignore empty color toner cartridges and just use the black one for monochrome p