?
Solved

Maven -> Weblogic error

Posted on 2010-11-22
9
Medium Priority
?
796 Views
Last Modified: 2012-06-21
I have a strange error. All my co-workers can build but I cant. The only thing I can find is that I dont have installed BEA Weblogic but I dont want to have that installed. It should be able to run anyway.

Could someone tell me what is wrong? If you need pom.xml I got that one as well.




process-classes:
     [copy] Copying 4 files to C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-content
    [mkdir] Created dir: C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-jar
     [java] Creating an MJF from the contents of directory C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-content...
     [java] Compiling the files...
     [java] Creating the list.
     [java] Doing the compile.
     [java] WLMaker-SubProcess: : Exception in thread "main" java.lang.Error: java.util.zip.ZipException: The system cannot find the file specified
     [java] WLMaker-SubProcess: : 	at weblogic.management.commo.BeanGenDriver.getManagementTempDir(BeanGenDriver.java:93)
     [java] WLMaker-SubProcess: : 	at weblogic.management.commo.BeanGenDriver.main(BeanGenDriver.java:117)
     [java] WLMaker-SubProcess: : Caused by: java.util.zip.ZipException: The system cannot find the file specified
     [java] WLMaker-SubProcess: : 	at java.util.zip.ZipFile.open(Native Method)
     [java] WLMaker-SubProcess: : 	at java.util.zip.ZipFile.<init>(ZipFile.java:203)
     [java] WLMaker-SubProcess: : 	at java.util.jar.JarFile.<init>(JarFile.java:132)
     [java] WLMaker-SubProcess: : 	at java.util.jar.JarFile.<init>(JarFile.java:97)
     [java] WLMaker-SubProcess: : 	at weblogic.management.commo.BeanGenDriver.getManagementTempDir(BeanGenDriver.java:90)
     [java] WLMaker-SubProcess: : 	... 1 more
     [java] WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess: 
     [java] WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess: 
     [java] BeanGen code generation failed
[HUDSON] Archiving C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\pom.xml to C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\modules\dk.skat.ip.integration.albpm$ip-identity-asserter\builds\2010-11-22_13-41-28\archive\dk.skat.ip.integration.albpm\ip-identity-asserter\1.2\pom.xml
[INFO] ------------------------------------------------------------------------

Open in new window

0
Comment
Question by:Mickeys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 92

Expert Comment

by:objects
ID: 34192823
looks like the bean generation requires weblogic to be installed
can you post your pom
0
 

Author Comment

