[JBoss Cache Users] - Re: Undeterministic error:
by vnmbatista
Hi,
I have done compile time weaving configuring my pom.xml the following way:
| <plugin>
| <groupId>org.jboss.maven.plugins</groupId>
| <artifactId>maven-jbossaop-plugin</artifactId>
| <version>1.0.0.GA</version>
|
| <executions>
| <execution>
| <id>compile</id>
| <configuration>
| <!--
| if you want to include dependencies from the current module (only needed if a class
| inherits a class thats not defined in this module
| -->
| <includeProjectDependency>true</includeProjectDependency>
| <aoppaths>
| <aoppath>src/main/resources/jboss-aop.xml</aoppath>
| </aoppaths>
| <!-- You can specify to only aopc a specific set of classes -->
| <includes>
| <include>com/foo/bar/entities/*.class</include>
| </includes>
|
| </configuration>
| <goals>
| <goal>compile</goal>
| </goals>
| </execution>
| </executions>
| </plugin>
|
With jboss-aop-1.5.6.GA (which comes bundled with my JBoss) it didn't work (Missing method, ... ). I upgrades JBossAOP to version 2.1.5.GA and it starts working.
Although I had problems compiling my project:
I have POJO A and POJOs B and C, both extending A. I had the @PojoCacheable annotation on the three POJOs. Compilation crashed with
| .../src/main/java/com/foo/bar/services/imports/alert/Alerts.java:297: cannot access org.jboss.aop.Advised
| class file for org.jboss.aop.Advised not found
| productsList.add(service);
|
I tried having A with the annotation @InstanceOfPojoCacheable. It crashed also with the same error both if I had the @PojoCacheable annotation on B,C or if I had B and C without any annotation. It only worked when I removed the @PojoCacheable annotation from A. As a matter of fact I don't need to put A explicitly on the cache. If I needed I would have to refactor my code. Is the configuration which I get working normal?
On the production system I won't be able to run the AOP upgrade script. To upgrade I will need to replace the production files with the upgrades ones:
JBOSS_BIN: pluggable-instrumentator.jar;
JBOSS_LIB: javassist.jar
JBOSS_DEPLOY: jboss-aop-jdk50.deployer/
Is this correct? Am I missing any thing?
I would feel much more comfortable with Load Time Weaving, because I would have guarantees that the same binary would work on different version of JBossAOP. I finished without knowing the reason for my problem with load time weaving :(
Thank you very much for your help.
Best regards,
Victor Batista
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268374#4268374
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268374
16 years, 4 months
[Installation, Configuration & Deployment] - How to provide the bind address when running JBoss as a serv
by gpuckett
I am in the process of separating my production envrionment so I can implement load balancing. First I need to just get jBoss running on one machine and Apache and mySQL running on another. I am using the jBoss native executable (jBossSVC.exe) to run it as a service.
Since it now needs to talk to a "remote" server it can no longer use 127.0.0.1 as the bind address. So I need to provide the address for it to use.
If I run jBoss from the command prompt and use the -b xxx.xxx.xxx.xxx parm it runs fine. However, it must run as a service in the production envrionment. I can't figure out how to provide the bind address when running it as a service.
I have the following connector definition in my server.xml file:
| <!-- Define an AJP 1.3 Connector on port 8009 -->
| <Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
| emptySessionPath="true" enableLookups="false" redirectPort="8443"
| connectionTimeout="600000" maxThreads="500" />
|
Where does jboss.bind.address get set? Is there a parm I can set in a configuration file that sets this rather than using a command line argument?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268365#4268365
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268365
16 years, 4 months
[Tomcat Integration] - jboss adds
by chrlon
JBoss is looking for tmp files in the "wrong" directory. For example, in our case the tmp files are created in:
tmp/deploy/tmp6516248728899508581OurApp_Ear.ear-contents/OurApp_Web-exp.war/WEB-INF/jsp/
but jboss is looking for them in (note the extra "localhost" in path):
tmp/deploy/tmp6516248728899508581OurApp_Ear.ear-contents/OurApp_Web-exp.war/localhost/WEB-INF/jsp
wich results in:
| stat("/usr/local/jboss-4.2.2.GA/server/OurApp-node0/tmp/deploy/tmp6516248728899508581OurApp_Ear.ear-contents/OurApp_Web-exp.war/localhost/WEB-INF/jsp/something.jsp", 0x7f8c84bf3060) = -1 ENOENT (No such file or directory)
|
I.e. file not found and bad performance because JBoss will compile the jsp on every request.
How can we resolve this issue?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268361#4268361
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268361
16 years, 4 months