[ 
https://issues.apache.org/jira/browse/WICKET-5000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13560747#comment-13560747
 ] 

Tim Urberg edited comment on WICKET-5000 at 1/23/13 3:59 PM:
-------------------------------------------------------------

Actually you can download a free version of Weblogic here: 
http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html
 which is the developer version,. Version 10.3.5 can be found in the other 
versions section.  The weblogic apache plugin can be found here: 
http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
  Both of them can be downloaded and installed for free.  I have Weblogic 
installed in my Mac and then because the Apache plugin doesn't work on a Mac, I 
installed VirtualBox with an Ubuntu guest, which I installed Apache and the 
Weblogic Apache plugin.  Details on how to install that are included with the 
download.

When you install Weblogic, be sure to make sure it is in developer mode.  This 
way you can build a war file and copy it into the autodeploy directory of your 
server dir. You will also need to create a weblogic.xml in the same directory 
as web.xml and it will look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90";>
        <context-root>/documentation</context-root>
</weblogic-web-app>

The place to change development mode is in config.xml which will be located in: 
$WEBLOGIC_INSTALL_LOCATION/domains/your-domain/config.  Look for these two 
things in that file:

<weblogic-plugin-enabled>true</weblogic-plugin-enabled> - this tells WL that 
you're using the HTTP plugin
<production-mode-enabled>false</production-mode-enabled> - this tells WL to use 
development mode

If there is anything else you need help with, let me know.
                
      was (Author: tim273):
    Actually you can download a free version of Weblogic here: 
http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html
 which is the developer version,. Version 10.3.5 can be found in the other 
versions section.  The weblogic apache plugin can be found here: 
http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
  Both of them can be downloaded and installed for free.  I have Weblogic 
installed in my Mac and then because the Apache plugin doesn't work on a Mac, I 
installed VirtualBox with an Ubuntu guest, which I installed Apache and the 
Weblogic Apache plugin.  Details on how to install that are included with the 
download.
                  
> HttpsMapper Appends Context Root when Behind Apache Proxy
> ---------------------------------------------------------
>
>                 Key: WICKET-5000
>                 URL: https://issues.apache.org/jira/browse/WICKET-5000
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.5.0
>         Environment: Ubuntu 12.04 and Mac OS X Mountain Lion
>            Reporter: Tim Urberg
>            Priority: Minor
>
> I have a Wicket app running Wicket 6.5.0 which uses HttpsMapper to switch to 
> HTTPS for a login page and on another page.  The app is deployed in Weblogic 
> version 10.3.5.0 with a context root of /documentation.  Weblogic sits behind 
> an Apache HTTP server which uses the Weblogic HTTP Server plugin 
> (http://docs.oracle.com/cd/E13222_01/wls/docs81/plugins/apache.html#120648) 
> and set up like this:
> <VirtualHost *:80>
>       WebLogicHost 10.0.2.2
>       WebLogicPort 7011
>       
>       SetHandler weblogic-handler
>       PathPrepend /documentation
>       ErrorLog ${APACHE_LOG_DIR}/error.log
>       # Possible values include: debug, info, notice, warn, error, crit,
>       # alert, emerg.
>       LogLevel info
>       CustomLog ${APACHE_LOG_DIR}/access.log combined
> </VirtualHost>
> <IfModule mod_ssl.c>
> <VirtualHost _default_:443>
>       WebLogicHost 10.0.2.2
>       WebLogicPort 7011
>       ErrorLog ${APACHE_LOG_DIR}/ssl_error.log
>       SetHandler weblogic-handler
>       PathPrepend /documentation
>       WLProxySSL ON
>       SecureProxy ON
>       # Possible values include: debug, info, notice, warn, error, crit,
>       # alert, emerg.
>       LogLevel info
>       CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
>       SSLEngine on
>       SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
>       SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
> </VirtualHost>
> </IfModule>
> I have tried overriding HttpsMapper#createRedirectUrl to remove 
> /documentation from the URL, but it only works if I go directly to the page 
> that is annotated with @RequireHTTPS.  While debugging I discovered that the 
> above method doesn't get called if a link is clicked or if 
> RestartResponseAtInterceptPageException is used (with wicket-auth-roles).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to