by:Mickeys
ID: 34194471
Here you go. There is weblogic and in my reporsitory this is downloaded ok.
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<parent>

		<groupId>dk.xxxx.ip.parents</groupId>

		<artifactId>ip-parent</artifactId>

		<version>1.3</version>

	</parent>

	<groupId>dk.xxxx.ip.integration.albpm</groupId>

	<artifactId>ip-identity-asserter</artifactId>

	<version>1.2</version>

	<name>${project.artifactId}</name>

	<packaging>jar</packaging>

	<description>IPIdentityInContextIdentityAsserter</description>

	<url>http://xxxxxxxxxxxx.xxx.dk/sites/ip/integration/albpm/${project.artifactId}/trunk/</url>

	<scm>

		<developerConnection>

            scm:perforce:someone@xxxxsup01d.xxx.dk:1666://depot/artifacts/ip/integration/

        </developerConnection>

		<connection>scm:perforce:someone@xxxxsup01d.xxx.dk:1666://depot/artifacts/inventory/ip/integration/albpm/${project.artifactId}/trunk</connection>

	</scm>

	<issueManagement>

		<url>http://xxx.xx.xx.xx:xxxx/atlassian-jira-3.6.3/browse/AMP-95</url>

	</issueManagement>

	<ciManagement>

		<system>hudson</system>

		<url>http://xxxxxxxxxxxx.xxx.dk:8082/job/inventory-ip/</url>

	</ciManagement>

	<distributionManagement>

		<site>

			<id>xxxxxxxxxxxx.xxx.dk</id>

			<url>scp://xxxxxxxxxxxx.xxx.dk/var/m2sites/ip/integration/albpm/${project.artifactId}/trunk/</url>

		</site>

	</distributionManagement>

	<build>

		<plugins>

			<plugin>

				<groupId>org.apache.maven.plugins</groupId>

				<artifactId>maven-antrun-plugin</artifactId>

				<executions>

					<execution>

						<id>generate-mbean</id>

						<phase>generate-sources</phase>

						<configuration>

							<tasks>

								<property name="WL_HOME" value="${WL_HOME}" />

								<property name="mbean.java.src"

									value="IdentityInContextIdentityAsserterMBean.java" />

								<property name="mbean.xml.src" value="IdentityInContextIdentityAsserter.xml" />

								<property name="mbean.jar.name" value="IdentityInContextIdentityAsserter.jar" />

								<property name="compile_classpath" refid="maven.compile.classpath" />

								<property name="project.version" value="${project.version}" />

								<property name="target.dir" value="${project.build.directory}" />

								<ant antfile="build.xml" target="generate-sources" />

							</tasks>

							<sourceRoot>target/mbean-ide</sourceRoot>

						</configuration>

						<goals>

							<goal>run</goal>

						</goals>

					</execution>

					<execution>

						<id>assemble-mbean</id>

						<phase>process-classes</phase>

						<configuration>

							<tasks>

								<property name="WL_HOME" value="${WL_HOME}" />

								<property name="mbean.java.src"

									value="IdentityInContextIdentityAsserterMBean.java" />

								<property name="mbean.xml.src" value="IdentityInContextIdentityAsserter.xml" />

								<property name="mbean.jar.name" value="IdentityInContextIdentityAsserter.jar" />

								<property name="compile_classpath" refid="maven.compile.classpath" />

								<property name="project.version" value="${project.version}" />

								<property name="target.dir" value="${project.build.directory}" />

								<ant antfile="build.xml" target="process-classes" />

							</tasks>

						</configuration>

						<goals>

							<goal>run</goal>

						</goals>

					</execution>

				</executions>

			</plugin>

			<plugin>

				<groupId>org.apache.maven.plugins</groupId>

				<artifactId>maven-jar-plugin</artifactId>

				<configuration>

					<archive>

						<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

					</archive>

				</configuration>

			</plugin>

			<plugin>

				<artifactId>maven-assembly-plugin</artifactId>

				<configuration>

					<descriptorRefs>

						<descriptorRef>jar-with-dependencies</descriptorRef>

					</descriptorRefs>

					<archive>

						<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

					</archive>

				</configuration>

				<executions>

					<execution>

						<id>make-assembly</id>

						<phase>package</phase>

						<goals>

							<goal>single</goal>

						</goals>

					</execution>

				</executions>

			</plugin>

			<plugin>

				<groupId>dk.xxxx.plugins</groupId>

				<artifactId>installer-maven-plugin</artifactId>

				<version>0.23</version>

				<configuration>

					<installModule>

						<module>mbean</module>

						<scriptModules>

							<mbeanConfigModule>

								<mbeanName>IdentityInContextIdentityAsserter</mbeanName>

								<mbeanType>AuthenticationProvider</mbeanType>

								<mbeanClassName>dk.xxxx.ip.identityincontext.sspi.identityasserter.IdentityInContextIdentityAsserter</mbeanClassName>

								<properties>

									<environmentVariable>

										<variableName>domainName</variableName>

										<name>INSTALLER_DOMAIN_NAME</name>

										<description>sample is base_domain</description>

									</environmentVariable>

									<environmentVariable>

										<variableName>realm</variableName>

										<name>INSTALLER_SECURITY_REALM</name>

										<description>myrealm</description>

									</environmentVariable>

								</properties>

								<specificAttributes>

									<environmentVariable>

										<variableName>ControlFlag</variableName>

										<name>INSTALLER_MBEAN_CONTROLFLAG</name>

										<description>flags</description>

									</environmentVariable>

								</specificAttributes>

							</mbeanConfigModule>

						</scriptModules>

					</installModule>

				</configuration>

				<executions>

					<execution>

						<goals>

							<goal>resources</goal>

						</goals>

					</execution>

				</executions>

			</plugin>

			<plugin>

				<artifactId>maven-assembly-plugin</artifactId>

				<configuration>

					<descriptors>

						<descriptor>src/main/assembly/installer.xml</descriptor>

					</descriptors>

				</configuration>

				<executions>

					<execution>

						<id>make-assembly</id>

						<phase>package</phase>

						<goals>

							<goal>attached</goal>

						</goals>

					</execution>

				</executions>

			</plugin>



		</plugins>

	</build>

	<dependencies>

		<dependency>

			<groupId>com.bea.weblogic.server.lib.mbeantypes</groupId>

			<artifactId>wlManagementMBean</artifactId>

			<version>9.2</version>

			<scope>provided</scope>

		</dependency>

		<dependency>

			<groupId>com.bea.weblogic.server.lib</groupId>

			<artifactId>weblogic</artifactId>

			<scope>provided</scope>

			<version>9.2</version>

		</dependency>

		<dependency>

			<groupId>dk.xxxx.ip.integration.albpm</groupId>

			<artifactId>ip-security-ext-module</artifactId>

			<version>1.1</version>

		</dependency>

		<dependency>

			<groupId>dk.xxxx.ip.security</groupId>

			<artifactId>extended-identity-switch</artifactId>

			<version>1.3</version>

			<exclusions>

				<exclusion>

					<groupId>com.bea.weblogic.server.lib</groupId>

					<artifactId>weblogic</artifactId>

				</exclusion>

			</exclusions>

		</dependency>

		<dependency>

			<groupId>com.bea.weblogic.common.lib</groupId>

			<artifactId>apache_xbean</artifactId>

			<version>9.2</version>

			<scope>provided</scope>

		</dependency>

		<dependency>

			<groupId>com.sun</groupId>

			<artifactId>tools</artifactId>

			<version>1.5.04</version>

			<scope>system</scope>

			<systemPath>${java.home}/../lib/tools.jar</systemPath>

		</dependency>

	</dependencies>

