[JBoss JIRA] Created: (JBPORTAL-1323) URL : Changing the context path / missing Root.war explaination
by Antoine Herzog (JIRA)
URL : Changing the context path / missing Root.war explaination
---------------------------------------------------------------
Key: JBPORTAL-1323
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1323
Project: JBoss Portal
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Portal Documentation
Affects Versions: 2.4.1 Final
Environment: portal 2.4.0 final
Reporter: Antoine Herzog
Assigned To: Roy Russo
Priority: Minor
in the doc, in :
3.2 Changing the context path
if you want to set the context-root to "/" it does not work.
you must also change the context-root of "/" in the Root.war.
see the forum post for explaination.
** A) explain this in the doc would be better.
or at least notice it and send to the jboss doc
** B) Also : put in the doc the explanation for suppressing the "second portal" item in the url. (see forum post).
** C optionnal) then, the question is : how to define MyPortal as the default portal.
seems not possible, without changing the jboss portal default-object.xml in the conf folder in jboss-portal.sar:
put MyPortal description in this file.
but that's another jira...
(and need time to investigate this, and first see the forum about it).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months
[JBoss JIRA] Created: (JBRULES-742) Test error running integration tests with Java 6
by Edson Tirelli (JIRA)
Test error running integration tests with Java 6
------------------------------------------------
Key: JBRULES-742
URL: http://jira.jboss.com/jira/browse/JBRULES-742
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Reteoo
Affects Versions: 3.1-m1
Reporter: Edson Tirelli
Assigned To: Mark Proctor
A user reported a strange error in integration tests:
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite failures="0" time="16.094" errors="1" skipped="0" tests="107" name="org.drools.integrationtests.ReteTest">
<properties>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="sun.boot.library.path" value="C:\Program Files\Java\jre1.6.0\bin"/>
<property name="java.vm.version" value="1.6.0-b105"/>
<property name="java.vm.vendor" value="Sun Microsystems Inc."/>
<property name="java.vendor.url" value="http://java.sun.com/"/>
<property name="path.separator" value=";"/>
<property name="java.vm.name" value="Java HotSpot(TM) Client VM"/>
<property name="file.encoding.pkg" value="sun.io"/>
<property name="user.country" value="US"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="sun.os.patch.level" value="Service Pack 2"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="user.dir" value="c:\work-drools-trunk\trunk\drools-compiler"/>
<property name="java.runtime.version" value="1.6.0-b105"/>
<property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"/>
<property name="basedir" value="c:\work-drools-trunk\trunk\drools-compiler"/>
<property name="java.endorsed.dirs" value="C:\Program Files\Java\jre1.6.0\lib\endorsed"/>
<property name="os.arch" value="x86"/>
<property name="java.io.tmpdir" value="c:\DOCUME~1\ant\LOCALS~1\Temp\"/>
<property name="line.separator" value="
"/>
<property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
<property name="user.variant" value=""/>
<property name="os.name" value="Windows XP"/>
<property name="sun.jnu.encoding" value="Cp1252"/>
<property name="java.library.path" value="c:\WINDOWS\system32;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X11R6\bin;c:\ruby\bin;c:\Tcl\bin;c:\Python25\;c:\Perl\site\bin;c:\Perl\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Program Files\ATI Technologies\ATI.ACE\;c:\Program Files\cvsnt;c:\maven\bin;c:\apache-ant-1.7.0\bin;c:\jdk1.6.0\bin;c:\Sun\SDK\bin"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="java.class.version" value="50.0"/>
<property name="sun.management.compiler" value="HotSpot Client Compiler"/>
<property name="os.version" value="5.1"/>
<property name="user.home" value="C:\Documents and Settings\ant"/>
<property name="user.timezone" value="Europe/Helsinki"/>
<property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"/>
<property name="file.encoding" value="Cp1252"/>
<property name="java.specification.version" value="1.6"/>
<property name="user.name" value="ant"/>
<property name="java.class.path" value="C:\Documents and Settings\ant\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;C:\Documents and Settings\ant\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\Documents and Settings\ant\.m2\repository\org\apache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar"/>
<property name="java.vm.specification.version" value="1.0"/>
<property name="sun.arch.data.model" value="32"/>
<property name="java.home" value="C:\Program Files\Java\jre1.6.0"/>
<property name="java.specification.vendor" value="Sun Microsystems Inc."/>
<property name="user.language" value="en"/>
<property name="awt.toolkit" value="sun.awt.windows.WToolkit"/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.version" value="1.6.0"/>
<property name="java.ext.dirs" value="C:\Program Files\Java\jre1.6.0\lib\ext;C:\WINDOWS\Sun\Java\lib\ext"/>
<property name="sun.boot.class.path" value="C:\Program Files\Java\jre1.6.0\lib\resources.jar;C:\Program Files\Java\jre1.6.0\lib\rt.jar;C:\Program Files\Java\jre1.6.0\lib\sunrsasign.jar;C:\Program Files\Java\jre1.6.0\lib\jsse.jar;C:\Program Files\Java\jre1.6.0\lib\jce.jar;C:\Program Files\Java\jre1.6.0\lib\charsets.jar;C:\Program Files\Java\jre1.6.0\classes"/>
<property name="java.vendor" value="Sun Microsystems Inc."/>
<property name="localRepository" value="C:\Documents and Settings\ant\.m2\repository"/>
<property name="file.separator" value="\"/>
<property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/>
<property name="sun.cpu.endian" value="little"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="sun.desktop" value="windows"/>
<property name="sun.cpu.isalist" value=""/>
</properties>
<testcase time="0.125" name="testDynamicFunction">
<error message="org/drools/test/AddFive" type="java.lang.NoClassDefFoundError">java.lang.NoClassDefFoundError: org/drools/test/AddFive
at org.drools.test.Rule_global_rule_test_0.consequence(Rule_global_rule_test_0.java:9)
at org.drools.test.Rule_global_rule_test_0ConsequenceInvoker.evaluate(Rule_global_rule_test_0ConsequenceInvoker.java:19)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:484)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:448)
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:365)
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:346)
at org.drools.integrationtests.IntegrationCases.testDynamicFunction(IntegrationCases.java:1177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
</error>
</testcase>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months
[JBoss JIRA] Created: (JBRULES-1001) NullPointerException when a function is used inside a predicate expression
by Edgardo Carena (JIRA)
NullPointerException when a function is used inside a predicate expression
---------------------------------------------------------------------------
Key: JBRULES-1001
URL: http://jira.jboss.com/jira/browse/JBRULES-1001
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.0.MR3
Reporter: Edgardo Carena
Assigned To: Mark Proctor
Priority: Minor
if you change the FibonacciExample like this:
(...)
import java.lang.Math;
function boolean approxEqual(double val1, double val2) {
return (Math.abs(val1-val2)<0.01);
}
(....)
rule Calculate
when
f1 : Fibonacci( s1 : sequence, value != -1 )
f2 : Fibonacci( s2 : sequence -> (approxEqual(sequence,(s1 + 1))), value != -1 )
f3 : Fibonacci( sequence == (s2 + 1 ), value == -1 )
then
f3.setValue( f1.getValue() + f2.getValue() );
update( f3 );
retract( f1 );
System.out.println( f3.getSequence() + " == " + f3.getValue() );
end
thus introducing a function inside a predicate expression, the example works well, however a NullPointerException is printed out during the call of the addPackageFromDrl method.
I tried in many examples, also calling directly the java.lang.Math.abs function, and the message is always printed with no apparent side effect.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months
[JBoss JIRA] Created: (JBRULES-1004) Using JDK dynamic proxies without packages crashes drools
by Chris West (JIRA)
Using JDK dynamic proxies without packages crashes drools
---------------------------------------------------------
Key: JBRULES-1004
URL: http://jira.jboss.com/jira/browse/JBRULES-1004
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.0.MR3
Reporter: Chris West
Assigned To: Mark Proctor
Attachments: test.zip
Hello,
I'm trying to use objects that are generated as dynamic proxies (through the java.lang.reflect.Proxy class) as facts in JBoss Rules 4.0 MR3. My project was using CGLib to generate proxies, and they were working just fine in 3.0.6. However, when I tried 4.0, the CGLib based proxies seemed to have a final method that kept the proxies from being proxied as shadow facts. So I rewrote my code to try to use JDK based proxies, and version 4.0 MR3 accepts them and apparently creates shadow facts, but now my rules don't fire correctly.
So, in an attempt to create a simple program to illustrate the problem, I ran into a different problem. The attached eclipse project illustrates this problem.
The error is:
java.lang.NullPointerException
at org.drools.reteoo.Rete$ObjectTypeConf.<init>(Rete.java:333)
at org.drools.reteoo.Rete.assertObject(Rete.java:152)
at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:190)
at org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:70)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:772)
at org.drools.common.AbstractWorkingMemory.insert (AbstractWorkingMemory.java:584)
at com.sample.DroolsTest.main(DroolsTest.java:42)
My proxy had no package, since the jdk based proxy is only in a package if it has at least 1 non public interface, according to the javadoc.
The suspect code beginning on line 333 is:
String pkgName = cls.getPackage().getName();
if ( "org.drools.reteoo".equals( pkgName ) || "org.drools.base".equals( pkgName ) ) {
// We don't shadow internal classes
this.shadowEnabled = false;
return;
}
The getPackage() method returns null. In this case, it would be good if JBoss Rules handled the null and went on to shadow the object anyway, since it is obviously not in the org.drools packages.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months
[JBoss JIRA] Created: (JBRULES-1003) NullPointerException being thrown while removing a package from RuleBase
by Sarika Khamitkar (JIRA)
NullPointerException being thrown while removing a package from RuleBase
------------------------------------------------------------------------
Key: JBRULES-1003
URL: http://jira.jboss.com/jira/browse/JBRULES-1003
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Reteoo
Affects Versions: 4.0.0.MR3
Environment: Windows XP
Reporter: Sarika Khamitkar
Assigned To: Mark Proctor
I get the following exception while removing a rule package from the RuleBase.
java.lang.NullPointerException
at org.drools.reteoo.CompositeObjectSinkAdapter.removeObjectSink(CompositeObjectSinkAdapter.java:125)
at org.drools.reteoo.ObjectSource.removeObjectSink(ObjectSource.java:123)
at org.drools.reteoo.ObjectTypeNode.removeObjectSink(ObjectTypeNode.java:297)
at org.drools.reteoo.ObjectTypeNode.remove(ObjectTypeNode.java:232)
at org.drools.reteoo.AlphaNode.remove(AlphaNode.java:187)
at org.drools.reteoo.AlphaNode.remove(AlphaNode.java:187)
at org.drools.reteoo.BetaNode.remove(BetaNode.java:185)
at org.drools.reteoo.BetaNode.remove(BetaNode.java:187)
at org.drools.reteoo.RuleTerminalNode.remove(RuleTerminalNode.java:439)
at org.drools.reteoo.ReteooBuilder.removeRule(ReteooBuilder.java:135)
at org.drools.reteoo.ReteooRuleBase.removeRule(ReteooRuleBase.java:259)
at org.drools.common.AbstractRuleBase.removePackage(AbstractRuleBase.java:408)
....
----------------------------------
A sample of the drl files:
package rule2392016206
import com.servlets.Record;
import com.servlets.Field;
import com.servlets.rules.RulesTrigger;
rule "Property damage"
when
rulesTrigger: RulesTrigger(clientID == 123, triggerType == 2)
record: Record(coreTypeIDList contains "123")
(Field (ID == 123, dateValue >= "04-Jul-2000") and Field (ID == 456, fieldValue > 10) )
then
rulesTrigger.sendEmail(2392016206L, record);
end
--------------------------
The NullPointerException occurs when I execute the following code.
ruleBase.removePackage("rule2392016206");
Before removing the package, I am iterating through all the packages in the ruleBase and I can see this package name in the list. One more thing I noticed was that if the number of packages in the ruleBase is lesss than 4, then the exception is not thrown.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months