[OAM] modification of embedded Apache Felix property?
Is there a *supported* way to modify configuration of the Apache Felix instance embedded in OAM?
Specifically, I would like to modify these properties as outlined in
http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-configuration-properties.html
org.osgi.framework.system.packages - Specifies a comma-delimited list of packages that should be exported via the System Bundle from the framework class loader. The framework will set this to a reasonable default. If the value is specified, it replaces any default value.
org.osgi.framework.system.packages.extra - Specifies a comma-delimited list of packages that should be exported via the System Bundle from the framework class loader in addition to the packages in org.osgi.framework.system.packages. The default value is empty. If a value is specified, it is appended to the list of default or specified packages in org.osgi.framework.system.packages.
Basic problem is that I am attempting to use javax.crypto classes from inside an OAM custom plugin, but this is giving me errors, I believe because the container does not export these packages.
Is there a *supported* way to modify configuration of the Apache Felix instance embedded in OAM?
Specifically, I would like to modify these properties as outlined in
http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-configuration-properties.html
org.osgi.framework.system.packages - Specifies a comma-delimited list of packages that should be exported via the System Bundle from the framework class loader. The framework will set this to a reasonable default. If the value is specified, it replaces any default value.
org.osgi.framework.system.packages.extra - Specifies a comma-delimited list of packages that should be exported via the System Bundle from the framework class loader in addition to the packages in org.osgi.framework.system.packages. The default value is empty. If a value is specified, it is appended to the list of default or specified packages in org.osgi.framework.system.packages.
Basic problem is that I am attempting to use javax.crypto classes from inside an OAM custom plugin, but this is giving me errors, I believe because the container does not export these packages.
Similar Messages
-
JWS not working after Java updates to JDK 1.6 update 24 (with apache felix)
Hi,
I'm currently working on some JWS application, which heavily relies on Apache Felix. It was working spotless until recent security update which comes along with Java 1.6u24. Now my application dies just when Apache Felix is starting to work.
The exception being thrown is:
SEVERE: Permission denied: http://felix.extensions:9/META-INF/services/javax.xml.parsers.SAXParserFactory
java.lang.SecurityException: Permission denied: http://felix.extensions:9/META-INF/services/javax.xml.parsers.SAXParserFactory
at com.sun.deploy.security.DeployURLClassPath$UrlLoader.findResource(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.findResource(Unknown Source)
at java.net.URLClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findResource(Unknown Source)
at java.lang.ClassLoader.getResource(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.access$001(Unknown Source)
at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.jnlp.JNLPClassLoader.getResource(Unknown Source)
at java.lang.ClassLoader.getResource(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.access$001(Unknown Source)
at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.jnlp.JNLPClassLoader.getResource(Unknown Source)
at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
at javax.xml.parsers.SecuritySupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
at javax.xml.parsers.FactoryFinder.find(Unknown Source)
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
In javaws.policy, java.policy I have set up proper security rules to enable JWS to work out of sandbox by specifying:
grant {
permission java.security.AllPermission;
grant codeBase "http://felix.extensions:9/" {
permission java.security.AllPermission;
Also, I'm using maven's webstart-maven-plugin to create a JWS jnlp file. It's being property signed with security certificate. My resulting jnlp file has this part of configuration embedded:
<security>
<all-permissions />
</security>
Do You have any ideas what might be the problem?
CheersI just submitted a bug, and got the following e-mail.
Hope the java guys take a look ...
Full View
Your Report (Review ID: 1990127) - SecurityException from all-permissions app - should be ClassNotFoundException
From:
"[email protected]" <[email protected]>
Add to Contacts
To: [email protected]
Dear Java Developer,
Thank you for your interest in improving the quality of Java Technology.
Your report has been assigned an internal review ID of 1990127, which is NOT visible on the Sun Developer Network (SDN).
Please be aware that the large volume of reports we receive sometimes prevents us from responding individually to each message.
If the information is determined to be a new Bug or RFE, or a duplicate of a known Bug or RFE, you will receive a followup email containing a seven digit bug number. You may search for, view, or vote for this bug in the Bug Database at http://bugs.sun.com/.
If you just reported an issue that could have a major impact on your project and require a timely response, please consider purchasing one of the support offerings described at http://developers.sun.com/services/.
The Sun Developer Network (http://developers.sun.com) is a free service that Sun offers. To join, visit http://developers.sun.com/global/join_sdn.html.
Thank you for using our bug submit page.
Regards,
Java Developer Bug Report Review Team
Date Created: Wed Mar 02 15:43:52 MST 2011
Type: bug
Customer Name: Reuben Pasquini
Customer Email: [email protected]
SDN ID: catdogboy
status: Waiting
Category: javawebstart
Subcategory: other
Company: http://frickjack.com
release: 6u24
hardware: x86
OSversion: windows_7
priority: 4
Synopsis: SecurityException from all-permissions app - should be ClassNotFoundException
Description:
FULL PRODUCT VERSION :
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
This is a java bug - I have users on WIndows 7 and XP, and also reported on Apache felix mailing list
A DESCRIPTION OF THE PROBLEM :
The following class, when bundled, signed, and deployed with the .jnlp file below, throws a
SecurityException
in the new java release - even though the .jnlp specifes "all-permissions".
Past releases would throw a ClassNotFoundException - which is great,
and is what things like Oracle's thin-client ojdbc6.jar expect.
The program bootstraps the Felix OSGi engine - which apparently sets up a URLClassLoader with a custom felix:// URL.
The output of running the program with webstart follows
below the .jnlp file.
Note that this .jnlp file is setup to run off the file system, but the same result follows from web-launched apps, whatever.
package littleware.demo;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URL;
import java.net.URLClassLoader;
import java.sql.Connection;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;
import org.apache.felix.framework.Felix;
public class JavaToy {
private static final Logger log = Logger.getLogger( JavaToy.class.getName() );
public static class AppRunner implements Runnable {
public void run() {
final StringWriter swriter = new StringWriter();
final PrintWriter pwriter = new PrintWriter( swriter );
pwriter.append( "Class path: " ).append(
System.getProperty( "java.class.path" )
).append( "\n\n-------------------------\n" );
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if ( classLoader instanceof URLClassLoader ) {
pwriter.append( "URLClassLoader:\n" );
for ( URL url : ((URLClassLoader) classLoader).getURLs() ) {
pwriter.append( url.toString() ).append( "\n" );
pwriter.append( "\n--------------------------------\n" );
try {
Class.forName( "bogus.DoesNotExist" );
pwriter.append( "No exception thrown on bogus class load\n" );
} catch ( Exception ex ) {
pwriter.append( "Caught exception loading bogus class: " ).append( ex.toString() ).append( "\n" );
ex.printStackTrace(pwriter);
pwriter.flush();
final JFrame jframe = new JFrame( "Webstart test" );
final JTextArea jtext = new JTextArea( swriter.toString(), 20, 40 );
jframe.add( new JScrollPane( jtext ) );
jframe.pack();
jframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
jframe.setVisible(true);
public static void main( String[] args ) {
try {
log.log( Level.INFO, "Launching felix!" );
(new Felix(new HashMap<String, Object>())).start();
Thread.sleep( 2000 );
} catch (Exception ex) {
log.log(Level.SEVERE, "Caught exception", ex);
System.exit(0);
SwingUtilities.invokeLater( new AppRunner() );
REGRESSION. Last worked in version 6
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
*. Download felix.jar from
http://felix.apache.org
*. Build the following code, sign Toy.jar and felix.jar with your key,
launch with the following .jnlp or something similar ....
package littleware.demo;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URL;
import java.net.URLClassLoader;
import java.sql.Connection;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;
import org.apache.felix.framework.Felix;
public class JavaToy {
private static final Logger log = Logger.getLogger( JavaToy.class.getName() );
public static class AppRunner implements Runnable {
public void run() {
final StringWriter swriter = new StringWriter();
final PrintWriter pwriter = new PrintWriter( swriter );
pwriter.append( "Class path: " ).append(
System.getProperty( "java.class.path" )
).append( "\n\n-------------------------\n" );
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if ( classLoader instanceof URLClassLoader ) {
pwriter.append( "URLClassLoader:\n" );
for ( URL url : ((URLClassLoader) classLoader).getURLs() ) {
pwriter.append( url.toString() ).append( "\n" );
pwriter.append( "\n--------------------------------\n" );
try {
Class.forName( "bogus.DoesNotExist" );
pwriter.append( "No exception thrown on bogus class load\n" );
} catch ( Exception ex ) {
pwriter.append( "Caught exception loading bogus class: " ).append( ex.toString() ).append( "\n" );
ex.printStackTrace(pwriter);
pwriter.flush();
final JFrame jframe = new JFrame( "Webstart test" );
final JTextArea jtext = new JTextArea( swriter.toString(), 20, 40 );
jframe.add( new JScrollPane( jtext ) );
jframe.pack();
jframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
jframe.setVisible(true);
public static void main( String[] args ) {
try {
log.log( Level.INFO, "Launching felix!" );
(new Felix(new HashMap<String, Object>())).start();
Thread.sleep( 2000 );
} catch (Exception ex) {
log.log(Level.SEVERE, "Caught exception", ex);
System.exit(0);
SwingUtilities.invokeLater( new AppRunner() );
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="file:/C:/Users/pasquini/Documents/Code/JavaToy/dist/" href="launch.jnlp" spec="1.0+">
<information>
<title>JavaToy</title>
<vendor>pasquini</vendor>
<homepage href=""/>
<description>JavaToy</description>
<description kind="short">JavaToy</description>
</information>
<update check="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="JavaToy.jar" main="true"/>
<jar href="lib/felix-2.0.4.jar"/>
</resources>
<application-desc main-class="littleware.demo.JavaToy">
</application-desc>
</jnlp>
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Class path: C:\Program Files\Java\jre6\lib\deploy.jar
URLClassLoader:
file:/C:/Users/pasquini/Documents/Code/JavaToy/dist/JavaToy.jar
file:/C:/Users/pasquini/Documents/Code/JavaToy/dist/lib/felix-2.0.4.jar
http://felix.extensions:9/
Caught exception loading bogus class: java.lang.ClassNotFoundException: bogus.DoesNotExist
java.lang.ClassNotFoundException: bogus.DoesNotExist
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at littleware.demo.JavaToy$AppRunner.run(JavaToy.java:39)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
ACTUAL -
Class path: C:\\Program Files (x86)\\Java\\jre6\\lib\\deploy.jar
URLClassLoader:
file:/C:/Users/pasquini/Documents/Code/JavaToy/dist/JavaToy.jar
file:/C:/Users/pasquini/Documents/Code/JavaToy/dist/lib/felix-2.0.4.jar
http://felix.extensions:9/
Caught exception loading bogus class: java.lang.SecurityException: Permission denied: http://felix.extensions:9/bogus/DoesNotExist.class
java.lang.SecurityException: Permission denied: http://felix.extensions:9/bogus/DoesNotExist.class
at com.sun.deploy.security.DeployURLClassPath$UrlLoader.getResource(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at littleware.demo.JavaToy$AppRunner.run(JavaToy.java:39)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package littleware.demo;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URL;
import java.net.URLClassLoader;
import java.sql.Connection;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;
import org.apache.felix.framework.Felix;
public class JavaToy {
private static final Logger log = Logger.getLogger( JavaToy.class.getName() );
public static class AppRunner implements Runnable {
public void run() {
final StringWriter swriter = new StringWriter();
final PrintWriter pwriter = new PrintWriter( swriter );
pwriter.append( "Class path: " ).append(
System.getProperty( "java.class.path" )
).append( "\n\n-------------------------\n" );
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if ( classLoader instanceof URLClassLoader ) {
pwriter.append( "URLClassLoader:\n" );
for ( URL url : ((URLClassLoader) classLoader).getURLs() ) {
pwriter.append( url.toString() ).append( "\n" );
pwriter.append( "\n--------------------------------\n" );
try {
Class.forName( "bogus.DoesNotExist" );
pwriter.append( "No exception thrown on bogus class load\n" );
} catch ( Exception ex ) {
pwriter.append( "Caught exception loading bogus class: " ).append( ex.toString() ).append( "\n" );
ex.printStackTrace(pwriter);
pwriter.flush();
final JFrame jframe = new JFrame( "Webstart test" );
final JTextArea jtext = new JTextArea( swriter.toString(), 20, 40 );
jframe.add( new JScrollPane( jtext ) );
jframe.pack();
jframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
jframe.setVisible(true);
public static void main( String[] args ) {
try {
log.log( Level.INFO, "Launching felix!" );
(new Felix(new HashMap<String, Object>())).start();
Thread.sleep( 2000 );
} catch (Exception ex) {
log.log(Level.SEVERE, "Caught exception", ex);
System.exit(0);
SwingUtilities.invokeLater( new AppRunner() );
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
I can work around the problem by installing the app locally, so web-start is not necessary. I ran into this problem with an app that connects to Oracle via ojdbc6.jar - ojdbc6.jar invokes "Class.forName" to check for optional i18n classes on the class path. The Oracle code correctly handles the correct ClassNotFoundException, but the new SecurityException is breaking my app.
workaround: -
OSGi bundle resolution and OBR in apache felix/sling
What is the proper way to resolve bundle dependencies in sling/felix?
http://stackoverflow.com/questions/10901539/osgi-bundle-resolution-and-obr-in-apache-felix -slingCQDarren,
The problem may be because you are using joda-time instead of joda-convert.
Try using this dependency
<dependency>
<groupId>org.joda</groupId>
<artifactId>joda-convert</artifactId>
<version>1.1</version>
</dependency>
Thanks,
Aditya -
Hi guys,
My bundle is installed but not active:
Got the following errors in my log:
org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle (bundle ID=1246) : myservlet.bundle. Reason: org.osgi.framework.BundleException: Unresolved constraint in bundle myservlet.bundle [1246]: Unable to resolve 1246.0: missing requirement [1246.0] package; (package=org.apache.felix.scr.annotations). Will retry.
org.apache.felix.scr.annotations is imported and included in the bnd file.
In Felix console I get this:
org.apache.felix.scr from org.apache.felix.scr (41)
org.apache.felix.scr.annotations -- Cannot be resolved
org.apache.felix.scr.annotations.sling -- Cannot be resolved
org.apache.sling.api from org.apache.sling.api (92)
org.apache.sling.api.resource from org.apache.sling.api (92)
org.apache.sling.api.servlets from org.apache.sling.api (92)
org.ietf.jgss from org.apache.felix.framework (0)
org.osgi.framework from org.apache.felix.framework (0)
org.slf4j from slf4j.api (11)
org.w3c.dom from org.apache.felix.framework (0)
org.xml.sax from org.apache.felix.framework (0)
Just can't figure out what else need to be done to have org.apache.felix.scr.annotations resolved?
Thanks!!!You might be importing the wrong ComponentContext if you're using one in your activate method's signature. CRXDE gives errors with no explanation in that case. Ensure that you have:
import org.osgi.service.component.ComponentContext;
as there are a couple of other ComponentContext classes and the class from the osgi package may not be the default chosen by CRXDE when imports are auto-populated. -
OAM Webgate installation on APache with multiple Virtual hosts?
Hi I have customer who is having One Single APache web server and having two different applications configured as different Virutal hosts in the single server.
requirement is , Each application should be protected by OAM Webgate and each application have seperate session configurations. So, How can we handle this ..
I am thinking to install webgate for each application virutal Host to fulfill this requirement but i am worrying about the Webgate installation since both applications on single Apache server and single httpd.conf file.
Really appreciated if anyone suggest me the approach of how to fulfil this requirement.
-Srini
Edited by: user567398 on Jun 17, 2011 3:00 PMHi Srini,
You can use a single WebGate - in the "Preferred HTTP Host" setting for the WebGate in the Access System Console, specify SERVER_NAME. OAM will then use the name of the Virtual Host (as returned by Apache) when evaluating policies, and you can have different policies by having different Host Identifiers for the two (or more) virtual hosts.
Regards,
Colin -
Error in custom OAM authentication plugin
Hi All
I am trying to build a custom OAM authentication plugin using JDeveloper. Here are the version information:
OAM - 11.1.1.5 BP04
WLS - 10.3.5
Issue:
I get the following error in the OAM logs when I try to activate the plugin.
[2012-11-14T09:39:17.996-08:00] [oam_server1] [WARNING] [] [oracle.oam.extensibility.lifecycle] [tid: DistributedCache:DistributionCache:EventDispatcher] [userId: <anonymous>] [ecid: 0000Jfzyiy6EgKI5qrH7iY1GcxMc000002,0] [APP: oam_server] Activation failed due to felix bundle exception while installing and starting the bundle.Unresolved constraint in bundle oamCustomAuthPlugin [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=oracle.security.am.plugin.ExecutionStatus)[[
org.osgi.framework.BundleException: Unresolved constraint in bundle oamCustomAuthPlugin [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=oracle.security.am.plugin.ExecutionStatus)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3404)
The names of jar file, class file, plugin xml file etc are all same. My plugin code is very generic and I have the following values in the plugin's manifest and xml file
Plugin xml file [oamCustomAuthPlugin.xml]:
<Plugin name="oamCustomAuthPlugin" type="Authentication">
<author>uid</author>
<email>[email protected]</email>
<creationDate>09:32:20, 2011-11-13</creationDate>
<version>4</version>
<description>OAM Custom Authentication plugin</description>
<interface>oracle.security.am.plugin.authn.AbstractAuthenticationPlugIn</interface>
<implementation>com.company.oam.oamCustomAuthPlugin</implementation>
<configuration>
<AttributeValuePair>
<Attribute type="string" length="20">INPUT_PARAM1</Attribute>
<mandatory>true</mandatory>
<instanceOverride>false</instanceOverride>
<globalUIOverride>true</globalUIOverride>
<value>Param1</value>
</AttributeValuePair>
<AttributeValuePair>
<Attribute type="string" length="20">INPUT_PARAM2</Attribute>
<mandatory>true</mandatory>
<instanceOverride>false</instanceOverride>
<globalUIOverride>true</globalUIOverride>
<value>Param2</value>
</AttributeValuePair>
</configuration>
</Plugin>
Manifest File [MANIFEST.MF]:
Ant-Version: Apache Ant 1.7.1
Bundle-Version: 1.0.0.4
Bundle-Name: oamCustomAuthPlugin
Bundle-Activator: oamCustomAuthPlugin
Bundle-ManifestVersion: 2
Created-By: 17.0-b17 (Sun Microsystems Inc.)
Import-Package: oracle.security.am.plugin,oracle.security.am.plugin.authn
Bundle-SymbolicName: oamCustomAuthPlugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Please let me know if you have faced a sinilar issues in the past. Please help !!Try with Import-Package: org.osgi.framework;version="1.3.0",oracle.security.am.plugin,oracle.security.am.plugin.authn,oracle.security.am.plugin.api If it doesn't work try with - Import-Package: org.osgi.framework;version="1.3.0",oracle.security.am.plugin,oracle.security.am.plugin.authn,oracle.security.am.plugin.api ,oracle.security.am.plugin.ExecutionStatus
-
Go URL no longer works when placed as 'Treat as Text' column property
Hi all - I have a question on syntax for using a Go URL as part of the 'Treat as Text' Data Format property for a column...
In a pivot I had a column (employee name) that had in the formula a Go URL that passed parameters to another report. The drilled to report would then open with the employee that had been clicked on. The go url works fine. However, if the report (the one with the go url link) was to be printed in PDF form, the URL link specified in the column's formula will be printed, not the actual column value, the employee's name.
So, to get around this, I removed the go url link in the formula and resorted back to the column's value (table name.column name) in the formula and placed the go url syntax (with some modifications) into the 'Data Format' property of the column and set the 'Treat Text As' to:
*@[html] "<a href=saw.dll?Go&Path=/shared/(...path of report to drill on)&Options=fdr&Action=Navigate&P0=1&P1=eq&P2=" @H ">" @H "</a>"*
The employee's name is to be included after '...&P2='
Now, I see the column's value as a hyperlink and the correct report is navigated to, however, the parameters being passed don't work any longer, I'm getting all employees, not just the one I clicked on. This was working until I put the go url into the 'Treat as Text'.
For what I'm trying to do, does the syntax seem correct?
Thanks.I think I have it solved, will check...
When modifying, the P3 in the go url was left out. what was P2 should be P3 and the correct P2 would have the table.column name. -
I am having trouble starting my web server and filemaker pro server. I think it would help if I could restart Apache. Does anyone know what the commands are for doing this on Leopard Server in terminal?
to restart apache safely with Terminal, under root
serveradmin stop web; serveradmin start web
If you’ve made some modifications on some apache config files by hand (which means not using Server Admin/Web anymore usually), it’s a good idea to test the configuration before restarting Apache.
Then you can use the apachectl command:
apachectl -t
to restart only teams server :
serveradmin stop teams; serveradmin start teams
Once the services says they have restarted give them few more seconds before trying to access them.
That’s my experience anyways. Hope it helps. -
Apache Tika PDF Parser not working in CQ 5.6
Hi all,
I was using following code to extract text from PDF in a CQ package.
ContentHandler handler = new BodyContentHandler();
Parser parser = new PDFParser();
parser.parse(a.getOriginal().getStream(), handler, new Metadata(),
new ParseContext());
String text = handler.toString();
This works perfectly in CQ 5.5 but in CQ 5.6 I get following exception:
Caused by: java.lang.ClassNotFoundException: org.apache.pfbox.io.RandomAccess not found by org.apache.tika.parsers [58]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringI mpl.java:1499)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl. java:1882)
at java.lang.ClassLoader.loadClass(Unknown Source)
Any ideas on why this class is not being found ?
Thanks!Thanks!
I changed the code to:
Tika tika = new Tika();
Reader reader = tika.parse(a.getOriginal().getStream());
This works in CQ 5.5 and CQ 5.6 both -
Hi,
I am facing below issue in Performance testing does anyone guide why this error is coming. Individually these pages are running fine. Attached logs for your reference.
Thank ,
Yogesh
17.01.2013 05:10:57.232 *ERROR* [135.215.244.155 [1358421056013] GET /content/Intranet/microsite/innovation/right.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException org.apache.sling.api.SlingException:
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:560)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:496)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:448)
at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :173)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:84)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:388)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:491)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:146)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308 )
at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:280)
at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:185)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.jav a:76)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:171)
at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:199)
at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)
at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:249)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)
at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate. java:277)
at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:148)
at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:228)
at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilte r.java:96)
at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)
at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)
at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)
at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134 )
Caused by: org.apache.sling.api.SlingException:
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:560)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:496)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:448)
at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :173)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:84)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:388)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:491)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:182 )
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:149)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:219)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:280)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.dispatchRequest(SlingRequestProces sorImpl.java:320)
at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatch er.java:208)
at org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(SlingRequestDispatche r.java:102)
at com.day.cq.wcm.core.impl.WCMComponentFilter$ForwardRequestDispatcher.include(WCMComponent Filter.java:381)
at org.apache.jsp.libs.foundation.components.primary.cq.Page.Page_jsp._jspService(Page_jsp.j ava:106)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:419)
... 66 more
Caused by: java.lang.NullPointerException
at com.day.cq.wcm.foundation.ELEvaluator.evaluate(ELEvaluator.java:53)
at org.apache.jsp.libs.foundation.components.page.page_jsp._jspService(page_jsp.java:126)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:419)
... 90 moreAlso we are facing one more issue in PT testing and that is related to segment.So not sure what is issue. We have tested all sgement defined by us its working fine individually. But same fails in PT.
Thanks,
Yogesh
This is log we get in PT
ERROR GET /etc/segmentation.segment.js HTTP/1.1] libs.cq.personalization.components.segmentpage.segment$js$jsp error while building a segment /etc/segmentation/intranet/California/jcr:content/traits org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script ../trait.js.jsp
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:385)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:491)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:182 )
at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:149)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:219)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:280)
at org.apache.sling.engine.impl.SlingRequestProcessorImpl.dispatchRequest(SlingRequestProces sorImpl.java:320)
at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatch er.java:208)
at org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(SlingRequestDispatche r.java:102)
at com.day.cq.wcm.core.impl.WCMComponentFilter$ForwardRequestDispatcher.include(WCMComponent Filter.java:381)
at org.apache.jsp.libs.cq.personalization.components.segmentpage.segment_js_jsp._jspService( segment_js_jsp.java:188)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:419)
at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :173)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:84)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:388)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:491)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
8293,2-9 89%
Caused by: java.lang.NullPointerException
at com.day.cq.wcm.api.WCMMode.toRequest(WCMMode.java:71)
at org.apache.jsp.libs.cq.personalization.components.traits.logic.trait_js_jsp._jspService(t rait_js_jsp.java:204)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:419) -
Lightroom export - original file with Lightroom modification data
Hello, hello!
I have imported a folder of, for arguments sake, some JPEGs, TIFFS, and DND photos into Lightroom, leaving the files in place, and just linking them to the Lightroom Catalogue's Library. I have then made a whole load of 'modifications' to the photos in Lightroom (the data for these modifications is stored in the Lightroom Catalogue file, right?).
Can I now export some of the photos from Lightroom so that the file that comes out is in the same/different file format (e.g. JPEG/TIFF/DNG) and have the Lightroom modification data embedded (perhaps in the EXIF data) of the exported file? Can I then open this with a 'normal' program and have it show the original? Can I then open this with Lightroom/Photoshop (?) and it show the original with the modification data applied?
Thanks a lot! :-))Can I now export some of the photos from Lightroom so that the file that comes out is in the same/different file format (e.g. JPEG/TIFF/DNG) and have the Lightroom modification data embedded (perhaps in the EXIF data) of the exported file?
Yes, but you should not export. Just hit Ctrl/Cmd+S to Save Metadata. the metadata will be embedded into the files. Note that the actual image will not be altered. That is, if you view the jpeg in an external viewer you will not see the adjustments made in Lightroom. Only Adobe products can interpred those.
Can I then open this with a 'normal' program and have it show the original?
Yes.
Can I then open this with Lightroom/Photoshop (?) and it show the original with the modification data applied?
Yes. When you open in Photoshop and it's a non-RAW file (e.g. JPEG or TIFF), there's an option somewhere in Camera RAW to be used for opening non-RAWs. The point is, those have to pass through Camera RAW, rather than opened directly in Photoshop, for metadata to be interpreted properly. -
Hi ,
I'm getting the below exception while accessing the pages. It was working fine earlier..
Any help on this please....???
Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script /libs/wcm/core/components/init/init.jsp
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:563)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:443)
at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :233)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:85)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:453)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
... 93 more
Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/day/cq/wcm/api/WCMMode
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:563)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:443)
at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :233)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:85)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:453)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)
at com.day.cq.wcm.tags.IncludeTag.includeScript(IncludeTag.java:167)
at com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:87)
at org.apache.jsp.apps.bt_com.components.wrapperpage.wrapperpage_jsp._jspx_meth_cq_005finclu de_005f0(wrapperpage_jsp.java:430)
at org.apache.jsp.apps.bt_com.components.wrapperpage.wrapperpage_jsp._jspService(wrapperpage _jsp.java:238)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:420)
... 98 more
Caused by: java.lang.NoClassDefFoundError: com/day/cq/wcm/api/WCMMode
at org.apache.jsp.libs.wcm.core.components.init.init_jsp._jspService(init_jsp.java:152)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJs
Thanks,
Shankar .AHi Shankar,
Try to open Apache Felix Console -> Bundles tab:
http://localhost:4502/system/console/bundles
and find:
-> Apache Sling Scripting JSP support -> try to stop this bundle and start it again
-> Apache Sling Dynamic Class Loader Support-> try to stop this bundle and start it again
Restarting both bundles should solve your problem.
Regards,
kasq -
Hi there,
Is it possible to use OAM with NGinx / PHP for Single Sign On? I know OAM works with both Apache Web Server and Microsoft IIS, but I couldn't find any information about NGinx and OAM.
Please, can any one help me?
CheersAnyone? Please.
-
11g R2 OES - OAM Integration Documentation Link
Hi,
Can some one post the link for OES and OAM 11g R2 integration Documentation?
Thanks in Advance,
Sandy.11gR1 was using OES already for its policies so in this regard, nothing much has changed for R2 with respect to how they integrate. However, there is a big difference in that in R1, OAM had an embedded OES based on OES10g wheras OAM in R2 is using OES11g. This means you get more control of OES via the apm and other interfaces.
-
Loading external fiels (json, images) using oam?
Hey there,
i have build an edge animate animation/application and want to embed it with it's "oam" file into a muse website. .. So far this isn't really a problem, BUT i am using external json data and images in my project...
After exporting to the oam-file and embedding it to muse i'm not able to load these files anymore... I've tried several folders and so on but nothing works out :/
Any idea how to solve this?
Best,
Nicofunction loadJSON() {
jsonDATA = [];
$.getJSON('source.json', function(data) {
refCount = data.images.length;
// Global Path for Images
imageGlobalPath = data.global_path;
// Loop through each reference
for ( var i=0; i < refCount; i++){
var o = data.images[i];
jsonDATA.push(
"id":i,
"img_sw":o.img_sw,
"img_clr":o.img_color,
"url":o.url,
"title":o.headtitle,
"description":o.description,
createBoxes();
That's the code
Maybe you are looking for
-
ITunes music in wrong folder on PC
My PC recently needed servicing. Since I got it back, my iTunes library is empty. I located my songs on my PC but the path is different from where iTunes is looking. I've tried to change the location on the advanced tab within iTunes but even when I
-
hello to all i need help i dont know how to sync my new ipod shuffle. i have an itouch 2nd gen and i want my ipod shuffle to sync the same itunes library songs to my ipod shuffle. i read topics regarding on how to sync with multiple ipods in one libr
-
Reg: ConfigurationContext issue : urgent
Hi, I have a requirement, to create wrapper script which will receive inputs from Application Team and create user on the OIM end. We have written the wrapper script, but when we are executing the script we are facing issue: ============= AddRequestW
-
Problems with Windows 2003, JRun and Java 1.4.2_07
Hi! I have installed JRun 4 with J2SE 1.4.2_07 on a Windows 2003 Server and all goes well until someone install a system patch, Office. After that JRun doesn�t star. The logs says: Starting Macromedia JRun 4 (Build 84683), admin server An unexpected
-
HT204291 how do get the media icon for mac mirroring when running airplay on itunes?
how do get the media icon for mac mirroring when running airplay