</project>

Open in new window

0
 
LVL 92

Expert Comment

by:objects
ID: 34194542
whats WL_HOME set to?

problem looks like it actually comes from your ant script, looks like it uses the WL installation for generating management beans

sorry for the vagueness, I don't use WL much
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 

Author Comment

by:Mickeys
ID: 34194555
yes there is  a build.xml. I dont have any WL_HOME in my setup. But I think they have it in there setup config file for maven if I am not wrong.

Is there a work around? Or do they need to re-write the code?
0
 
LVL 92

Expert Comment

by:objects
ID: 34194621
not sure, you'd need to check exactly what it is building.
why don't you want to install WL?
0
 

Author Comment

by:Mickeys
ID: 34194644
well on my own computer it will ok but we will run on a hudson server that I am about to setup and I dont want dependency on any program. It needs to be able to run without that. Is that wrong you think?
0
 
LVL 92

Expert Comment

by:objects
ID: 34194704
It looks like you're build already has a dependency on WL (or at least some file in WL installation)
You could look to remove those steps but you'd need to first understand exactly what they are for first

Don't see it as a problem though, builds can have lots of different dependencies.
0
 

Author Comment

by:Mickeys
ID: 34194716
well I will try to talk to the developer about it.

But as what I have understood all that can have dependency is if it is in the repository but downloading some jar file. Not by a program. I am not really sure what bea weblogic does or is but it seems wrong to me.
0
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 34194746
it looks like it needs files from WL installation, not actually WL running

> well I will try to talk to the developer about it.

thats the best bet. you need to understand fully what it is doing before you can take any action
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question